gtk+: make X11 recommended, add Quartz support.
This commit is contained in:
parent
3b9d3cbf37
commit
f763721358
1 changed files with 12 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue