Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.options.mk
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | _OPTIONS_FLAGS= ALL_TARGET BROKEN CATEGORIES CFLAGS CONFIGURE_ENV CONFLICTS \ | ||||
DESKTOP_ENTRIES DISTFILES EXTRA_PATCHES EXTRACT_ONLY \ | DESKTOP_ENTRIES DISTFILES EXTRA_PATCHES EXTRACT_ONLY \ | ||||
GH_ACCOUNT GH_PROJECT GH_SUBDIR GH_TAGNAME GH_TUPLE \ | GH_ACCOUNT GH_PROJECT GH_SUBDIR GH_TAGNAME GH_TUPLE \ | ||||
GL_ACCOUNT GL_COMMIT GL_PROJECT GL_SITE GL_SUBDIR GL_TUPLE \ | GL_ACCOUNT GL_COMMIT GL_PROJECT GL_SITE GL_SUBDIR GL_TUPLE \ | ||||
IGNORE INFO INSTALL_TARGET LDFLAGS LIBS MAKE_ARGS MAKE_ENV \ | IGNORE INFO INSTALL_TARGET LDFLAGS LIBS MAKE_ARGS MAKE_ENV \ | ||||
MASTER_SITES PATCHFILES PATCH_SITES PLIST_DIRS PLIST_FILES \ | MASTER_SITES PATCHFILES PATCH_SITES PLIST_DIRS PLIST_FILES \ | ||||
PLIST_SUB PORTDOCS PORTEXAMPLES SUB_FILES SUB_LIST \ | PLIST_SUB PORTDOCS PORTEXAMPLES SUB_FILES SUB_LIST \ | ||||
TEST_TARGET USES BINARY_ALIAS | TEST_TARGET USES BINARY_ALIAS | ||||
_OPTIONS_DEPENDS= PKG FETCH EXTRACT PATCH BUILD LIB RUN TEST | _OPTIONS_DEPENDS= PKG FETCH EXTRACT PATCH BUILD LIB RUN TEST | ||||
_ALL_OPTIONS_HELPERS= ${_OPTIONS_DEPENDS:S/$/_DEPENDS/} \ | |||||
${_OPTIONS_DEPENDS:S/$/_DEPENDS_OFF/} \ | |||||
${_OPTIONS_FLAGS:S/$/_OFF/} ${_OPTIONS_FLAGS} \ | |||||
CMAKE_BOOL CMAKE_BOOL_OFF CMAKE_OFF CMAKE_ON \ | |||||
CONFIGURE_ENABLE CONFIGURE_OFF CONFIGURE_ON \ | |||||
CONFIGURE_WITH IMPLIES MESON_ARGS MESON_DISABLED \ | |||||
MESON_ENABLED MESON_FALSE MESON_OFF MESON_ON MESON_TRUE \ | |||||
PREVENTS PREVENTS_MSG QMAKE_OFF QMAKE_ON USE USE_OFF \ | |||||
VARS VARS_OFF | |||||
# The format here is target_family:priority:target-type | # The format here is target_family:priority:target-type | ||||
_OPTIONS_TARGETS= fetch:300:pre fetch:500:do fetch:700:post \ | _OPTIONS_TARGETS= fetch:300:pre fetch:500:do fetch:700:post \ | ||||
extract:300:pre extract:500:do extract:700:post \ | extract:300:pre extract:500:do extract:700:post \ | ||||
patch:300:pre patch:500:do patch:700:post \ | patch:300:pre patch:500:do patch:700:post \ | ||||
configure:300:pre configure:500:do configure:700:post \ | configure:300:pre configure:500:do configure:700:post \ | ||||
build:300:pre build:500:do build:700:post \ | build:300:pre build:500:do build:700:post \ | ||||
install:300:pre install:500:do install:700:post \ | install:300:pre install:500:do install:700:post \ | ||||
▲ Show 20 Lines • Show All 398 Lines • ▼ Show 20 Lines | |||||
. endfor | . endfor | ||||
. 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}-off | _OPTIONS_${_target}:= ${_OPTIONS_${_target}} ${_prio}:${_type}-${_target}-${opt}-off | ||||
. endfor | . endfor | ||||
. endif | . endif | ||||
.endfor | |||||
# Collect which options helpers are defined at this point for | |||||
# bsd.sanity.mk later to make sure no other options helper is | |||||
# defined after bsd.port.options.mk. | |||||
_OPTIONS_HELPERS_SEEN= | |||||
.for opt in ${_REALLY_ALL_POSSIBLE_OPTIONS} | |||||
. for helper in ${_ALL_OPTIONS_HELPERS} | |||||
. if defined(${opt}_${helper}) | |||||
_OPTIONS_HELPERS_SEEN+= ${opt}_${helper} | |||||
. endif | |||||
. endfor | |||||
.endfor | .endfor | ||||
.undef (SELECTED_OPTIONS) | .undef (SELECTED_OPTIONS) | ||||
.undef (DESELECTED_OPTIONS) | .undef (DESELECTED_OPTIONS) | ||||
# Wait to expand PORT_OPTIONS until the last moment in case something modifies | # Wait to expand PORT_OPTIONS until the last moment in case something modifies | ||||
# the selected OPTIONS after bsd.port.options.mk is included. This uses | # the selected OPTIONS after bsd.port.options.mk is included. This uses | ||||
# bmake's :@ for loop. | # bmake's :@ for loop. | ||||
_SELECTED_OPTIONS= ${ALL_OPTIONS:@opt@${PORT_OPTIONS:M${opt}}@} | _SELECTED_OPTIONS= ${ALL_OPTIONS:@opt@${PORT_OPTIONS:M${opt}}@} | ||||
Show All 11 Lines |