2010-02-26 09:50:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class OpenMpi < Formula
|
2011-11-08 02:14:43 +00:00
|
|
|
url 'http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.4.tar.gz'
|
2011-03-15 19:41:49 +00:00
|
|
|
homepage 'http://www.open-mpi.org/'
|
2011-11-08 02:14:43 +00:00
|
|
|
md5 '7253c2a43445fbce2bf4f1dfbac113ad'
|
2010-02-26 09:50:15 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# Compiler complains about link compatibility with FORTRAN otherwise
|
2010-04-07 05:58:35 +00:00
|
|
|
ENV.delete('CFLAGS')
|
2010-02-26 09:50:15 +00:00
|
|
|
ENV.delete('CXXFLAGS')
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
2011-09-08 16:10:25 +00:00
|
|
|
|
|
|
|
# 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?
|
2010-02-26 09:50:15 +00:00
|
|
|
end
|
|
|
|
end
|