summaryrefslogtreecommitdiff
path: root/print/libgnomeprint
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2003-02-17 22:22:43 +0000
committerjmmv <jmmv@pkgsrc.org>2003-02-17 22:22:43 +0000
commitaa151ccf3f40e6c59710ef9d4348c95f53239c59 (patch)
tree829ad15a8c0b0c020cd0b25232c8b01c9ba3287d /print/libgnomeprint
parent2483687bb9b490ed504b6620dada6a855d1a0093 (diff)
downloadpkgsrc-aa151ccf3f40e6c59710ef9d4348c95f53239c59.tar.gz
Add conditional support for cups. Closes PR pkg/20397 by Marc Recht.
Diffstat (limited to 'print/libgnomeprint')
-rw-r--r--print/libgnomeprint/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/print/libgnomeprint/Makefile b/print/libgnomeprint/Makefile
index cdee85e22f5..5479748f77e 100644
--- a/print/libgnomeprint/Makefile
+++ b/print/libgnomeprint/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2003/02/14 20:19:46 jmmv Exp $
+# $NetBSD: Makefile,v 1.11 2003/02/17 22:22:43 jmmv Exp $
#
DISTNAME= libgnomeprint-2.2.1.1
@@ -25,6 +25,16 @@ PKGCONFIG_OVERRIDE= ${WRKSRC}/libgnomeprint/libgnomeprint-2.2.pc.in
CONFIGURE_ARGS+= --enable-gtk-doc=no
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc/html
+.include "../../mk/bsd.prefs.mk"
+
+BUILD_DEFS+= USE_CUPS
+.if defined(USE_CUPS) && !empty(USE_CUPS:M[Yy][Ee][Ss])
+.include "../../print/cups/buildlink2.mk"
+CONFIGURE_ARGS+= --with-cups
+.else
+CONFIGURE_ARGS+= --without-cups
+.endif
+
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../devel/libbonobo/buildlink2.mk"
.include "../../devel/pango/buildlink2.mk"