blob: a506222c3955b09127e4eaf276617c61aa0910c4 (
plain)
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
34
35
36
37
|
require 'formula'
class Gtkx3 < Formula
homepage 'http://gtk.org/'
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/3.4/gtk+-3.4.4.tar.xz'
sha256 'f154e460075034da4c0ce89c320025dcd459da2a1fdf32d92a09522eaca242c7'
depends_on :x11 => '2.5' # needs XInput2, introduced in libXi 1.3
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'glib'
depends_on 'jpeg'
depends_on 'libtiff'
depends_on 'gdk-pixbuf'
depends_on 'pango'
depends_on 'cairo'
depends_on 'jasper' => :optional
depends_on 'atk' => :optional
def install
# Always prefer our cairo over XQuartz cairo
cairo = Formula.factory('cairo')
ENV['CAIRO_BACKEND_CFLAGS'] = "-I#{cairo.include}/cairo"
ENV['CAIRO_BACKEND_LIBS'] = "-L#{cairo.lib} -lcairo"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-glibtest",
"--disable-introspection"
system "make install"
end
def test
system "#{bin}/gtk3-demo"
end
end
|