homebrew-core/Formula/open-mpi.rb
Eric Chen 715d14b068 open-mpi 1.4.5
Closes Homebrew/homebrew#10375.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-21 22:12:21 -06:00

19 lines
680 B
Ruby

require 'formula'
class OpenMpi < Formula
homepage 'http://www.open-mpi.org/'
url 'http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.5.tar.gz'
md5 '28b2a7f9c2fcee0217facf47bf35d5ea'
def install
# Compiler complains about link compatibility with FORTRAN otherwise
ENV.delete('CFLAGS')
ENV.delete('CXXFLAGS')
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
# If Fortran bindings were built, there will be a stra `.mod` file (Fortran
# header) in `lib` that needs to be moved to `include`.
mv lib + 'mpi.mod', include if (lib + 'mpi.mod').exist?
end
end