aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/binutils.rb
blob: d68158f6998381c2b95ad4d600c28a381430b365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.append 'CPPFLAGS', "-I#{prefix}/include"
    system "./configure", "--prefix=#{prefix}",
                          "--disable-debug",
                          "--disable-dependency-tracking",
                          "--infodir=#{prefix}/share/info",
                          "--mandir=#{man}",
                          "--disable-werror",
                          "--program-prefix=g"
    system "make"
    system "make install"
  end
end