gtk+: add universal

Closes Homebrew/homebrew#49271.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Kyungdahm Yun 2016-02-17 13:01:10 -08:00 committed by Dominyk Tiller
parent 23142ef31b
commit 9363252083

View file

@ -22,6 +22,7 @@ class Gtkx < Formula
depends_on "gtk-doc" => :build
end
option :universal
option "with-quartz-relocation", "Build with quartz relocation support"
depends_on "pkg-config" => :build
@ -47,13 +48,15 @@ class Gtkx < Formula
end
def install
ENV.universal_binary if build.universal?
args = ["--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--disable-glibtest",
"--enable-introspection=yes",
"--with-gdktarget=quartz",
"--disable-visibility",]
"--disable-visibility"]
args << "--enable-quartz-relocation" if build.with?("quartz-relocation")