homebrew-core/Formula/chicken.rb
Rich Healey 0521fe253b chicken: workaround for compilation with Clang/LLVM
Building with DEBUGBUILD is sufficient; be verbose about this so the
user is aware and has the chance to abort and possibly build with GCC if
it is available.

Closes Homebrew/homebrew#11696.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-19 16:22:34 -05:00

22 lines
740 B
Ruby

require 'formula'
class Chicken < Formula
url 'http://code.call-cc.org/releases/4.7.0/chicken-4.7.0.tar.gz'
md5 '9389388fdf04c3c64de29633aae12539'
homepage 'http://www.call-cc.org/'
head 'git://code.call-cc.org/chicken-core'
def install
# see http://lists.gnu.org/archive/html/chicken-users/2010-12/msg00159.html
if [:clang, :llvm].include? ENV.compiler
ENV['DEBUGBUILD'] = "1"
opoo "Building with DEBUGBUILD to avoid Clang/LLVM issues"
end
ENV.deparallelize
args = ["PREFIX=#{prefix}", "PLATFORM=macosx", "C_COMPILER=#{ENV.cc}"] # Chicken uses a non-standard var. for this
args << "ARCH=x86-64" if MacOS.prefer_64_bit?
system "make", *args
system "make", "install", *args
end
end