aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fftw.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/fftw.rb')
-rw-r--r--Library/Formula/fftw.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/fftw.rb b/Library/Formula/fftw.rb
index 87e9b5fd3..15b63c0f4 100644
--- a/Library/Formula/fftw.rb
+++ b/Library/Formula/fftw.rb
@@ -7,6 +7,8 @@ class Fftw < Formula
option "with-fortran", "Enable Fortran bindings"
+ depends_on :fortran if build.include? "with-fortran"
+
def install
args = ["--enable-shared",
"--disable-debug",
@@ -14,11 +16,7 @@ class Fftw < Formula
"--enable-threads",
"--disable-dependency-tracking"]
- if build.include? "with-fortran"
- ENV.fortran
- else
- args << "--disable-fortran"
- end
+ args << "--disable-fortran" unless build.include? "with-fortran"
# single precision
# enable-sse only works with single