gromacs depends on x11

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>
This commit is contained in:
Thomas Dunton 2012-09-14 13:11:49 +01:00 committed by Adam Vandenberg
parent 5463335335
commit a75f862660

View file

@ -7,13 +7,16 @@ class Gromacs < Formula
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"