aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bdw-gc.rb
blob: 7ca166ae7904f5248f011caeef0fc493ce169540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require "formula"

class BdwGc < Formula
  homepage "http://www.hboehm.info/gc/"
  url "http://www.hboehm.info/gc/gc_source/gc-7.4.2.tar.gz"
  sha1 "cd4a54620c38a2c361b3ee99dd134dbffb57c313"

  depends_on "pkg-config" => :build
  depends_on "libatomic_ops" => :build

  bottle do
    revision 1
    sha1 "3c5fdf16d5ddb72427e300a79b8aa829df51480d" => :yosemite
    sha1 "9c03aaf69cbda261bc263a65e922607a4cda3bd1" => :mavericks
    sha1 "365f19fe49db14430a858c812210ebc5e8bb0f5e" => :mountain_lion
  end

  option :universal

  def install
    ENV.universal_binary if build.universal?
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-cplusplus"
    system "make"
    system "make check"
    system "make install"
  end
end