46 lines
1.3 KiB
Ruby
46 lines
1.3 KiB
Ruby
require 'formula'
|
|
|
|
class Gtkx < Formula
|
|
homepage 'http://gtk.org/'
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.24.tar.xz'
|
|
sha256 '12ceb2e198c82bfb93eb36348b6e9293c8fdcd60786763d04cfec7ebe7ed3d6d'
|
|
|
|
bottle do
|
|
revision 1
|
|
sha1 "4bea858d56bd72ea807c3a65b51518f2fabbd088" => :mavericks
|
|
sha1 "df71563bc01f092248dd6cce12f071887796eb19" => :mountain_lion
|
|
sha1 "9b42bdb4a928a69f18b5192a333652612c92e16c" => :lion
|
|
end
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'glib'
|
|
depends_on 'jpeg'
|
|
depends_on 'libtiff'
|
|
depends_on 'gdk-pixbuf'
|
|
depends_on 'pango'
|
|
depends_on 'jasper' => :optional
|
|
depends_on 'atk'
|
|
depends_on 'cairo'
|
|
depends_on :x11 => ['2.3.6', :recommended]
|
|
depends_on 'gobject-introspection'
|
|
|
|
fails_with :llvm do
|
|
build 2326
|
|
cause "Undefined symbols when linking"
|
|
end
|
|
|
|
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
|
|
system "make install"
|
|
end
|
|
end
|