summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorwiz <wiz>2005-06-09 08:08:26 +0000
committerwiz <wiz>2005-06-09 08:08:26 +0000
commit31c11488eb9176e03838a939e8ad300ebbd1c5e2 (patch)
tree01808a0c3c6fe194de71b5c31b4879254eac2869 /devel
parent44a3da0dd043ff69b3d964fc721498ae7fec0e07 (diff)
downloadpkgsrc-31c11488eb9176e03838a939e8ad300ebbd1c5e2.tar.gz
Convert to use PKG_OPTIONS_REQUIRED_GROUPS.
Should fix PR 30472.
Diffstat (limited to 'devel')
-rw-r--r--devel/rt3/Makefile.options24
1 files changed, 5 insertions, 19 deletions
diff --git a/devel/rt3/Makefile.options b/devel/rt3/Makefile.options
index dccfec16643..3be4d225d6e 100644
--- a/devel/rt3/Makefile.options
+++ b/devel/rt3/Makefile.options
@@ -1,28 +1,14 @@
-# $NetBSD: Makefile.options,v 1.4 2005/05/26 15:00:29 cube Exp $
+# $NetBSD: Makefile.options,v 1.5 2005/06/09 08:08:26 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.rt
-PKG_SUPPORTED_OPTIONS= backend-mysql backend-pgsql \
- frontend-modperl1 frontend-modperl2 \
- frontend-fastcgi
+PKG_OPTIONS_REQUIRED_GROUPS= backend frontend
+PKG_OPTIONS_GROUP.backend= backend-mysql backend-pgsql
+PKG_OPTIONS_GROUP.frontend= frontend-modperl1 frontend-modperl2 \
+ 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 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
-
# Other options
RT_GROUP?= rt