diff options
| author | Rui Pereira | 2011-09-13 15:00:58 +0200 |
|---|---|---|
| committer | Jack Nagel | 2011-09-15 12:49:07 -0500 |
| commit | 6cf429087a4377baf72e3c7c9f166d6c4310f5c9 (patch) | |
| tree | 0dabd91cbdb90bc7aa7b19fd7eac328341a068fc | |
| parent | 35611806241e3d1597e2cf86e140720371ba6fa5 (diff) | |
| download | homebrew-6cf429087a4377baf72e3c7c9f166d6c4310f5c9.tar.bz2 | |
New formula: Xaw3d 1.5E
Xaw3d is a general-purpose replacement for the Athena toolkit which adds
a 3D appearance and support for XPM images.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/xaw3d.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/xaw3d.rb b/Library/Formula/xaw3d.rb new file mode 100644 index 000000000..95fc2a133 --- /dev/null +++ b/Library/Formula/xaw3d.rb @@ -0,0 +1,33 @@ +require 'formula' + +class Xaw3d < Formula + url 'ftp://ftp.visi.com/users/hawkeyd/X/Xaw3d-1.5E.tar.gz' + homepage 'http://freshmeat.net/projects/xaw3d' + md5 '29ecfdcd6bcf47f62ecfd672d31269a1' + version '1.5E' + + depends_on 'imake' + + def install + ENV.x11 + chdir 'lib/Xaw3d' + inreplace 'Imakefile', 'XCOMM EXTRA_INCLUDES', 'EXTRA_INCLUDES' + mkdir 'X11' + chdir 'X11' do + ln_s '..', 'Xaw3d' + end + + system 'xmkmf' + + # force usage of /usr/X11/lib when linking, and install into the Cellar + # apparently s.change_make_var! silently fails when Makefile variables + # are preceded by whitespace, so do it manually + inreplace 'Makefile', 'LDPRELIB = -L$(USRLIBDIR)', 'LDPRELIB = -L$(USRLIBDIR) $(LDFLAGS)' + inreplace 'Makefile', 'USRLIBDIR = /usr/local/lib', "USRLIBDIR = #{lib}" + inreplace 'Makefile', 'SHLIBDIR = /usr/local/lib', "SHLIBDIR = #{lib}" + inreplace 'Makefile', 'INCROOT = /usr/local/include', "INCROOT = #{include}" + + system 'make' + system 'make install' + end +end |
