Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Apr 2019 04:41:20 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r497620 - in branches/2019Q2/graphics/opengv: . files
Message-ID:  <201904030441.x334fKiU057377@repo.freebsd.org>

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



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