aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mpich2.rb24
1 files changed, 18 insertions, 6 deletions
diff --git a/Library/Formula/mpich2.rb b/Library/Formula/mpich2.rb
index d03750a68..0bb6b69a9 100644
--- a/Library/Formula/mpich2.rb
+++ b/Library/Formula/mpich2.rb
@@ -6,13 +6,25 @@ class Mpich2 < Formula
version '1.4.1p1'
md5 'b470666749bcb4a0449a072a18e2c204'
+ def options
+ [
+ ['--disable-fortran', "Do not attempt to build Fortran bindings"],
+ ]
+ end
+
def install
- system "./configure", "--prefix=#{prefix}",
- "--mandir=#{man}",
- "--disable-f77",
- "--disable-fc",
- "--with-device=ch3:nemesis",
- "--enable-shared"
+ args = [
+ "--prefix=#{prefix}",
+ "--mandir=#{man}",
+ "--enable-shared"
+ ]
+ if ARGV.include? '--disable-fortran'
+ args << "--disable-f77" << "--disable-fc"
+ else
+ ENV.fortran
+ end
+
+ system "./configure", *args
system "make"
system "make install"
end