diff options
| author | Alexander Corrado | 2011-03-06 04:04:36 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-06 16:29:38 -0800 |
| commit | 83b3394b05602a85b3bba0b569933e3acb47108d (patch) | |
| tree | ad4b9b06bc9cce115a7ff12fee3c359004581828 /Library/Formula | |
| parent | 736580f1cfee4730798d36efbad603de39e2011d (diff) | |
| download | homebrew-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.rb | 11 |
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 |
