Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.options.mk
Show First 20 Lines • Show All 404 Lines • ▼ Show 20 Lines | |||||
.endfor | .endfor | ||||
# Finally, add options required by slave ports | # Finally, add options required by slave ports | ||||
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} | ||||
## Now some compatibility | _REALLY_ALL_POSSIBLE_OPTIONS:= ${COMPLETE_OPTIONS_LIST} ${_ALL_EXCLUDE} | ||||
.if empty(PORT_OPTIONS:MDOCS) | _REALLY_ALL_POSSIBLE_OPTIONS:= ${_REALLY_ALL_POSSIBLE_OPTIONS:O:u} | ||||
PLIST_SUB+= PORTDOCS="@comment " | |||||
.else | |||||
PLIST_SUB+= PORTDOCS="" | |||||
.endif | |||||
.if empty(PORT_OPTIONS:MEXAMPLES) | # Handle PORTDOCS and PORTEXAMPLES | ||||
PLIST_SUB+= PORTEXAMPLES="@comment " | .for _type in DOCS EXAMPLES | ||||
. if !empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type}) | |||||
. if empty(PORT_OPTIONS:M${_type}) | |||||
PLIST_SUB+= PORT${_type}="@comment " | |||||
.else | . else | ||||
PLIST_SUB+= PORTEXAMPLES="" | PLIST_SUB+= PORT${_type}="" | ||||
.endif | . endif | ||||
. endif | |||||
.endfor | |||||
.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 | ||||
.for opt in ${COMPLETE_OPTIONS_LIST} ${_ALL_EXCLUDE:O:u} | .for opt in ${_REALLY_ALL_POSSIBLE_OPTIONS} | ||||
# PLIST_SUB | # PLIST_SUB | ||||
PLIST_SUB?= | PLIST_SUB?= | ||||
SUB_LIST?= | SUB_LIST?= | ||||
. if defined(OPTIONS_SUB) | . if defined(OPTIONS_SUB) | ||||
. if ! ${PLIST_SUB:M${opt}=*} | . if ! ${PLIST_SUB:M${opt}=*} | ||||
. if ${PORT_OPTIONS:M${opt}} | . if ${PORT_OPTIONS:M${opt}} | ||||
PLIST_SUB:= ${PLIST_SUB} ${opt}="" NO_${opt}="@comment " | PLIST_SUB:= ${PLIST_SUB} ${opt}="" NO_${opt}="@comment " | ||||
. else | . else | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |