diff options
-rw-r--r-- | devel/rt3/Makefile.options | 14 |
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 |