New Formula: MPFI
Closes Homebrew/homebrew#11660. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
parent
11d0bfc464
commit
d927d2d5c1
1 changed files with 30 additions and 0 deletions
30
Formula/mpfi.rb
Normal file
30
Formula/mpfi.rb
Normal file
|
@ -0,0 +1,30 @@
|
|||
require 'formula'
|
||||
|
||||
class Mpfi < Formula
|
||||
homepage 'http://perso.ens-lyon.fr/nathalie.revol/software.html'
|
||||
url 'https://gforge.inria.fr/frs/download.php/30130/mpfi-1.5.1.tar.gz'
|
||||
sha1 '288302c0cdefe823cc3aa71de31c1da82eeb6ad0'
|
||||
|
||||
depends_on 'gmp'
|
||||
depends_on 'mpfr'
|
||||
|
||||
option '32-bit'
|
||||
|
||||
def install
|
||||
args = %W[--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 build.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'
|
||||
system 'make install'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue