pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/LPRng-core Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e0cd3ef64b48
branches:  trunk
changeset: 495017:e0cd3ef64b48
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Jun 01 18:51:57 2005 +0000

description:
Convert to options framework.

diffstat:

 print/LPRng-core/Makefile   |  15 ++-------------
 print/LPRng-core/options.mk |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 13 deletions(-)

diffs (49 lines):

diff -r 5d9295228e24 -r e0cd3ef64b48 print/LPRng-core/Makefile
--- a/print/LPRng-core/Makefile Wed Jun 01 18:45:45 2005 +0000
+++ b/print/LPRng-core/Makefile Wed Jun 01 18:51:57 2005 +0000
@@ -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-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 -r 5d9295228e24 -r e0cd3ef64b48 print/LPRng-core/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/LPRng-core/options.mk       Wed Jun 01 18:51:57 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index