New Formula: XMGrace
Closes Homebrew/homebrew#5766. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
parent
f7027326ea
commit
f328a71391
1 changed files with 28 additions and 0 deletions
28
Formula/grace.rb
Normal file
28
Formula/grace.rb
Normal 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
|
Loading…
Reference in a new issue