homebrew-core/Formula/poco.rb

21 lines
717 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Poco < Formula
homepage 'http://pocoproject.org/'
2012-06-18 19:20:31 +00:00
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",
2012-06-18 19:33:56 +00:00
"--prefix=#{prefix}",
"--config=#{arch}",
"--omit=Data/MySQL,Data/ODBC",
2012-06-18 19:33:56 +00:00
"--no-samples",
"--no-tests"
system "make install CC=#{ENV.cc} CXX=#{ENV.cxx}"
end
end