diff options
author | dbj <dbj@pkgsrc.org> | 2016-04-11 04:59:10 +0000 |
---|---|---|
committer | dbj <dbj@pkgsrc.org> | 2016-04-11 04:59:10 +0000 |
commit | d93ed62aec78f4f1cfb01a1ea718be44ff338b28 (patch) | |
tree | 53ad63770df21ff2e356a3d0310943ecb9fe1b05 /graphics | |
parent | 2554e940a45222248d916f0a65c3ff8eedd57a26 (diff) | |
download | pkgsrc-d93ed62aec78f4f1cfb01a1ea718be44ff338b28.tar.gz |
match x11 and xcb options to cairo package
Diffstat (limited to 'graphics')
-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" |