Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.options.mk
Show First 20 Lines • Show All 263 Lines • ▼ Show 20 Lines | |||||
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 | .endfor | ||||
# Some options are always enabled by default. | # Some options are always enabled by default. | ||||
.for _opt in DOCS NLS EXAMPLES IPV6 | .for _opt in DOCS NLS EXAMPLES IPV6 L10N | ||||
.if ${COMPLETE_OPTIONS_LIST:M${_opt}} | .if ${COMPLETE_OPTIONS_LIST:M${_opt}} | ||||
PORT_OPTIONS+= ${_opt} | PORT_OPTIONS+= ${_opt} | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
# Remove options the port maintainer doesn't want, part 2 | # Remove options the port maintainer doesn't want, part 2 | ||||
.for opt in ${_ALL_EXCLUDE:O:u} | .for opt in ${_ALL_EXCLUDE:O:u} | ||||
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}} | PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}} | ||||
▲ Show 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | |||||
PORT_OPTIONS+= ${OPTIONS_SLAVE} | PORT_OPTIONS+= ${OPTIONS_SLAVE} | ||||
# Sort options and eliminate duplicates | # Sort options and eliminate duplicates | ||||
PORT_OPTIONS:= ${PORT_OPTIONS:O:u} | PORT_OPTIONS:= ${PORT_OPTIONS:O:u} | ||||
_REALLY_ALL_POSSIBLE_OPTIONS:= ${COMPLETE_OPTIONS_LIST} ${_ALL_EXCLUDE} | _REALLY_ALL_POSSIBLE_OPTIONS:= ${COMPLETE_OPTIONS_LIST} ${_ALL_EXCLUDE} | ||||
_REALLY_ALL_POSSIBLE_OPTIONS:= ${_REALLY_ALL_POSSIBLE_OPTIONS:O:u} | _REALLY_ALL_POSSIBLE_OPTIONS:= ${_REALLY_ALL_POSSIBLE_OPTIONS:O:u} | ||||
# Handle PORTDOCS and PORTEXAMPLES | # Handle PORTDOCS, PORTEXAMPLES | ||||
.for _type in DOCS EXAMPLES | .for _type in DOCS EXAMPLES | ||||
. if !empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type}) | . if !empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type}) | ||||
. if empty(PORT_OPTIONS:M${_type}) | . if empty(PORT_OPTIONS:M${_type}) | ||||
PLIST_SUB+= PORT${_type}="@comment " | PLIST_SUB+= PORT${_type}="@comment " | ||||
. else | . else | ||||
PLIST_SUB+= PORT${_type}="" | PLIST_SUB+= PORT${_type}="" | ||||
. endif | . endif | ||||
. endif | . endif | ||||
.endfor | .endfor | ||||
mat: I don't like this bit, the old `%%PORTDOCS%%`, `%%PORTEXAMPLES%%` are here for compatibility… | |||||
.if defined(NO_OPTIONS_SORT) | .if defined(NO_OPTIONS_SORT) | ||||
ALL_OPTIONS= ${OPTIONS_DEFINE} | ALL_OPTIONS= ${OPTIONS_DEFINE} | ||||
.endif | .endif | ||||
.for target in ${_OPTIONS_TARGETS:C/:.*//:u} | .for target in ${_OPTIONS_TARGETS:C/:.*//:u} | ||||
_OPTIONS_${target}?= | _OPTIONS_${target}?= | ||||
.endfor | .endfor | ||||
▲ Show 20 Lines • Show All 196 Lines • Show Last 20 Lines |
I don't like this bit, the old %%PORTDOCS%%, %%PORTEXAMPLES%% are here for compatibility reasons, modern ports should probably use %%DOCS%% and %%EXAMPLES%%, I don't think adding a new compat shim for something that never existed is a good idea.