9d5426ff76
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.
21 lines
566 B
Text
21 lines
566 B
Text
# $NetBSD: Makefile.options,v 1.2 2004/08/22 19:32:51 jlam Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.rt
|
|
PKG_SUPPORTED_OPTIONS= backend-mysql backend-pgsql \
|
|
frontend-modperl1 frontend-modperl2 \
|
|
frontend-fastcgi
|
|
PKG_DEFAULT_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."
|
|
. endif
|
|
.endfor
|
|
|
|
# Other options
|
|
|
|
RT_GROUP?= rt
|
|
BUILD_DEFS+= RT_GROUP
|