security/softether5: fix wrong CMAKE_BOOL_ON

PR:		268294

No macro with this name is checked by USES=cmake.  The correct
one would be CMAKE_ON, but that one is not evaluated again after
bsd.port.pre.mk.  Just directly add -DSKIP_CPU_FEATURES=1 to
CMAKE_ARGS to work around this shortcoming.
This commit is contained in:
Robert Clausecker 2022-12-10 12:13:17 +01:00 committed by Koichiro Iwao
parent 387cc07d34
commit e1e189c211
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ SUB_FILES= pkg-message
# devel/cpu_features not available on these archs, see devel/cpu_features/Makefile
.if (${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == mips || ${ARCH} == mips64)
# skip cpu_features when devel/cpu_features is not available
CMAKE_BOOL_ON+= SKIP_CPU_FEATURES
CMAKE_ARGS+= -DSKIP_CPU_FEATURES=1
.else
BUILD_DEPENDS+= ${LOCALBASE}/include/cpu_features/cpu_features_macros.h:devel/cpu_features
LIB_DEPENDS+= libcpu_features.so:devel/cpu_features