diff options
Diffstat (limited to 'graphics/cairo-gobject/Makefile')
-rw-r--r-- | graphics/cairo-gobject/Makefile | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/graphics/cairo-gobject/Makefile b/graphics/cairo-gobject/Makefile index 5f6997dcfe1..5e458886662 100644 --- a/graphics/cairo-gobject/Makefile +++ b/graphics/cairo-gobject/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.31 2015/11/06 11:15:52 wiz Exp $ +# $NetBSD: Makefile,v 1.32 2016/04/11 04:59:10 dbj Exp $ .include "../../graphics/cairo/Makefile.common" @@ -15,8 +15,27 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/src/cairo-gobject.pc \ ${DESTDIR}${PREFIX}/lib/pkgconfig +.include "../../graphics/cairo/buildlink3.mk" +### +### X11 and XCB support (XCB implies X11) +### +### This matches the logic in ../../graphics/cairo/options.mk +### +.if !empty(PKG_BUILD_OPTIONS.cairo:Mx11) || !empty(PKG_BUILD_OPTIONS.cairo:Mxcb) +CONFIGURE_ARGS+= --enable-xlib +CONFIGURE_ARGS+= --enable-xlib-xrender +. if !empty(PKG_BUILD_OPTIONS.cairo:Mxcb) +CONFIGURE_ARGS+= --enable-xcb +. else +CONFIGURE_ARGS+= --disable-xcb +. endif +.else +CONFIGURE_ARGS+= --disable-xlib +CONFIGURE_ARGS+= --disable-xlib-xrender +CONFIGURE_ARGS+= --disable-xcb +.endif + BUILDLINK_ABI_DEPENDS.glib2+= glib2>=2.14.0 .include "../../devel/glib2/buildlink3.mk" -.include "../../graphics/cairo/buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |