gdk-pixbuf: support --universal

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
John Harrison 2012-02-04 00:07:45 -06:00 committed by Adam Vandenberg
parent 3609610ae9
commit ebed512a77

View file

@ -5,20 +5,25 @@ class GdkPixbuf < Formula
url 'http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.24/gdk-pixbuf-2.24.0.tar.bz2' url 'http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.24/gdk-pixbuf-2.24.0.tar.bz2'
sha256 '38d2630314e6d91976bffd833236f84fefa440a9038f86dc422820a39f2e3700' sha256 '38d2630314e6d91976bffd833236f84fefa440a9038f86dc422820a39f2e3700'
depends_on 'pkg-config' => :build
depends_on 'glib' depends_on 'glib'
depends_on 'jasper' depends_on 'jasper'
depends_on 'libtiff' depends_on 'libtiff'
def options
[["--universal", "Build a universal binary."]]
end
def install def install
args = ["--prefix=#{prefix}", ENV.universal_binary if ARGV.build_universal?
"--disable-dependency-tracking", system "./configure", "--disable-dependency-tracking",
"--disable-maintainer-mode", "--disable-maintainer-mode",
"--enable-debug=no", "--enable-debug=no",
"--with-libjasper", "--prefix=#{prefix}",
"--enable-introspection=no", "--with-libjasper",
"--disable-Bsymbolic", "--enable-introspection=no",
"--without-gdiplus"] "--disable-Bsymbolic",
system "./configure", *args "--without-gdiplus"
system "make" system "make"
system "make install" system "make install"
end end