svn commit: r522877 - head/misc/mnn
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Jan 13 10:38:34 UTC 2020
Author: pkubaj
Date: Mon Jan 13 10:38:34 2020
New Revision: 522877
URL: https://svnweb.freebsd.org/changeset/ports/522877
Log:
misc/mnn: fix build on non-x86
Disable AVX and SSE on non-x86 architectures.
PR: 243303
Approved by: yuri (maintainer)
Modified:
head/misc/mnn/Makefile
Modified: head/misc/mnn/Makefile
==============================================================================
--- head/misc/mnn/Makefile Mon Jan 13 10:26:46 2020 (r522876)
+++ head/misc/mnn/Makefile Mon Jan 13 10:38:34 2020 (r522877)
@@ -26,10 +26,17 @@ LDFLAGS+= -pthread
CFLAGS+= -fPIC # workaround for https://github.com/alibaba/MNN/issues/553
CXXFLAGS+= -fPIC
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} != amd64 && ${ARCH} != i386
+CMAKE_ARGS+= -DMNN_USE_AVX:BOOL=OFF \
+ -DMNN_USE_SSE:BOOL=OFF
+.endif
+
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DMNN_BUILD_TEST:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
(cd ${BUILD_WRKSRC} && ./run_test.out)
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list