summaryrefslogtreecommitdiff
path: root/devel/rt3
diff options
context:
space:
mode:
authorcube <cube>2005-05-26 15:00:29 +0000
committercube <cube>2005-05-26 15:00:29 +0000
commit3d4619f37a8f05be3b431605ddf08efa54baaa83 (patch)
treeb3fedfdb1374f71600b259e3893c1b5ed36e4812 /devel/rt3
parentde9e4d2ba843f783163afd3a090f15e2abbffecd (diff)
downloadpkgsrc-3d4619f37a8f05be3b431605ddf08efa54baaa83.tar.gz
o PKG_SUGGESTED_OPTIONS should be set unconditionally.
o Really enforce the conflicts between backend-* and frontend-* options, as the recent changes in the options framework might confuse people in that respect. You know have to explicitly remove the suggested options in your PKG_OPTIONS.rt variable.
Diffstat (limited to 'devel/rt3')
-rw-r--r--devel/rt3/Makefile.options14
1 files changed, 11 insertions, 3 deletions
diff --git a/devel/rt3/Makefile.options b/devel/rt3/Makefile.options
index 09cda3e4bca..dccfec16643 100644
--- a/devel/rt3/Makefile.options
+++ b/devel/rt3/Makefile.options
@@ -1,17 +1,25 @@
-# $NetBSD: Makefile.options,v 1.3 2005/05/24 23:35:49 seb Exp $
+# $NetBSD: Makefile.options,v 1.4 2005/05/26 15:00:29 cube Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.rt
PKG_SUPPORTED_OPTIONS= backend-mysql backend-pgsql \
frontend-modperl1 frontend-modperl2 \
frontend-fastcgi
-PKG_SUGGESTED_OPTIONS?= backend-mysql frontend-fastcgi
+PKG_SUGGESTED_OPTIONS= backend-mysql frontend-fastcgi
.include "../../mk/bsd.options.mk"
# Too bad -1-6's make doesn't have :[#] modifier
.for _option_ in backend frontend
. if empty(PKG_OPTIONS:M${_option_}-*)
-PKG_FAIL_REASON+= "There must one and only one ${_option_} defined."
+PKG_FAIL_REASON+= "There must be one ${_option_} defined."
+. else
+_RT_DUMMY:= # empty
+. for _dummy_ in ${PKG_OPTIONS:M${_option_}-*}
+_RT_DUMMY:= ${_RT_DUMMY}+
+. endfor
+. if ${_RT_DUMMY} != +
+PKG_FAIL_REASON+= "There must be no more than one ${_option_} defined."
+. endif
. endif
.endfor