diff options
| author | Balint Reczey | 2014-05-28 14:24:42 +0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-09-29 19:24:49 -0700 |
| commit | df632f9163431b15e7bc3283a5ce61605b202438 (patch) | |
| tree | 4fda709039bb988946852b419227d72eb508ac7f /Library/Formula | |
| parent | 2db04a79380fea593eb96a8de44e3e9b6fb44d2d (diff) | |
| download | homebrew-df632f9163431b15e7bc3283a5ce61605b202438.tar.bz2 | |
gtk+3: make X11 recommended, add Quartz support.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gtk+3.rb | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/Library/Formula/gtk+3.rb b/Library/Formula/gtk+3.rb index 82c0b760f..edc18d261 100644 --- a/Library/Formula/gtk+3.rb +++ b/Library/Formula/gtk+3.rb @@ -11,7 +11,7 @@ class Gtkx3 < Formula sha1 "579061b56ed5f3fb1efe0cb9cea03ef3d2ecc62e" => :lion end - depends_on :x11 => '2.5' # needs XInput2, introduced in libXi 1.3 + depends_on :x11 => :recommended # (2.5) needs XInput2, introduced in libXi 1.3 depends_on 'pkg-config' => :build depends_on 'glib' depends_on 'jpeg' @@ -26,13 +26,23 @@ class Gtkx3 < Formula depends_on 'gsettings-desktop-schemas' => :recommended def install - system "./configure", "--disable-debug", - "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--disable-glibtest", - "--enable-introspection=yes", - "--enable-x11-backend", - "--disable-schemas-compile" + + args = %W[ + --disable-debug + --disable-dependency-tracking + --prefix=#{prefix} + --disable-glibtest + --enable-introspection=yes + --disable-schemas-compile + ] + + if build.without? "x11" + args << "--enable-quartz-backend" << "--enable-quartz-relocation" + else + args << "--enable-x11-backend" + end + + system "./configure", *args system "make install" # Prevent a conflict between this and Gtk+2 mv bin/'gtk-update-icon-cache', bin/'gtk3-update-icon-cache' |
