aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/cairo.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/cairo.rb b/Library/Formula/cairo.rb
index aa5c63109..9f396ecac 100644
--- a/Library/Formula/cairo.rb
+++ b/Library/Formula/cairo.rb
@@ -13,6 +13,7 @@ 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?
@@ -20,8 +21,8 @@ class Cairo < Formula
depends_on 'pixman'
depends_on 'pkg-config' => :build
depends_on 'xz'=> :build
- depends_on 'glib' unless build.include? 'without-x'
- depends_on :x11 unless build.include? 'without-x'
+ depends_on 'glib' if build.with? 'x' || build.with? 'glib'
+ depends_on :x11 if build.with? 'x'
def install
ENV.universal_binary if build.universal?