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 'atk'
depends_on 'cairo'
depends_on :x11 => '2.3.6'
depends_on :x11 => :recommended # '2.3.6'
depends_on 'gobject-introspection'
fails_with :llvm do
@ -29,12 +29,17 @@ class Gtkx < Formula
end
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--disable-glibtest",
"--enable-introspection=yes",
"--disable-visibility"
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