mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
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:
parent
febb72719f
commit
50b348965f
1 changed files with 7 additions and 2 deletions
|
@ -22,8 +22,7 @@ SHEBANG_FILES= apps/lensfun-add-adapter apps/lensfun-convert-lcp \
|
||||||
apps/lensfun-update-data
|
apps/lensfun-update-data
|
||||||
USE_GNOME= glib20
|
USE_GNOME= glib20
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
CMAKE_ARGS= -DBUILD_AUXFUN:BOOL=ON -DBUILD_LENSTOOL:BOOL=ON \
|
CMAKE_ARGS= -DBUILD_AUXFUN:BOOL=ON -DBUILD_LENSTOOL:BOOL=ON
|
||||||
-DBUILD_TESTS:BOOL=ON
|
|
||||||
MAKE_ENV+= PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE=
|
MAKE_ENV+= PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE=
|
||||||
|
|
||||||
OPTIONS_DEFINE= SIMD PYHELPERS
|
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_CMAKE_OFF= -DINSTALL_HELPER_SCRIPTS:BOOL=OFF -DPYTHON:STRING=IGNORE
|
||||||
PYHELPERS_USES= python:3.4+
|
PYHELPERS_USES= python:3.4+
|
||||||
|
|
||||||
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
|
.if ${ARCH} == amd64 || ${ARCH} == i386
|
||||||
|
CMAKE_ARGS+= -DBUILD_TESTS:BOOL=ON
|
||||||
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e '/#include <cmath>/ { x; s/^/#include <clocale>/; G; }' \
|
@${REINPLACE_CMD} -e '/#include <cmath>/ { x; s/^/#include <clocale>/; G; }' \
|
||||||
${WRKSRC}/tests/test_modifier_coord_centering_old.cpp \
|
${WRKSRC}/tests/test_modifier_coord_centering_old.cpp \
|
||||||
|
|
Loading…
Add table
Reference in a new issue