diff options
| author | Charlie Sharpsteen | 2012-02-04 10:54:46 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-02-04 10:54:46 -0800 |
| commit | 835e93dddd3bc363ba106236ccc995b3ce3bdf4c (patch) | |
| tree | 5904c8b5209e7afac453072a037799811d928a9f /Library/Formula/grace.rb | |
| parent | 2d82787caa5e6240bbde2bd8a5d741e2303400ba (diff) | |
| download | homebrew-835e93dddd3bc363ba106236ccc995b3ce3bdf4c.tar.bz2 | |
Grace: Fix formula
Could have sworn I amended the original commit with these changes.
Diffstat (limited to 'Library/Formula/grace.rb')
| -rw-r--r-- | Library/Formula/grace.rb | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/Library/Formula/grace.rb b/Library/Formula/grace.rb index 2eeea0c4d..9843f9aed 100644 --- a/Library/Formula/grace.rb +++ b/Library/Formula/grace.rb @@ -5,24 +5,18 @@ class Grace < Formula homepage 'http://plasma-gate.weizmann.ac.il/Grace/' md5 '672356466f18fe59ed21a8fb44f9851d' - depends_on 'libpng' depends_on 'pdflib-lite' depends_on 'jpeg' depends_on 'fftw' + depends_on 'lesstif' def install - if File.exists?("/usr/OpenMotif") - ENV.append 'CFLAGS', "-I/usr/OpenMotif/include" - ENV.append 'LDFLAGS',"-L/usr/OpenMotif/lib" - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", "--with-zlib", - "--x-includes=/usr/X11/include", - "--x-libraries=/usr/X11/lib", - "--with-extra-ldpath=/usr/OpenMotif/lib", - "--enable-grace-home=#{prefix}" - system "make install" - else - ohnoe "Please install openmotif from http://www.ist-inc.com/downloads/motif_download.html" - end + ENV.x11 + + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", "--with-zlib", + "--enable-grace-home=#{prefix}" + + system "make install" end end |
