summaryrefslogtreecommitdiff
path: root/print/epdfview
diff options
context:
space:
mode:
authordillo <dillo>2007-01-28 00:13:49 +0000
committerdillo <dillo>2007-01-28 00:13:49 +0000
commit331c45c33a6bb36e37532c360eb26103f5cc5342 (patch)
treeb7b9c8d1c15a7188402cf55b31659a32dc28bed0 /print/epdfview
parent0113281167f7b74ac4964d956235a636166cf5f7 (diff)
downloadpkgsrc-331c45c33a6bb36e37532c360eb26103f5cc5342.tar.gz
Add cups option.
Explicitly disable cups if option is not set -- fixes build againts cups-enabled gtk2. Okayed by maintainer.
Diffstat (limited to 'print/epdfview')
-rw-r--r--print/epdfview/Makefile4
-rw-r--r--print/epdfview/options.mk13
2 files changed, 16 insertions, 1 deletions
diff --git a/print/epdfview/Makefile b/print/epdfview/Makefile
index 8090c869e85..cfe7ac2dc6d 100644
--- a/print/epdfview/Makefile
+++ b/print/epdfview/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/11/30 07:30:29 reed Exp $
+# $NetBSD: Makefile,v 1.2 2007/01/28 00:13:49 dillo Exp $
#
DISTNAME= epdfview-0.1.5
@@ -15,6 +15,8 @@ USE_LANGUAGES+= c c++
USE_PKGLOCALEDIR= yes
USE_TOOLS+= pkg-config
+.include "options.mk"
+
.include "../../print/poppler-glib/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
diff --git a/print/epdfview/options.mk b/print/epdfview/options.mk
new file mode 100644
index 00000000000..60a8a1c2b00
--- /dev/null
+++ b/print/epdfview/options.mk
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2007/01/28 00:13:49 dillo Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.epdfview
+PKG_SUPPORTED_OPTIONS= cups
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcups)
+.include "../../print/cups/buildlink3.mk"
+CONFIGURE_ARGS+= --with-cups
+.else
+CONFIGURE_ARGS+= --without-cups
+.endif