pkg: like plugins now try to error on missing replacements

This commit is contained in:
Franco Fichtner 2021-06-29 15:00:10 +02:00
parent 28fa452a47
commit aa0affc7e7

View File

@ -33,9 +33,11 @@ CORE_NICKNAME?= Not Yet
CORE_NAME?= opnsense-devel
CORE_TYPE?= development
CORE_ABI?= 21.1
CORE_PHP?= 74
CORE_PYTHON?= 37
.for REPLACEMENT in ABI PHP PYTHON
. if empty(CORE_${REPLACEMENT})
. error Cannot build without CORE_${REPLACEMENT} set
. endif
.endfor
_CORE_NEXT= ${CORE_ABI:C/\./ /}
.if ${_CORE_NEXT:[2]} == 7