Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.options.mk
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | |||||
OPTIONSMKINCLUDED= bsd.options.mk | OPTIONSMKINCLUDED= bsd.options.mk | ||||
OPTIONS_NAME?= ${PKGORIGIN:S/\//_/} | OPTIONS_NAME?= ${PKGORIGIN:S/\//_/} | ||||
OPTIONSFILE?= ${PORT_DBDIR}/${UNIQUENAME}/options | OPTIONSFILE?= ${PORT_DBDIR}/${UNIQUENAME}/options | ||||
OPTIONS_FILE?= ${PORT_DBDIR}/${OPTIONS_NAME}/options | OPTIONS_FILE?= ${PORT_DBDIR}/${OPTIONS_NAME}/options | ||||
_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 INFO INSTALL_TARGET LDFLAGS LIBS MAKE_ARGS \ | EXTRA_PATCHES GH_ACCOUNT GH_PROJECT GH_TAGNAME INFO \ | ||||
MAKE_ENV PATCHFILES PATCH_SITES PLIST_DIRS PLIST_DIRSTRY \ | INSTALL_TARGET LDFLAGS LIBS MAKE_ARGS MAKE_ENV PATCHFILES \ | ||||
PATCH_SITES PLIST_DIRS PLIST_DIRSTRY \ | |||||
PLIST_FILES PLIST_SUB SUB_FILES SUB_LIST USES | PLIST_FILES PLIST_SUB 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 | |||||
# 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 | ||||
▲ Show 20 Lines • Show All 259 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 prepost in pre post | |||||
_OPTIONS_${prepost}_${target}?= | |||||
.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}} | ||||
PLIST_SUB:= ${PLIST_SUB} ${opt}="" NO_${opt}="@comment " | PLIST_SUB:= ${PLIST_SUB} ${opt}="" NO_${opt}="@comment " | ||||
Show All 37 Lines | |||||
${flags}+= ${${opt}_${flags}} | ${flags}+= ${${opt}_${flags}} | ||||
. 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 prepost in pre post | |||||
_OPTIONS_${prepost}_${target}+= ${prepost}-${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} | ||||
_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 15 Lines | |||||
. if defined(${opt}_${flags}_OFF) | . if defined(${opt}_${flags}_OFF) | ||||
${flags}+= ${${opt}_${flags}_OFF} | ${flags}+= ${${opt}_${flags}_OFF} | ||||
. 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 | |||||
. for target in ${_OPTIONS_TARGETS} | |||||
. for prepost in pre post | |||||
_OPTIONS_${prepost}_${target}+= ${prepost}-${target}-${opt}-off | |||||
. endfor | |||||
. endfor | . endfor | ||||
. endif | . endif | ||||
.endfor | .endfor | ||||
.endif | .endif |