gdk-pixbuf: expose additional configure flags (#5981)

--without-modules (mapped to --disable-modules)
--with-included-loaders=
This commit is contained in:
Lovell Fuller 2016-10-23 10:55:25 +01:00 committed by Mike McQuaid
parent 441bf3b1c3
commit 0e7bc8a8aa

View file

@ -13,6 +13,8 @@ class GdkPixbuf < Formula
option :universal
option "with-relocations", "Build with relocation support for bundles"
option "without-modules", "Disable dynamic module loading"
option "with-included-loaders=", "Build the specified loaders into gdk-pixbuf"
depends_on "pkg-config" => :build
depends_on "glib"
@ -52,6 +54,10 @@ class GdkPixbuf < Formula
]
args << "--enable-relocations" if build.with?("relocations")
args << "--disable-modules" if build.without?("modules")
included_loaders = ARGV.value("with-included-loaders")
args << "--with-included-loaders=#{included_loaders}" if included_loaders
system "./configure", *args
system "make"