svn commit: r521238 - head/misc/mxnet
Piotr Kubaj
pkubaj at FreeBSD.org
Sat Dec 28 20:30:13 UTC 2019
Author: pkubaj
Date: Sat Dec 28 20:30:12 2019
New Revision: 521238
URL: https://svnweb.freebsd.org/changeset/ports/521238
Log:
misc/mxnet: fix build on non-arm non-x86
Architectures other than amd64 and i386 don't have SSE. CMakeLists.txt checks for ARM, but not for other architectures.
PR: 242946
Approved by: yuri (maintainer)
Modified:
head/misc/mxnet/Makefile
Modified: head/misc/mxnet/Makefile
==============================================================================
--- head/misc/mxnet/Makefile Sat Dec 28 19:36:21 2019 (r521237)
+++ head/misc/mxnet/Makefile Sat Dec 28 20:30:12 2019 (r521238)
@@ -49,6 +49,12 @@ OPENCV_CMAKE_BOOL= USE_OPENCV
OPENCV_LIB_DEPENDS= libopencv_core.so:graphics/opencv-core \
libopencv_videoio.so:graphics/opencv
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} != amd64 && ${ARCH} != i386
+CMAKE_OFF+= USE_SSE
+.endif
+
post-patch:
.for lib in mkldnn.h mkldnn_types.h
@${RM} ${WRKSRC}/include/mkldnn/${lib}
@@ -58,4 +64,4 @@ post-patch:
post-install-CPP-on: # https://github.com/apache/incubator-mxnet/issues/17080
@cd ${STAGEDIR}${PREFIX} && ${RM} include/mxnet-cpp/.gitignore include/mxnet-cpp/CPPLINT.cfg
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list