homebrew-core/Formula/open-mpi.rb
Tomas Linhart 6198287bc0 OpenMPI: Update to 1.4.4
Closes Homebrew/homebrew#8502.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-11-09 11:12:15 -08:00

19 lines
680 B
Ruby

require 'formula'
class OpenMpi < Formula
url 'http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.4.tar.gz'
homepage 'http://www.open-mpi.org/'
md5 '7253c2a43445fbce2bf4f1dfbac113ad'
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