Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.sanity.mk
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.for _type in EXAMPLES DOCS | .for _type in EXAMPLES DOCS | ||||
. if defined(PORT${_type}) && empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type}) | . if defined(PORT${_type}) && empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type}) | ||||
DEV_ERROR+= "PORT${_type} does not do anything unless the ${_type} option is present." | DEV_ERROR+= "PORT${_type} does not do anything unless the ${_type} option is present." | ||||
. endif | . endif | ||||
.endfor | .endfor | ||||
.if empty(PORTEPOCH) || !empty(PORTEPOCH:C/[0-9]+//) | |||||
DEV_ERROR+= "PORTEPOCH needs to be an integer \>= 0" | |||||
.endif | |||||
.if empty(PORTREVISION) || !empty(PORTREVISION:C/[0-9]+//) | |||||
DEV_ERROR+= "PORTREVISION needs to be an integer \>= 0" | |||||
.endif | |||||
# Whitelist of options helper lookalikes that should not be reported on: | # Whitelist of options helper lookalikes that should not be reported on: | ||||
_OPTIONS_HELPERS_SEEN+= OPENSSL_LDFLAGS | _OPTIONS_HELPERS_SEEN+= OPENSSL_LDFLAGS | ||||
_BROKEN_OPTIONS_HELPERS= | _BROKEN_OPTIONS_HELPERS= | ||||
.for opt in ${_REALLY_ALL_POSSIBLE_OPTIONS} | .for opt in ${_REALLY_ALL_POSSIBLE_OPTIONS} | ||||
. for helper in ${_ALL_OPTIONS_HELPERS} | . for helper in ${_ALL_OPTIONS_HELPERS} | ||||
. if defined(${opt}_${helper}) && empty(_OPTIONS_HELPERS_SEEN:M${opt}_${helper}) | . if defined(${opt}_${helper}) && empty(_OPTIONS_HELPERS_SEEN:M${opt}_${helper}) | ||||
_BROKEN_OPTIONS_HELPERS+= ${opt}_${helper} | _BROKEN_OPTIONS_HELPERS+= ${opt}_${helper} | ||||
. endif | . endif | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |