2009-10-27 23:02:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Binutils < Formula
|
2009-10-27 23:02:05 +00:00
|
|
|
homepage 'http://www.gnu.org/software/binutils/binutils.html'
|
2012-11-26 23:02:21 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/binutils/binutils-2.23.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/binutils/binutils-2.23.tar.gz'
|
|
|
|
sha1 '470c388c97ac8d216de33fa397d7be9f96c3fe04'
|
2009-10-27 23:02:05 +00:00
|
|
|
|
|
|
|
def install
|
2012-01-24 21:22:13 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--program-prefix=g",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--infodir=#{info}",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--disable-werror",
|
|
|
|
"--enable-interwork",
|
|
|
|
"--enable-multilib",
|
2012-03-27 02:03:03 +00:00
|
|
|
"--enable-targets=x86_64-elf,arm-none-eabi,m32r"
|
2009-10-27 23:02:05 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|