Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.options.mk
| Show First 20 Lines • Show All 489 Lines • ▼ Show 20 Lines | |||||
| . else | . else | ||||
| SUB_LIST:= ${SUB_LIST} ${opt}="@comment " NO_${opt}="" | SUB_LIST:= ${SUB_LIST} ${opt}="@comment " NO_${opt}="" | ||||
| . endif | . endif | ||||
| . endif | . endif | ||||
| . endif | . endif | ||||
| . if ${PORT_OPTIONS:M${opt}} | . if ${PORT_OPTIONS:M${opt}} | ||||
| . if defined(${opt}_USE) | . if defined(${opt}_USE) | ||||
| . for option in ${${opt}_USE} | . for option in ${${opt}_USE:C/=.*//:O:u} | ||||
| _u= ${option:C/=.*//g} | _u= ${option} | ||||
| USE_${_u:tu}+= ${option:C/.*=//g:C/,/ /g} | USE_${_u:tu}+= ${${opt}_USE:M${option}=*:C/.*=//g:C/,/ /g} | ||||
| . endfor | . endfor | ||||
| . endif | . endif | ||||
| . if defined(${opt}_VARS) | . if defined(${opt}_VARS) | ||||
| . for var in ${${opt}_VARS:C/=.*//:O:u} | . for var in ${${opt}_VARS:C/=.*//:O:u} | ||||
| _u= ${var} | _u= ${var} | ||||
| . if ${_u:M*+} | . if ${_u:M*+} | ||||
| ${_u:C/.$//:tu}+= ${${opt}_VARS:M${var}=*:C/[^+]*\+=//:C/^"(.*)"$$/\1/} | ${_u:C/.$//:tu}+= ${${opt}_VARS:M${var}=*:C/[^+]*\+=//:C/^"(.*)"$$/\1/} | ||||
| . else | . else | ||||
| Show All 31 Lines | |||||
| . for target in ${_OPTIONS_TARGETS} | . for target in ${_OPTIONS_TARGETS} | ||||
| _target= ${target:C/:.*//} | _target= ${target:C/:.*//} | ||||
| _prio= ${target:C/.*:(.*):.*/\1/} | _prio= ${target:C/.*:(.*):.*/\1/} | ||||
| _type= ${target:C/.*://} | _type= ${target:C/.*://} | ||||
| _OPTIONS_${_target}:= ${_OPTIONS_${_target}} ${_prio}:${_type}-${_target}-${opt}-on | _OPTIONS_${_target}:= ${_OPTIONS_${_target}} ${_prio}:${_type}-${_target}-${opt}-on | ||||
| . endfor | . endfor | ||||
| . else | . else | ||||
| . if defined(${opt}_USE_OFF) | . if defined(${opt}_USE_OFF) | ||||
| . for option in ${${opt}_USE_OFF} | . for option in ${${opt}_USE_OFF:C/=.*//:O:u} | ||||
| _u= ${option:C/=.*//g} | _u= ${option} | ||||
| USE_${_u:tu}+= ${option:C/.*=//g:C/,/ /g} | USE_${_u:tu}+= ${${opt}_USE_OFF:M${option}=*:C/.*=//g:C/,/ /g} | ||||
| . endfor | . endfor | ||||
| . endif | . endif | ||||
| . if defined(${opt}_VARS_OFF) | . if defined(${opt}_VARS_OFF) | ||||
| . for var in ${${opt}_VARS_OFF:C/=.*//:O:u} | . for var in ${${opt}_VARS_OFF:C/=.*//:O:u} | ||||
| _u= ${var} | _u= ${var} | ||||
| . if ${_u:M*+} | . if ${_u:M*+} | ||||
| ${_u:C/.$//:tu}+= ${${opt}_VARS_OFF:M${var}=*:C/[^+]*\+=//:C/^"(.*)"$$/\1/} | ${_u:C/.$//:tu}+= ${${opt}_VARS_OFF:M${var}=*:C/[^+]*\+=//:C/^"(.*)"$$/\1/} | ||||
| . else | . else | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||