homebrew-core/Formula/mpfr.rb
Jack Nagel 3e3187cad3 mpfr 3.1.0
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-03 14:59:52 -05:00

30 lines
731 B
Ruby

require 'formula'
class Mpfr < Formula
url 'http://www.mpfr.org/mpfr-3.1.0/mpfr-3.1.0.tar.bz2'
homepage 'http://www.mpfr.org/'
md5 '238ae4a15cc3a5049b723daef5d17938'
depends_on 'gmp'
def options
[["--32-bit", "Force 32-bit."]]
end
def install
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
# Build 32-bit where appropriate, and help configure find 64-bit CPUs
# Note: This logic should match what the GMP formula does.
if MacOS.prefer_64_bit? and not ARGV.include? "--32-bit"
ENV.m64
args << "--build=x86_64-apple-darwin"
else
ENV.m32
args << "--build=none-apple-darwin"
end
system "./configure", *args
system "make install"
end
end