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/'
|
2012-03-11 20:04:03 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/poco/sources/poco-1.4.1/poco-1.4.1p1-all.tar.bz2'
|
2011-02-12 22:36:22 +00:00
|
|
|
md5 '5b35baa1bf7ee4b20437b8950a1c5012'
|
2010-06-11 04:03:27 +00:00
|
|
|
|
|
|
|
def install
|
2011-02-12 22:36:22 +00:00
|
|
|
arch = Hardware.is_64_bit? ? 'Darwin64': 'Darwin'
|
2010-06-11 20:28:04 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--config=#{arch}",
|
|
|
|
"--omit=Data/MySQL,Data/ODBC",
|
|
|
|
"--prefix=#{prefix}"
|
2010-06-11 04:03:27 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|