Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2019 20:30:13 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r521238 - head/misc/mxnet
Message-ID:  <201912282030.xBSKUDT7012302@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912282030.xBSKUDT7012302>