gtk+: make X11 recommended, add Quartz support.

This commit is contained in:
Balint Reczey 2014-06-02 17:01:44 +07:00 committed by Mike McQuaid
parent 3b9d3cbf37
commit f763721358

View file

@ -20,7 +20,7 @@ class Gtkx < Formula
depends_on 'jasper' => :optional depends_on 'jasper' => :optional
depends_on 'atk' depends_on 'atk'
depends_on 'cairo' depends_on 'cairo'
depends_on :x11 => '2.3.6' depends_on :x11 => :recommended # '2.3.6'
depends_on 'gobject-introspection' depends_on 'gobject-introspection'
fails_with :llvm do fails_with :llvm do
@ -29,12 +29,17 @@ class Gtkx < Formula
end end
def install def install
system "./configure", "--disable-dependency-tracking", args = ["--disable-dependency-tracking",
"--disable-silent-rules", "--disable-silent-rules",
"--prefix=#{prefix}", "--prefix=#{prefix}",
"--disable-glibtest", "--disable-glibtest",
"--enable-introspection=yes", "--enable-introspection=yes",
"--disable-visibility" "--disable-visibility"]
args << "--with-gdktarget=quartz" if build.without?("x11")
args << "--enable-quartz-relocation" if build.without?("x11")
system "./configure", *args
system "make install" system "make install"
end end
end end