73f3587e96
We use PKG_CONFIG_LIBDIR to reset the default search path, overriding whatever is baked into the pkg-config executable. This way, we can later append XQuartz paths here while still allowing any brewed libs to take precedence, keg-only or not. Hopefully this will resolve any remaining issues, and let us get rid of some per-formula hacks. c.f. Homebrew/homebrew#14474. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
38 lines
990 B
Ruby
38 lines
990 B
Ruby
require 'formula'
|
|
|
|
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'
|
|
|
|
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 'jasper' => :optional
|
|
depends_on 'atk' => :optional
|
|
depends_on 'cairo'
|
|
depends_on :x11
|
|
|
|
fails_with :llvm do
|
|
build 2326
|
|
cause "Undefined symbols when linking"
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--disable-glibtest",
|
|
"--disable-introspection",
|
|
"--disable-visibility"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "#{bin}/gtk-demo"
|
|
end
|
|
end
|