aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/nspr.rb
diff options
context:
space:
mode:
authorMax Howell2010-01-24 13:57:44 +0000
committerMax Howell2010-01-24 13:57:44 +0000
commit2f3934c2abe4236dba79355e66bca7f5c359e1d2 (patch)
treebc962cb7685ac7ba466cf96ef2bd0ee3e47bf54b /Library/Formula/nspr.rb
parent57a85088f924517dea4cec06072f1e5569164a33 (diff)
downloadhomebrew-2f3934c2abe4236dba79355e66bca7f5c359e1d2.tar.bz2
Enable 64 bits on 64 bit machines only
Diffstat (limited to 'Library/Formula/nspr.rb')
-rw-r--r--Library/Formula/nspr.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/Library/Formula/nspr.rb b/Library/Formula/nspr.rb
index 9e3ed76bc..bef0c3d98 100644
--- a/Library/Formula/nspr.rb
+++ b/Library/Formula/nspr.rb
@@ -6,15 +6,18 @@ class Nspr <Formula
@md5='c78384602b4b466081a55025446641db'
def install
+ require 'hardware'
+
ENV.deparallelize
Dir.chdir "mozilla/nsprpub" do
inreplace "pr/src/Makefile.in", "-framework CoreServices -framework CoreFoundation", ""
- system "./configure", "--prefix=#{prefix}",
- "--disable-debug",
- "--enable-strip",
- "--enable-optimize",
- "--enable-64bit"
+
+ conf = %W[--prefix=#{prefix} --disable-debug --enable-strip --enable-optimize]
+ conf << "--enable-64bit" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6
+ system "./configure", *conf
+
inreplace "config/autoconf.mk", "-install_name @executable_path/$@ ", ""
+
system "make"
system "make install"
end