2010-10-29 07:36:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gromacs < Formula
|
2010-10-29 07:36:17 +00:00
|
|
|
homepage 'http://www.gromacs.org/'
|
2012-08-28 04:57:08 +00:00
|
|
|
url 'ftp://ftp.gromacs.org/pub/gromacs/gromacs-4.5.5.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'ce4b4f9a0453dd2ffea72f28ea0bc7bb7a72f479'
|
2010-10-29 07:36:17 +00:00
|
|
|
|
2012-08-28 04:57:08 +00:00
|
|
|
option 'enable-mpi', "Enables MPI support"
|
|
|
|
option 'enable-double',"Enables double precision"
|
2012-09-14 12:11:49 +00:00
|
|
|
option 'without-x', "Disable the X11 visualizer"
|
2010-10-29 07:36:17 +00:00
|
|
|
|
2012-09-14 12:11:49 +00:00
|
|
|
depends_on :x11 unless build.include? 'without-x'
|
2012-08-28 04:57:08 +00:00
|
|
|
depends_on 'fftw'
|
2010-10-29 07:36:17 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--prefix=#{prefix}"]
|
2012-08-28 04:57:08 +00:00
|
|
|
args << "--enable-mpi" if build.include? 'enable-mpi'
|
|
|
|
args << "--enable-double" if build.include? 'enable-double'
|
2012-09-14 12:11:49 +00:00
|
|
|
args << "--without-x" if build.include? 'without-x'
|
2010-10-29 07:36:17 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
|
|
ENV.j1
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|