homebrew-core/Formula/poco.rb
Misty De Meo 41f2975a70 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
2012-06-19 11:47:18 -05:00

20 lines
717 B
Ruby

require 'formula'
class Poco < Formula
homepage 'http://pocoproject.org/'
url 'http://downloads.sourceforge.net/project/poco/sources/poco-1.4.3/poco-1.4.3p1-all.tar.gz'
sha1 '893b26bdd2adee36d489ce1412bf67d5035f5b47'
def install
arch = Hardware.is_64_bit? ? 'Darwin64': 'Darwin32'
arch << '-clang' if ENV.compiler == :clang
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--config=#{arch}",
"--omit=Data/MySQL,Data/ODBC",
"--no-samples",
"--no-tests"
system "make install CC=#{ENV.cc} CXX=#{ENV.cxx}"
end
end