diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-12-28 20:30:12 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-12-28 20:30:12 +0000 |
commit | 5c7feef0c2fa3aa81269d27c8987630340a8dfbd (patch) | |
tree | 42877dc2d7f30c10266691459d3a5ed13cd28051 | |
parent | devel/pycharm-ce: Update to version 2019.3.1. (diff) |
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)
Notes
Notes:
svn path=/head/; revision=521238
-rw-r--r-- | misc/mxnet/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/misc/mxnet/Makefile b/misc/mxnet/Makefile index d68e8cf9f45d..9432f294fd10 100644 --- a/misc/mxnet/Makefile +++ b/misc/mxnet/Makefile @@ -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> |