summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-06-01 18:51:57 +0000
committerwiz <wiz@pkgsrc.org>2005-06-01 18:51:57 +0000
commit524b798f8c0d1c5f1aca18819aaf15333f58f02b (patch)
treea1662bc0ed13fba94c1372553fadb1ec128c6aee /print
parentcbe4100202b9718cb94a2b01bed579f5075e3f86 (diff)
downloadpkgsrc-524b798f8c0d1c5f1aca18819aaf15333f58f02b.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