homebrew-core/Formula/bdw-gc.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

21 lines
643 B
Ruby

require 'formula'
class BdwGc <Formula
@url='http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.1.tar.gz'
@homepage='http://www.hpl.hp.com/personal/Hans_Boehm/gc/'
@md5='2ff9924c7249ef7f736ecfe6f08f3f9b'
def install
if MACOS_VERSION == 10.6
# LLVM gives an unsupported inline asm error
ENV.gcc_4_2
# ucontext has been deprecated in 10.6
# use this flag to force the header to compile
ENV['CPPFLAGS'] = ENV['CPPFLAGS'] + " -D_XOPEN_SOURCE"
end
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end
end