2010-04-20 21:40:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gtkx < Formula
|
2011-03-25 20:04:35 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.3.tar.bz2'
|
2010-04-20 21:40:44 +00:00
|
|
|
homepage 'http://www.gtk.org/'
|
2011-03-25 20:04:35 +00:00
|
|
|
sha256 '336ddf3dd342cc36bee80dd4f86ef036044a2deb10cda67c8eecf5315b279ef7'
|
2010-04-20 21:40:44 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-04-20 21:40:44 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'jpeg'
|
2010-05-19 17:20:47 +00:00
|
|
|
depends_on 'libtiff'
|
2011-03-25 20:04:35 +00:00
|
|
|
depends_on 'gdk-pixbuf'
|
2010-11-14 18:46:16 +00:00
|
|
|
|
|
|
|
# Used by pango, but keg-only, so needs to be added to
|
|
|
|
# the flags for gtk+ explicitly.
|
|
|
|
depends_on 'cairo' if MACOS_VERSION < 10.6
|
|
|
|
|
2010-05-19 17:20:47 +00:00
|
|
|
depends_on 'pango'
|
2010-04-20 21:40:44 +00:00
|
|
|
depends_on 'jasper' => :optional
|
|
|
|
depends_on 'atk' => :optional
|
|
|
|
|
|
|
|
def install
|
2010-10-06 18:42:09 +00:00
|
|
|
fails_with_llvm "Undefined symbols when linking", :build => "2326"
|
2010-04-20 21:40:44 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-glibtest"
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-11-14 18:46:16 +00:00
|
|
|
|
|
|
|
def test
|
|
|
|
system "gtk-demo"
|
|
|
|
end
|
2010-04-20 21:40:44 +00:00
|
|
|
end
|