svn commit: r497620 - in branches/2019Q2/graphics/opengv: . files

Mark Linimon linimon at FreeBSD.org
Wed Apr 3 04:41:21 UTC 2019


Author: linimon
Date: Wed Apr  3 04:41:20 2019
New Revision: 497620
URL: https://svnweb.freebsd.org/changeset/ports/497620

Log:
  MFH: r497619
  
  Fix build on non-x86 architectures by conditionally turning off
  -march=native.
  
  Approved by:	portmgr (tier-2 blanket)

Added:
  branches/2019Q2/graphics/opengv/files/
     - copied from r497619, head/graphics/opengv/files/
Modified:
  branches/2019Q2/graphics/opengv/Makefile
Directory Properties:
  branches/2019Q2/   (props changed)

Modified: branches/2019Q2/graphics/opengv/Makefile
==============================================================================
--- branches/2019Q2/graphics/opengv/Makefile	Wed Apr  3 04:33:35 2019	(r497619)
+++ branches/2019Q2/graphics/opengv/Makefile	Wed Apr  3 04:41:20 2019	(r497620)
@@ -26,4 +26,11 @@ do-test:
 		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
 		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# disable march-native on non-x86 archs
+.if ${ARCH} != amd64 && ${ARCH} != i386
+EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-CMakeLists.txt
+.endif
+
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list