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-02-18 18:41:43 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/binutils/binutils-2.22.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '0e16a7492c0a194962ecd33fc80fa53ccfec5149'
|
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
|