summaryrefslogtreecommitdiff
path: root/net/flow-tools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-08-22 19:32:51 +0000
committerjlam <jlam@pkgsrc.org>2004-08-22 19:32:51 +0000
commit9d5426ff76defa85311d3e55ed2c442fb5ae9977 (patch)
treebe106f064832dabfe855335adc4a7d14708a360a /net/flow-tools
parent3c0724db4840983688df4cd77ea88653e9b13249 (diff)
downloadpkgsrc-9d5426ff76defa85311d3e55ed2c442fb5ae9977.tar.gz
Change the way that legacy USE_* and FOO_USE_* options are converted
into the bsd.options.mk framework. Instead of appending to ${PKG_OPTIONS_VAR}, it appends to PKG_DEFAULT_OPTIONS. This causes the default options to be the union of PKG_DEFAULT_OPTIONS and any old USE_* and FOO_USE_* settings. This fixes PR pkg/26590.
Diffstat (limited to 'net/flow-tools')
-rw-r--r--net/flow-tools/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/net/flow-tools/Makefile b/net/flow-tools/Makefile
index fec3e3ee40b..a642560fe92 100644
--- a/net/flow-tools/Makefile
+++ b/net/flow-tools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2004/08/09 22:37:34 seb Exp $
+# $NetBSD: Makefile,v 1.9 2004/08/22 19:32:52 jlam Exp $
DISTNAME= flow-tools-0.67
CATEGORIES= net
@@ -27,12 +27,13 @@ SUPPORT_FILES+= ${EGDIR}/sym/${_f_} ${PKG_SYSCONFDIR}/sym/${_f_}
.endfor
MESSAGE_SUBST+= EGDIR=${EGDIR}
-# legacy options
-.if defined(FLOW_TOOLS_USE_MYSQL) && !empty(FLOW_TOOLS_USE_MYSQL:M[yY][eE][sS])
-PKG_OPTIONS.flow-tools+= mysql
+.if defined(FLOW_TOOLS_USE_MYSQL) && \
+ !empty(FLOW_TOOLS_USE_MYSQL:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= mysql
.endif
-.if defined(FLOW_TOOLS_USE_POSTGRESQL) && !empty(FLOW_TOOLS_USE_POSTGRESQL:M[yY][eE][sS])
-PKG_OPTIONS.flow-tools+= postgresql
+.if defined(FLOW_TOOLS_USE_POSTGRESQL) && \
+ !empty(FLOW_TOOLS_USE_POSTGRESQL:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= postgresql
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.flow-tools