Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.options.mk
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | _OPTIONS_TARGETS= fetch:300:pre fetch:500:do fetch:700:post \ | ||||
patch:300:pre patch:500:do patch:700:post \ | patch:300:pre patch:500:do patch:700:post \ | ||||
configure:300:pre configure:500:do configure:700:post \ | configure:300:pre configure:500:do configure:700:post \ | ||||
build:300:pre build:500:do build:700:post \ | build:300:pre build:500:do build:700:post \ | ||||
install:300:pre install:500:do install:700:post \ | install:300:pre install:500:do install:700:post \ | ||||
test:300:pre test:500:do test:700:post \ | test:300:pre test:500:do test:700:post \ | ||||
package:300:pre package:500:do package:700:post \ | package:300:pre package:500:do package:700:post \ | ||||
stage:800:post | stage:800:post | ||||
PORT_OPTIONS+= DOCS NLS EXAMPLES IPV6 | |||||
# Add per arch options | # Add per arch options | ||||
.for opt in ${OPTIONS_DEFINE_${ARCH}} | .for opt in ${OPTIONS_DEFINE_${ARCH}} | ||||
.if empty(OPTIONS_DEFINE:M${opt}) | .if empty(OPTIONS_DEFINE:M${opt}) | ||||
OPTIONS_DEFINE+= ${opt} | OPTIONS_DEFINE+= ${opt} | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
# Add per arch defaults | # Add per arch defaults | ||||
OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${ARCH}} | OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${ARCH}} | ||||
_ALL_EXCLUDE= ${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE} \ | _ALL_EXCLUDE= ${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE} \ | ||||
${OPTIONS_SLAVE} ${OPTIONS_EXCLUDE_${OPSYS}} \ | ${OPTIONS_SLAVE} ${OPTIONS_EXCLUDE_${OPSYS}} \ | ||||
${OPTIONS_EXCLUDE_${OPSYS}_${OSREL:R}} | ${OPTIONS_EXCLUDE_${OPSYS}_${OSREL:R}} | ||||
.for opt in ${OPTIONS_DEFINE:O:u} | .for opt in ${OPTIONS_DEFINE:O:u} | ||||
. if !${_ALL_EXCLUDE:M${opt}} | . if !${_ALL_EXCLUDE:M${opt}} | ||||
. for opt_implied in ${${opt}_IMPLIES} | . for opt_implied in ${${opt}_IMPLIES} | ||||
. if ${_ALL_EXCLUDE:M${opt_implied}} | . if ${_ALL_EXCLUDE:M${opt_implied}} | ||||
_ALL_EXCLUDE+= ${opt} | _ALL_EXCLUDE+= ${opt} | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
. endif | . endif | ||||
.endfor | .endfor | ||||
# Remove options the port maintainer doesn't want | # Remove options the port maintainer doesn't want, part 1 | ||||
.for opt in ${_ALL_EXCLUDE:O:u} | .for opt in ${_ALL_EXCLUDE:O:u} | ||||
OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:N${opt}} | OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:N${opt}} | ||||
OPTIONS_DEFINE:= ${OPTIONS_DEFINE:N${opt}} | OPTIONS_DEFINE:= ${OPTIONS_DEFINE:N${opt}} | ||||
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}} | |||||
. for otype in SINGLE RADIO MULTI GROUP | . for otype in SINGLE RADIO MULTI GROUP | ||||
. for m in ${OPTIONS_${otype}} | . for m in ${OPTIONS_${otype}} | ||||
OPTIONS_${otype}_${m}:= ${OPTIONS_${otype}_${m}:N${opt}} | OPTIONS_${otype}_${m}:= ${OPTIONS_${otype}_${m}:N${opt}} | ||||
. endfor | . endfor | ||||
. endfor | . endfor | ||||
.endfor | .endfor | ||||
# Remove empty SINGLE/GROUP/RADIO/MULTI | # Remove empty SINGLE/GROUP/RADIO/MULTI | ||||
Show All 11 Lines | |||||
OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:O:u} | OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:O:u} | ||||
# complete list | # complete list | ||||
COMPLETE_OPTIONS_LIST= ${ALL_OPTIONS} | COMPLETE_OPTIONS_LIST= ${ALL_OPTIONS} | ||||
.for otype in SINGLE RADIO MULTI GROUP | .for otype in SINGLE RADIO MULTI GROUP | ||||
. for m in ${OPTIONS_${otype}} | . for m in ${OPTIONS_${otype}} | ||||
COMPLETE_OPTIONS_LIST+= ${OPTIONS_${otype}_${m}} | COMPLETE_OPTIONS_LIST+= ${OPTIONS_${otype}_${m}} | ||||
. endfor | . endfor | ||||
.endfor | |||||
# Some options are always enabled by default. | |||||
.for _opt in DOCS NLS EXAMPLES IPV6 | |||||
.if ${COMPLETE_OPTIONS_LIST:M${_opt}} | |||||
PORT_OPTIONS+= ${_opt} | |||||
.endif | |||||
.endfor | |||||
# Remove options the port maintainer doesn't want, part 2 | |||||
.for opt in ${_ALL_EXCLUDE:O:u} | |||||
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}} | |||||
.endfor | .endfor | ||||
## Now create the list of activated options | ## Now create the list of activated options | ||||
.if defined(OPTIONS_OVERRIDE) | .if defined(OPTIONS_OVERRIDE) | ||||
# Special case $OPTIONS_OVERRIDE; if it is defined forget about anything done | # Special case $OPTIONS_OVERRIDE; if it is defined forget about anything done | ||||
# before | # before | ||||
NEW_OPTIONS= | NEW_OPTIONS= | ||||
PORT_OPTIONS:= ${OPTIONS_OVERRIDE} | PORT_OPTIONS:= ${OPTIONS_OVERRIDE} | ||||
▲ Show 20 Lines • Show All 334 Lines • Show Last 20 Lines |