diff options
| author | Jack Nagel | 2013-05-29 11:15:52 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-29 11:15:52 -0500 |
| commit | d62d7d5dda353724b9470c1868c2882cf2c5cf95 (patch) | |
| tree | db36c5845dfc5270e689b65c7b9dfd48c12cd3a5 /Library/Formula/cairo.rb | |
| parent | c4be7db3febfbb73780c8e213e35ed55f3bc6e75 (diff) | |
| download | homebrew-d62d7d5dda353724b9470c1868c2882cf2c5cf95.tar.bz2 | |
Untangle cairo x/glib options
Fixes #19486.
Diffstat (limited to 'Library/Formula/cairo.rb')
| -rw-r--r-- | Library/Formula/cairo.rb | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Library/Formula/cairo.rb b/Library/Formula/cairo.rb index 332b4083c..08f94dd1b 100644 --- a/Library/Formula/cairo.rb +++ b/Library/Formula/cairo.rb @@ -13,17 +13,16 @@ class Cairo < Formula option :universal option 'without-x', 'Build without X11 support' - option 'with-glib', 'Build with glib (default when building with X)' - env :std if build.universal? - - depends_on :libpng - depends_on 'pixman' depends_on 'pkg-config' => :build depends_on 'xz'=> :build - depends_on 'glib' if build.with?('x') || build.with?('glib') + depends_on :libpng + depends_on 'pixman' + depends_on 'glib' => :optional depends_on :x11 if build.with? 'x' + env :std if build.universal? + def install ENV.universal_binary if build.universal? @@ -32,12 +31,18 @@ class Cairo < Formula --prefix=#{prefix} ] - if build.include? 'without-x' + if build.without? 'x' args << '--enable-xlib=no' << '--enable-xlib-xrender=no' else args << '--with-x' end + if build.with? 'glib' + args << '--enable-gobject=yes' + else + args << '--enable-gobject=no' + end + args << '--enable-xcb=no' if MacOS.version == :leopard system "./configure", *args |
