f13c2393fb
The POCO build scripts don't auto-detect when we're running 64-bit; it always defaults to 32-bit libraries. This patch updates the POCO formula to pass in the correct configure argument depending on the underlying hardware. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
21 lines
554 B
Ruby
21 lines
554 B
Ruby
require 'formula'
|
|
|
|
class Poco <Formula
|
|
url 'http://downloads.sourceforge.net/project/poco/sources/poco-1.3.6/poco-1.3.6p2-all.tar.bz2'
|
|
homepage 'http://pocoproject.org/'
|
|
md5 '8f1a6c3511764167d39f1950da3fcb37'
|
|
version '1.3.6p2'
|
|
|
|
def install
|
|
arch = Hardware.is_64_bit? ? 'Darwin_x86_64': 'Darwin'
|
|
|
|
system "./configure",
|
|
"--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--config=#{arch}",
|
|
"--omit=Data/MySQL,Data/ODBC",
|
|
"--prefix=#{prefix}"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|