Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.options.mk
Show First 20 Lines • Show All 394 Lines • ▼ Show 20 Lines | |||||
## Enable options implied by other options | ## Enable options implied by other options | ||||
# _PREVENTS is handled in bsd.port.mk:pre-check-config | # _PREVENTS is handled in bsd.port.mk:pre-check-config | ||||
## 1) Build dependency chain in A.B format: | ## 1) Build dependency chain in A.B format: | ||||
_DEPCHAIN= | _DEPCHAIN= | ||||
. for opt in ${COMPLETE_OPTIONS_LIST} | . for opt in ${COMPLETE_OPTIONS_LIST} | ||||
. for o in ${${opt}_IMPLIES} | . for o in ${${opt}_IMPLIES} | ||||
_DEPCHAIN+= ${opt}.$o | _DEPCHAIN+= ${opt}.$o | ||||
. endfor | . endfor | ||||
. if ${${opt}_IMPLIES} | |||||
${opt}_DESC:= ${${opt}_DESC} (implies ${${opt}_IMPLIES}) | |||||
. endif | |||||
. endfor | . endfor | ||||
## 2) Check each dependency pair and if LHS is in PORT_OPTIONS then add RHS. | ## 2) Check each dependency pair and if LHS is in PORT_OPTIONS then add RHS. | ||||
## All of RHS of "RHS.*" (i.e. indirect dependency) are also added for | ## All of RHS of "RHS.*" (i.e. indirect dependency) are also added for | ||||
## fast convergence. | ## fast convergence. | ||||
_PORT_OPTIONS:= ${PORT_OPTIONS} | _PORT_OPTIONS:= ${PORT_OPTIONS} | ||||
. for _count in _0 ${COMPLETE_OPTIONS_LIST} | . for _count in _0 ${COMPLETE_OPTIONS_LIST} | ||||
count= ${_count} | count= ${_count} | ||||
### Check if all of the nested dependency are resolved already. | ### Check if all of the nested dependency are resolved already. | ||||
▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines |