2009-10-27 23:02:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Binutils <Formula
|
|
|
|
url 'http://ftp.gnu.org/gnu/binutils/binutils-2.20.tar.gz'
|
|
|
|
homepage 'http://www.gnu.org/software/binutils/binutils.html'
|
|
|
|
md5 'e99487e0c4343d6fa68b7c464ff4a962'
|
|
|
|
|
|
|
|
def install
|
2009-11-21 06:54:19 +00:00
|
|
|
ENV.append 'CPPFLAGS', "-I#{prefix}/include"
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--infodir=#{prefix}/share/info",
|
|
|
|
"--mandir=#{prefix}/share/man",
|
|
|
|
"--disable-werror",
|
2009-10-27 23:02:05 +00:00
|
|
|
"--program-prefix=g"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|