2010-06-11 04:03:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Poco < Formula
|
2010-06-11 04:03:27 +00:00
|
|
|
homepage 'http://pocoproject.org/'
|
2013-02-08 15:33:04 +00:00
|
|
|
url 'http://pocoproject.org/releases/poco-1.4.6/poco-1.4.6.tar.gz'
|
|
|
|
sha1 'e96260f5a5309e129bdea4251c8e26e14bd0c9bc'
|
2010-06-11 04:03:27 +00:00
|
|
|
|
|
|
|
def install
|
2012-06-19 16:47:18 +00:00
|
|
|
arch = Hardware.is_64_bit? ? 'Darwin64': 'Darwin32'
|
|
|
|
arch << '-clang' if ENV.compiler == :clang
|
2010-06-11 20:28:04 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2012-06-18 19:33:56 +00:00
|
|
|
"--prefix=#{prefix}",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--config=#{arch}",
|
|
|
|
"--omit=Data/MySQL,Data/ODBC",
|
2012-06-18 19:33:56 +00:00
|
|
|
"--no-samples",
|
|
|
|
"--no-tests"
|
2012-06-19 16:47:18 +00:00
|
|
|
system "make install CC=#{ENV.cc} CXX=#{ENV.cxx}"
|
2010-06-11 04:03:27 +00:00
|
|
|
end
|
|
|
|
end
|