aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMisty De Meo2012-06-19 11:47:18 -0500
committerMisty De Meo2012-06-19 11:47:18 -0500
commit48ecc8b25d9724a02d621cbb4e990484dcd3af26 (patch)
tree7a9713c62c1d85ee7b8041d99e64dc0f3d14fd7c /Library/Formula
parent4ed3c71d1d679d560731d81bf86286070a0b810f (diff)
downloadhomebrew-48ecc8b25d9724a02d621cbb4e990484dcd3af26.tar.bz2
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
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/poco.rb5
1 files changed, 3 insertions, 2 deletions
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