homebrew-core/Formula/gtk+.rb

46 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/'
2014-10-31 22:15:23 +00:00
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.25.tar.xz'
sha256 '38af1020cb8ff3d10dda2c8807f11e92af9d2fa4045de61c62eedb7fbc7ea5b3'
2010-04-20 21:40:44 +00:00
2014-02-22 18:52:37 +00:00
bottle do
2014-10-31 22:33:33 +00:00
sha1 "0316a3ac6d961ab3fb69bbce61ff2eff93a17181" => :yosemite
sha1 "24b4dc55e528bf0d970f9e1a097a8b647a6c91bd" => :mavericks
sha1 "e6ff2911ff5d77feb0f4e9b8f39b0c51d6717429" => :mountain_lion
2014-02-22 18:52:37 +00:00
end
depends_on 'pkg-config' => :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'
depends_on 'cairo'
2014-09-30 02:33:57 +00:00
depends_on :x11 => ['2.3.6', :recommended]
depends_on 'gobject-introspection'
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
args = ["--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--disable-glibtest",
"--enable-introspection=yes",
"--disable-visibility"]
args << "--with-gdktarget=quartz" if build.without?("x11")
args << "--enable-quartz-relocation" if build.without?("x11")
system "./configure", *args
2010-04-20 21:40:44 +00:00
system "make install"
end
end