From d14b2ec7ad18e5f5f945cd47d154af74a48eba60 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 6 Oct 2013 20:56:55 -0500 Subject: clutter: fix build on Snow Leopard --- Library/Formula/clutter.rb | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/clutter.rb b/Library/Formula/clutter.rb index 28268a1b7..78e1149a3 100644 --- a/Library/Formula/clutter.rb +++ b/Library/Formula/clutter.rb @@ -29,9 +29,22 @@ class Clutter < Formula --disable-tests --disable-examples --disable-gtk-doc-html - --enable-quartz-backend ] - args << '--disable-x11-backend' << '--without-x' if build.include? 'without-x' + + if build.with? 'x' + args.concat %w{ + --with-x --enable-x11-backend=yes + --enable-gdk-pixbuf=yes + --enable-quartz-backend=no + } + else + args.concat %w{ + --without-x --enable-x11-backend=no + --enable-gdk-pixbuf=no + --enable-quartz-backend=yes + } + end + system './configure', *args system 'make install' end -- cgit v1.2.3