summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorwiz <wiz>2005-06-01 18:51:57 +0000
committerwiz <wiz>2005-06-01 18:51:57 +0000
commit1cfc9f3f9a290ec256d9b97dd944821b76c55fc1 (patch)
treea1662bc0ed13fba94c1372553fadb1ec128c6aee /print
parentccb51a38891de0f94b81146b84ed5dfc572366c1 (diff)
downloadpkgsrc-1cfc9f3f9a290ec256d9b97dd944821b76c55fc1.tar.gz
Convert to options framework.
Diffstat (limited to 'print')
-rw-r--r--print/LPRng-core/Makefile15
-rw-r--r--print/LPRng-core/options.mk16
2 files changed, 18 insertions, 13 deletions
diff --git a/print/LPRng-core/Makefile b/print/LPRng-core/Makefile
index 46fb6622942..e7695759d58 100644
--- a/print/LPRng-core/Makefile
+++ b/print/LPRng-core/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2005/05/22 20:08:27 jlam Exp $
+# $NetBSD: Makefile,v 1.17 2005/06/01 18:51:57 wiz Exp $
DISTNAME= LPRng-3.8.28
PKGNAME= LPRng-core-3.8.28
@@ -26,18 +26,7 @@ CONFIGURE_ARGS+= --with-filterdir="${FILTER_DIR}"
CONFIGURE_ARGS+= --with-filter_path="${FILTER_PATH}"
CONFIGURE_ARGS+= --with-ld_library_path="${FILTER_LD_PATH}"
-.include "../../mk/bsd.prefs.mk"
-
-LPRNG_SUID?= YES
-LPRNG_PRIV_PORTS?= NO
-BUILD_DEFS+= LPRNG_SUID LPRNG_PRIV_PORTS
-
-.if (${LPRNG_SUID} == "NO")
-CONFIGURE_ARGS+= --disable-setuid
-.endif
-.if (${LPRNG_PRIV_PORTS} == "YES")
-CONFIGURE_ARGS+= --enable-priv_ports
-.endif
+.include "options.mk"
# Look for printer configuration files firstly in /etc, then ${PREFIX}/etc.
#
diff --git a/print/LPRng-core/options.mk b/print/LPRng-core/options.mk
new file mode 100644
index 00000000000..96b8899e85e
--- /dev/null
+++ b/print/LPRng-core/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2005/06/01 18:51:57 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.LPRng-core
+PKG_SUPPORTED_OPTIONS= lprng-priv-ports lprng-suid
+PKG_SUGGESTED_OPTIONS= lprng-suid
+PKG_OPTIONS_LEGACY_VARS+= LPRNG_PRIV_PORTS:lprng-priv-ports
+PKG_OPTIONS_LEGACY_VARS+= LPRNG_SUID:lprng-suid
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mlprng-priv-ports)
+CONFIGURE_ARGS+= --enable-priv_ports
+.endif
+.if empty(PKG_OPTIONS:Mlprng-suid)
+CONFIGURE_ARGS+= --disable-setuid
+.endif