homebrew-core/Formula/binutils.rb
Chris Thachuk c5308b474a GNU Binutils formula.
The GNU Binutils are a collection of binary tools.
2009-11-07 18:22:35 +00:00

20 lines
714 B
Ruby

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
ENV['CPPFLAGS']="#{ENV['CPPFLAGS']} -I${prefix}/include"
system "./configure", "--prefix=#{prefix}", \
"--disable-debug", \
"--disable-dependency-tracking", \
"--infodir=#{prefix}/share/info", \
"--mandir=#{prefix}/share/man", \
"--disable-werror", \
"--program-prefix=g"
system "make"
system "make install"
end
end