aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDouglas Creager2010-06-11 16:28:04 -0400
committerAdam Vandenberg2010-06-11 13:31:57 -0700
commit81db6bde115e3f52429138f1f3f4a2be76192e96 (patch)
treeaa24d09dc4e9b3f26bed1f80f41fc56c3e008c88 /Library/Formula
parent8b05fd2781d29281549ec2fe8485977c4f196798 (diff)
downloadhomebrew-81db6bde115e3f52429138f1f3f4a2be76192e96.tar.bz2
POCO doesn't auto-detect 64-bit platform
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>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/poco.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/poco.rb b/Library/Formula/poco.rb
index 01e447190..55c478c5d 100644
--- a/Library/Formula/poco.rb
+++ b/Library/Formula/poco.rb
@@ -7,9 +7,12 @@ class Poco <Formula
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"