Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.options.mk
| Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | |||||
| _OPTIONS_FLAGS= ALL_TARGET CATEGORIES CFLAGS CONFIGURE_ENV CONFLICTS \ | _OPTIONS_FLAGS= ALL_TARGET CATEGORIES CFLAGS CONFIGURE_ENV CONFLICTS \ | ||||
| CONFLICTS_BUILD CONFLICTS_INSTALL CPPFLAGS CXXFLAGS DISTFILES \ | CONFLICTS_BUILD CONFLICTS_INSTALL CPPFLAGS CXXFLAGS DISTFILES \ | ||||
| EXTRA_PATCHES GH_ACCOUNT GH_PROJECT GH_TAGNAME INFO \ | EXTRA_PATCHES GH_ACCOUNT GH_PROJECT GH_TAGNAME INFO \ | ||||
| INSTALL_TARGET LDFLAGS LIBS MAKE_ARGS MAKE_ENV PATCHFILES \ | INSTALL_TARGET LDFLAGS LIBS MAKE_ARGS MAKE_ENV PATCHFILES \ | ||||
| PATCH_SITES PLIST_DIRS PLIST_DIRSTRY PLIST_FILES PLIST_SUB \ | PATCH_SITES PLIST_DIRS PLIST_DIRSTRY PLIST_FILES PLIST_SUB \ | ||||
| PORTDOCS SUB_FILES SUB_LIST USES | PORTDOCS SUB_FILES SUB_LIST USES | ||||
| _OPTIONS_DEPENDS= PKG FETCH EXTRACT PATCH BUILD LIB RUN | _OPTIONS_DEPENDS= PKG FETCH EXTRACT PATCH BUILD LIB RUN | ||||
| _OPTIONS_TARGETS= fetch extract patch configure build install package stage | |||||
| # The format here is target_family:priority:target-type | |||||
| _OPTIONS_TARGETS= fetch:300:pre fetch:500:do fetch:700:post \ | |||||
| extract:300:pre extract:500:do extract:700:post \ | |||||
| patch:300:pre patch:500:do patch:700:post \ | |||||
| configure:300:pre configure:500:do configure:700:post \ | |||||
| build:300:pre build:500:do build:700:post \ | |||||
| install:300:pre install:500:do install:700:post \ | |||||
| package:300:pre package:500:do package:700:post \ | |||||
| stage:800:post | |||||
| # Set the default values for the global options, as defined by portmgr | # Set the default values for the global options, as defined by portmgr | ||||
| .if !defined(NOPORTDOCS) | .if !defined(NOPORTDOCS) | ||||
| PORT_OPTIONS+= DOCS | PORT_OPTIONS+= DOCS | ||||
| .else | .else | ||||
| OPTIONS_WARNINGS+= "NOPORTDOCS" | OPTIONS_WARNINGS+= "NOPORTDOCS" | ||||
| WITHOUT+= DOCS | WITHOUT+= DOCS | ||||
| OPTIONS_WARNINGS_UNSET+= DOCS | OPTIONS_WARNINGS_UNSET+= DOCS | ||||
| .endif | .endif | ||||
| ▲ Show 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | |||||
| .if ${PORT_OPTIONS:MDEBUG} | .if ${PORT_OPTIONS:MDEBUG} | ||||
| WITH_DEBUG= yes | WITH_DEBUG= yes | ||||
| .endif | .endif | ||||
| .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} | .for target in ${_OPTIONS_TARGETS:C/:.*//:u} | ||||
| .for prepost in pre post | _OPTIONS_${target}?= | ||||
| _OPTIONS_${prepost}_${target}?= | |||||
| .endfor | .endfor | ||||
| .endfor | |||||
| .for opt in ${COMPLETE_OPTIONS_LIST} ${OPTIONS_SLAVE} ${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE} | .for opt in ${COMPLETE_OPTIONS_LIST} ${OPTIONS_SLAVE} ${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE} | ||||
| # 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}} | ||||
| Show All 39 Lines | |||||
| . endif | . endif | ||||
| . endfor | . endfor | ||||
| . for deptype in ${_OPTIONS_DEPENDS} | . for deptype in ${_OPTIONS_DEPENDS} | ||||
| . if defined(${opt}_${deptype}_DEPENDS) | . if defined(${opt}_${deptype}_DEPENDS) | ||||
| ${deptype}_DEPENDS+= ${${opt}_${deptype}_DEPENDS} | ${deptype}_DEPENDS+= ${${opt}_${deptype}_DEPENDS} | ||||
| . endif | . endif | ||||
| . endfor | . endfor | ||||
| . for target in ${_OPTIONS_TARGETS} | . for target in ${_OPTIONS_TARGETS} | ||||
| . for prepost in pre post | _target= ${target:C/:.*//} | ||||
| _OPTIONS_${prepost}_${target}+= ${prepost}-${target}-${opt}-on | _prio= ${target:C/.*:(.*):.*/\1/} | ||||
| _type= ${target:C/.*://} | |||||
| _OPTIONS_${_target}:= ${_OPTIONS_${_target}} ${_prio}:${_type}-${_target}-${opt}-on | |||||
| . endfor | . 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} | ||||
| _u= ${option:C/=.*//g} | _u= ${option:C/=.*//g} | ||||
| USE_${_u:tu}+= ${option:C/.*=//g:C/,/ /g} | USE_${_u:tu}+= ${option:C/.*=//g:C/,/ /g} | ||||
| . endfor | . endfor | ||||
| . endif | . endif | ||||
| . if defined(${opt}_CONFIGURE_ENABLE) | . if defined(${opt}_CONFIGURE_ENABLE) | ||||
| Show All 17 Lines | |||||
| . endif | . endif | ||||
| . endfor | . endfor | ||||
| . for deptype in ${_OPTIONS_DEPENDS} | . for deptype in ${_OPTIONS_DEPENDS} | ||||
| . if defined(${opt}_${deptype}_DEPENDS_OFF) | . if defined(${opt}_${deptype}_DEPENDS_OFF) | ||||
| ${deptype}_DEPENDS+= ${${opt}_${deptype}_DEPENDS_OFF} | ${deptype}_DEPENDS+= ${${opt}_${deptype}_DEPENDS_OFF} | ||||
| . endif | . endif | ||||
| . endfor | . endfor | ||||
| . for target in ${_OPTIONS_TARGETS} | . for target in ${_OPTIONS_TARGETS} | ||||
| . for prepost in pre post | _target= ${target:C/:.*//} | ||||
| _OPTIONS_${prepost}_${target}+= ${prepost}-${target}-${opt}-off | _prio= ${target:C/.*:(.*):.*/\1/} | ||||
| . endfor | _type= ${target:C/.*://} | ||||
| _OPTIONS_${_target}:= ${_OPTIONS_${_target}} ${_prio}:${_type}-${_target}-${opt}-off | |||||
| . endfor | . endfor | ||||
| . endif | . endif | ||||
| .endfor | .endfor | ||||
| .endif | .endif | ||||