forked from rdowinton/homebrew-x11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgle.rb
33 lines (27 loc) · 920 Bytes
/
gle.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'formula'
class Gle < Formula
homepage 'http://glx.sourceforge.net/'
url 'https://downloads.sourceforge.net/glx/gle-graphics-4.2.4cf-src.tar.gz'
version '4.2.4c'
sha1 '5528528dfe54c74f69bfad174105d55a3dd90e49'
depends_on 'pkg-config' => :build
depends_on :x11
depends_on 'jpeg' => :optional
depends_on 'libtiff' => :optional
depends_on 'cairo'
# 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
def install
system "./configure", "--prefix=#{prefix}",
"--with-arch=#{MacOS.preferred_arch}",
"--without-qt"
inreplace 'Makefile', "MKDIR_P", "mkdir -p"
system "make"
ENV.deparallelize
system "make install"
end
end