diff options
author | cube <cube@pkgsrc.org> | 2005-05-26 15:00:29 +0000 |
---|---|---|
committer | cube <cube@pkgsrc.org> | 2005-05-26 15:00:29 +0000 |
commit | d6dfa4daeb586ee90a0e5d493b5ae07d860e7955 (patch) | |
tree | b3fedfdb1374f71600b259e3893c1b5ed36e4812 /devel | |
parent | c6b70f9526a650e488bccc0d1b089978399797b8 (diff) | |
download | pkgsrc-d6dfa4daeb586ee90a0e5d493b5ae07d860e7955.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')
-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 |