plugins: conditional falling appart, better hide under relevant section #4202

This commit is contained in:
Franco Fichtner 2024-08-27 09:23:52 +02:00
parent 4867a75d30
commit 560e310166

View file

@ -69,8 +69,6 @@ PLUGIN_SUFFIX?= -devel
.if !empty(PLUGIN_VARIANTS)
PLUGIN_VARIANT?= ${PLUGIN_VARIANTS:[1]}
.endif
.if "${PLUGIN_VARIANT}" == ""
.error Plugin variant cannot be empty
.else
@ -83,6 +81,7 @@ PLUGIN_CONFLICTS+= ${${_PLUGIN_VARIANT}_NAME}
.endfor
PLUGIN_DEPENDS+= ${${PLUGIN_VARIANT}_DEPENDS}
.endif
.endif
.if !empty(PLUGIN_NAME)
PLUGIN_DIR?= ${.CURDIR:S/\// /g:[-2]}/${.CURDIR:S/\// /g:[-1]}