New Formula: XMGrace

Closes Homebrew/homebrew#5766.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
Clemens Adolphs 2011-05-24 10:24:38 -07:00 committed by Charlie Sharpsteen
parent f7027326ea
commit f328a71391

28
Formula/grace.rb Normal file
View file

@ -0,0 +1,28 @@
require 'formula'
class Grace < Formula
url 'ftp://plasma-gate.weizmann.ac.il/pub/grace/src/grace5/grace-5.1.22.tar.gz'
homepage 'http://plasma-gate.weizmann.ac.il/Grace/'
md5 '672356466f18fe59ed21a8fb44f9851d'
depends_on 'libpng'
depends_on 'pdflib-lite'
depends_on 'jpeg'
depends_on 'fftw'
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
end
end