From 48ecc8b25d9724a02d621cbb4e990484dcd3af26 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 19 Jun 2012 11:47:18 -0500 Subject: poco: clean up compilers * "Darwin" is (now?) a 64-bit target; need to use Darwin32 for 32-bit * A Darwin-clang target is now available * Override poco's hardcoded compilers to allow selection between gcc/llvm--- Library/Formula/poco.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/poco.rb b/Library/Formula/poco.rb index 6eec438b8..5f995f0bb 100644 --- a/Library/Formula/poco.rb +++ b/Library/Formula/poco.rb @@ -6,7 +6,8 @@ class Poco < Formula sha1 '893b26bdd2adee36d489ce1412bf67d5035f5b47' def install - arch = Hardware.is_64_bit? ? 'Darwin64': 'Darwin' + arch = Hardware.is_64_bit? ? 'Darwin64': 'Darwin32' + arch << '-clang' if ENV.compiler == :clang system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", @@ -14,6 +15,6 @@ class Poco < Formula "--omit=Data/MySQL,Data/ODBC", "--no-samples", "--no-tests" - system "make install" + system "make install CC=#{ENV.cc} CXX=#{ENV.cxx}" end end -- cgit v1.2.3