a75f862660
Gromacs depends on libraries from X11. The build breaks when linking to libSM.dylib if the X11 dependency is not set. Closes Homebrew/homebrew#14935. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
26 lines
740 B
Ruby
26 lines
740 B
Ruby
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"
|
|
option 'without-x', "Disable the X11 visualizer"
|
|
|
|
depends_on :x11 unless build.include? 'without-x'
|
|
depends_on 'fftw'
|
|
|
|
def install
|
|
args = ["--prefix=#{prefix}"]
|
|
args << "--enable-mpi" if build.include? 'enable-mpi'
|
|
args << "--enable-double" if build.include? 'enable-double'
|
|
args << "--without-x" if build.include? 'without-x'
|
|
|
|
system "./configure", *args
|
|
system "make"
|
|
ENV.j1
|
|
system "make install"
|
|
end
|
|
end
|