aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAlexander Corrado2011-03-06 04:04:36 -0800
committerAdam Vandenberg2011-03-06 16:29:38 -0800
commit83b3394b05602a85b3bba0b569933e3acb47108d (patch)
treead4b9b06bc9cce115a7ff12fee3c359004581828 /Library/Formula
parent736580f1cfee4730798d36efbad603de39e2011d (diff)
downloadhomebrew-83b3394b05602a85b3bba0b569933e3acb47108d.tar.bz2
mpfr - default to 64-bit because gmp does
Mpfr depends on gmp. When gmp is built, it defaults to 64-bit on capable hardware. Mpfr does not, which causes a configure error. See: http://www.mpfr.org/faq.html#no_libgmp Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mpfr.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Formula/mpfr.rb b/Library/Formula/mpfr.rb
index 29d484ba5..a0b2f0057 100644
--- a/Library/Formula/mpfr.rb
+++ b/Library/Formula/mpfr.rb
@@ -7,11 +7,22 @@ class Mpfr <Formula
depends_on 'gmp'
+ def options
+ [["--32-bit", "Force 32-bit."]]
+ end
+
def patches
{:p1 => ['http://www.mpfr.org/mpfr-3.0.0/allpatches']}
end
def install
+ if Hardware.is_32_bit? or ARGV.include? "--32-bit"
+ ENV.m32
+ args << "--host=none-apple-darwin"
+ else
+ ENV.m64
+ end
+
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end