aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorLenny2222010-11-11 20:48:13 +0100
committerAdam Vandenberg2011-03-30 23:10:32 -0700
commitb99603aa44772ad466161095c84bbd559665fa45 (patch)
tree08486f2c8fb43710258c4083926ed768e6c22325 /Library/Formula
parent68605c66a9f074df4b68a0e1b583c221d54d2dd9 (diff)
downloadhomebrew-b99603aa44772ad466161095c84bbd559665fa45.tar.bz2
gle 4.2.3b
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gle.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/gle.rb b/Library/Formula/gle.rb
new file mode 100644
index 000000000..6db5f1761
--- /dev/null
+++ b/Library/Formula/gle.rb
@@ -0,0 +1,27 @@
+require 'formula'
+
+class Gle <Formula
+ url 'http://downloads.sourceforge.net/glx/gle-graphics-4.2.3bf-src.tar.gz'
+ version '4.2.3b'
+ homepage 'http://glx.sourceforge.net/'
+ md5 '5884a1cbf7a0fe5d3a18a235d10f64a8'
+
+ depends_on 'pkg-config' => :build
+ depends_on 'jpeg' => :optional
+ depends_on 'libtiff' => :optional
+
+ def install
+ ENV.x11
+
+ arch = MacOS.prefer_64_bit? ? "x86_64" : "i386"
+ system "./configure", "--prefix=#{prefix}",
+ "--with-arch=#{arch}",
+ "--without-qt"
+
+ inreplace 'Makefile',"MKDIR_P", "mkdir -p"
+
+ system "make"
+ ENV.deparallelize
+ system "make install"
+ end
+end