graphics/lensfun: enable tests only on amd64 and i386

Tests use SSE code, so they break during compilation on non-SSE architectures.
This commit is contained in:
Piotr Kubaj 2022-10-05 08:38:49 +00:00
parent febb72719f
commit 50b348965f
1 changed files with 7 additions and 2 deletions

View File

@ -22,8 +22,7 @@ SHEBANG_FILES= apps/lensfun-add-adapter apps/lensfun-convert-lcp \
apps/lensfun-update-data
USE_GNOME= glib20
USE_LDCONFIG= yes
CMAKE_ARGS= -DBUILD_AUXFUN:BOOL=ON -DBUILD_LENSTOOL:BOOL=ON \
-DBUILD_TESTS:BOOL=ON
CMAKE_ARGS= -DBUILD_AUXFUN:BOOL=ON -DBUILD_LENSTOOL:BOOL=ON
MAKE_ENV+= PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE=
OPTIONS_DEFINE= SIMD PYHELPERS
@ -38,6 +37,12 @@ PYHELPERS_CMAKE_ON= -DSTAGEDIR:STRING=${STAGEDIR} -DPYTHON:STRING=${PYTHON_CMD}
PYHELPERS_CMAKE_OFF= -DINSTALL_HELPER_SCRIPTS:BOOL=OFF -DPYTHON:STRING=IGNORE
PYHELPERS_USES= python:3.4+
.include <bsd.port.options.mk>
.if ${ARCH} == amd64 || ${ARCH} == i386
CMAKE_ARGS+= -DBUILD_TESTS:BOOL=ON
.endif
post-patch:
@${REINPLACE_CMD} -e '/#include <cmath>/ { x; s/^/#include <clocale>/; G; }' \
${WRKSRC}/tests/test_modifier_coord_centering_old.cpp \