homebrew-core/Formula/libmpc.rb
Kyungmin Lee 951e313335 libmpc uses homebrew path for gmp and mpfr.
Closes Homebrew/homebrew#17248.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-31 11:00:36 -08:00

24 lines
562 B
Ruby

require 'formula'
class Libmpc < Formula
homepage 'http://multiprecision.org'
url 'http://multiprecision.org/mpc/download/mpc-1.0.1.tar.gz'
sha1 '8c7e19ad0dd9b3b5cc652273403423d6cf0c5edf'
depends_on 'gmp'
depends_on 'mpfr'
def install
args = [
"--prefix=#{prefix}",
"--disable-dependency-tracking",
"--with-gmp=#{Formula.factory('gmp').opt_prefix}",
"--with-mpfr=#{Formula.factory('mpfr').opt_prefix}"
]
system "./configure", *args
system "make"
system "make check"
system "make install"
end
end