added MPI support for fftw

Closes Homebrew/homebrew#29949.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Matthew R Becker 2014-06-06 23:13:52 -07:00 committed by Mike McQuaid
parent e706243feb
commit 0368d859f7

View file

@ -14,8 +14,10 @@ class Fftw < Formula
option "with-fortran", "Enable Fortran bindings"
option :universal
option "with-mpi", "Enable MPI parallel transforms"
depends_on :fortran => :optional
depends_on :mpi => [:cc, :optional]
def install
args = ["--enable-shared",
@ -27,6 +29,7 @@ class Fftw < Formula
simd_args << "--enable-avx" if ENV.compiler == :clang and Hardware::CPU.avx? and !build.bottle?
args << "--disable-fortran" if build.without? "fortran"
args << "--enable-mpi" if build.with? "mpi"
ENV.universal_binary if build.universal?