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/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/glx/gle-graphics-4.2.4cf-src.tar.gz'
|
2012-04-04 13:17:22 +00:00
|
|
|
version '4.2.4c'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '5528528dfe54c74f69bfad174105d55a3dd90e49'
|
2010-11-11 19:48:13 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2010-11-11 19:48:13 +00:00
|
|
|
depends_on 'jpeg' => :optional
|
|
|
|
depends_on 'libtiff' => :optional
|
2014-04-12 22:36:17 +00:00
|
|
|
depends_on 'cairo'
|
2014-04-10 16:22:44 +00:00
|
|
|
|
|
|
|
# fix namespace issues causing compilation errors
|
|
|
|
# https://trac.macports.org/ticket/41760
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/raw-attachment/ticket/41760/patch-hash-map.diff"
|
|
|
|
sha1 "fafa7654f69ace53835b8e7953e715384e16da91"
|
|
|
|
end
|
2010-11-11 19:48:13 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2013-08-02 02:46:56 +00:00
|
|
|
"--with-arch=#{MacOS.preferred_arch}",
|
2010-11-11 19:48:13 +00:00
|
|
|
"--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
|