blob: 6a00020ed4f561a384b47d7bbab79558d669997f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
require 'formula'
class Gromacs < Formula
homepage 'http://www.gromacs.org/'
url 'ftp://ftp.gromacs.org/pub/gromacs/gromacs-4.5.5.tar.gz'
sha1 'ce4b4f9a0453dd2ffea72f28ea0bc7bb7a72f479'
option 'enable-mpi', "Enables MPI support"
option 'enable-double',"Enables double precision"
depends_on 'fftw'
def install
args = ["--prefix=#{prefix}"]
args << "--enable-mpi" if build.include? 'enable-mpi'
args << "--enable-double" if build.include? 'enable-double'
system "./configure", *args
system "make"
ENV.j1
system "make install"
end
end
|