summaryrefslogtreecommitdiff
path: root/graphics/cairo-gobject
diff options
context:
space:
mode:
authoradam <adam>2011-09-09 08:23:58 +0000
committeradam <adam>2011-09-09 08:23:58 +0000
commitcfd764bdfe6a33fac6406646134ee95ee1a9c70f (patch)
tree1fac4a508d30d5fcb3e262337ac73310c9ec5070 /graphics/cairo-gobject
parentf067d726f1a2ab44f48245254950d8cb1d9a0b6f (diff)
downloadpkgsrc-cfd764bdfe6a33fac6406646134ee95ee1a9c70f.tar.gz
Fix building on Darwin
Diffstat (limited to 'graphics/cairo-gobject')
-rw-r--r--graphics/cairo-gobject/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/graphics/cairo-gobject/Makefile b/graphics/cairo-gobject/Makefile
index 63d279d4e97..7748279c35c 100644
--- a/graphics/cairo-gobject/Makefile
+++ b/graphics/cairo-gobject/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2011/04/22 13:42:28 obache Exp $
+# $NetBSD: Makefile,v 1.4 2011/09/09 08:23:58 adam Exp $
DISTNAME= cairo-1.10.2
PKGNAME= cairo-gobject-1.10.2
@@ -23,10 +23,20 @@ USE_PKGLOCALEDIR= yes
USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= src/cairo.pc.in src/cairo-features.pc.in
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --enable-gl
CONFIGURE_ARGS+= --enable-pdf
CONFIGURE_ARGS+= --enable-ps
+.if exists(/System/Library/Frameworks/Carbon.framework)
+CONFIGURE_ARGS+= --enable-quartz
+CONFIGURE_ARGS+= --enable-quartz-font
+CONFIGURE_ARGS+= --enable-quartz-image
+CONFIGURE_ARGS+= --disable-gl
+CONFIGURE_ARGS+= --disable-xlib
+CONFIGURE_ARGS+= --disable-xlib-xrender
+.else
+CONFIGURE_ARGS+= --enable-gl
+.endif
+
# For snprintf() and ctime_r()
CPPFLAGS.SunOS+= -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS