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-10-19 23:32:54 +00:00
|
|
|
url 'http://pocoproject.org/releases/poco-1.4.6/poco-1.4.6p2-all.tar.bz2'
|
2013-10-23 10:58:07 +00:00
|
|
|
sha1 'd0d5459039f26a8d4402c8e85484b1b29c75b2b4'
|
2013-10-19 23:32:54 +00:00
|
|
|
version '1.4.6p2-all'
|
2013-04-26 17:42:32 +00:00
|
|
|
|
|
|
|
devel do
|
2013-10-28 20:47:31 +00:00
|
|
|
url 'http://pocoproject.org/releases/poco-1.5.2/poco-1.5.2-all.tar.bz2'
|
|
|
|
sha1 'e2256795b13c0b77d20283cf64914d59245e3492'
|
2013-04-26 17:42:32 +00:00
|
|
|
end
|
2010-06-11 04:03:27 +00:00
|
|
|
|
2013-10-09 10:09:40 +00:00
|
|
|
option :cxx11
|
|
|
|
|
2010-06-11 04:03:27 +00:00
|
|
|
def install
|
2013-10-09 10:09:40 +00:00
|
|
|
ENV.cxx11 if build.cxx11?
|
|
|
|
|
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
|
|
|
|
2013-04-26 17:42:32 +00:00
|
|
|
system "./configure", "--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"
|
2013-10-09 10:09:40 +00:00
|
|
|
system "make", "install", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}"
|
2010-06-11 04:03:27 +00:00
|
|
|
end
|
|
|
|
end
|