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'
|
2013-01-01 04:48:59 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/binutils/binutils-2.23.1.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/binutils/binutils-2.23.1.tar.gz'
|
|
|
|
sha1 '2ce79f7800c05934e10f17455fc221be5e2527fa'
|
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
|