2010-11-11 19:48:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-31 15:33:00 +00:00
|
|
|
class Gle < Formula
|
2012-02-22 04:48:36 +00:00
|
|
|
homepage 'http://glx.sourceforge.net/'
|
2010-11-11 19:48:13 +00:00
|
|
|
url 'http://downloads.sourceforge.net/glx/gle-graphics-4.2.3bf-src.tar.gz'
|
|
|
|
version '4.2.3b'
|
|
|
|
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"
|
|
|
|
|
2012-02-22 04:48:36 +00:00
|
|
|
inreplace 'Makefile', "MKDIR_P", "mkdir -p"
|
2010-11-11 19:48:13 +00:00
|
|
|
|
|
|
|
system "make"
|
|
|
|
ENV.deparallelize
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|