gtk+3: always use our cairo

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-08-25 16:40:56 -05:00
parent 713fb54fc2
commit 47a90803be

View file

@ -13,11 +13,16 @@ class Gtkx3 < Formula
depends_on 'libtiff'
depends_on 'gdk-pixbuf'
depends_on 'pango'
depends_on 'cairo' # for cairo-gobject; XQuartz includes it, but it's broken as of 2.7.2
depends_on 'cairo'
depends_on 'jasper' => :optional
depends_on 'atk' => :optional
def install
# Always prefer our cairo over XQuartz cairo
cairo = Formula.factory('cairo')
ENV['CAIRO_BACKEND_CFLAGS'] = "-I#{cairo.include}/cairo"
ENV['CAIRO_BACKEND_LIBS'] = "-L#{cairo.lib} -lcairo"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",