svn commit: r538330 - head/math/ntl

Yuri Victorovich yuri at FreeBSD.org
Tue Jun 9 17:09:49 UTC 2020


Author: yuri
Date: Tue Jun  9 17:09:46 2020
New Revision: 538330
URL: https://svnweb.freebsd.org/changeset/ports/538330

Log:
  math/ntl: Unbreak on systems incompatible with the system where the package was built
  
  -march=native caused SEGVs on incompatible systems
  
  Approved by:	portmgr (unbreak)
  MFH:		2020Q2

Modified:
  head/math/ntl/Makefile

Modified: head/math/ntl/Makefile
==============================================================================
--- head/math/ntl/Makefile	Tue Jun  9 17:09:40 2020	(r538329)
+++ head/math/ntl/Makefile	Tue Jun  9 17:09:46 2020	(r538330)
@@ -3,6 +3,7 @@
 
 PORTNAME=	ntl
 PORTVERSION=	11.4.3
+PORTREVISION=	1
 CATEGORIES=	math
 MASTER_SITES=	http://www.shoup.net/ntl/
 
@@ -29,7 +30,7 @@ TEST_TARGET=	check
 NTLDOCSDIR=	share/doc/NTL
 PLIST_SUB=	NTLDOCS=${NTLDOCSDIR}
 
-OPTIONS_DEFINE=		DOCS GF2X GMP
+OPTIONS_DEFINE=		DOCS GF2X GMP NATIVE
 OPTIONS_DEFAULT=	GF2X GMP
 
 GMP_DESC=		Arbitrary precision arithmetic (Faster)
@@ -40,6 +41,10 @@ GF2X_DESC=		Faster arithmetic over GF(2)[X] (the NTL c
 GF2X_LIB_DEPENDS=	libgf2x.so:math/gf2x
 GF2X_CONFIGURE_ON=	NTL_GF2X_LIB=on
 GF2X_CONFIGURE_OFF=	NTL_GF2X_LIB=off
+
+NATIVE_DESC=		Build with native optimizations (-march=native)
+NATIVE_CONFIGURE_ON=	NATIVE=on
+NATIVE_CONFIGURE_OFF=	NATIVE=off
 
 do-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}


More information about the svn-ports-all mailing list