homebrew-core/Formula/gtk+.rb

44 lines
1.2 KiB
Ruby
Raw Normal View History

2010-04-20 21:40:44 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Gtkx < Formula
homepage 'http://gtk.org/'
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.11.tar.xz'
sha256 '328b4ea19a61040145e777e2ac49820968a382ac8581a380c9429897881812a9'
2010-04-20 21:40:44 +00:00
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
2010-04-20 21:40:44 +00:00
depends_on 'glib'
depends_on 'jpeg'
depends_on 'libtiff'
depends_on 'gdk-pixbuf'
depends_on 'pango'
2010-04-20 21:40:44 +00:00
depends_on 'jasper' => :optional
depends_on 'atk' => :optional
depends_on 'cairo'
depends_on :x11
2010-04-20 21:40:44 +00:00
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
2010-04-20 21:40:44 +00:00
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",
2010-04-20 21:40:44 +00:00
"--prefix=#{prefix}",
"--disable-glibtest",
"--disable-introspection",
"--disable-visibility"
2010-04-20 21:40:44 +00:00
system "make install"
end
def test
system "#{bin}/gtk-demo"
end
2010-04-20 21:40:44 +00:00
end