GNU Binutils formula.
The GNU Binutils are a collection of binary tools.
This commit is contained in:
parent
43df524f8d
commit
c5308b474a
1 changed files with 20 additions and 0 deletions
20
Formula/binutils.rb
Normal file
20
Formula/binutils.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
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
|
Loading…
Reference in a new issue