svn commit: r538354 - head/security/nflib
Yuri Victorovich
yuri at FreeBSD.org
Tue Jun 9 23:13:36 UTC 2020
Author: yuri
Date: Tue Jun 9 23:13:36 2020
New Revision: 538354
URL: https://svnweb.freebsd.org/changeset/ports/538354
Log:
security/nflib: Unbreak on systems incompatible with the system where the package was built
-march=native caused SEGVs on incompatible systems
Modified:
head/security/nflib/Makefile
Modified: head/security/nflib/Makefile
==============================================================================
--- head/security/nflib/Makefile Tue Jun 9 22:59:49 2020 (r538353)
+++ head/security/nflib/Makefile Tue Jun 9 23:13:36 2020 (r538354)
@@ -4,7 +4,7 @@ PORTNAME= nflib
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.0-23
DISTVERSIONSUFFIX= -g5cf40ed
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security math
MAINTAINER= yuri at FreeBSD.org
@@ -28,6 +28,13 @@ GH_PROJECT= NFLlib
USE_LDCONFIG= yes
CMAKE_ON= NFL_OPTIMIZED
+
+OPTIONS_DEFINE= NATIVE
+
+NATIVE_DESC= Build with native optimizations (-march=native)
+
+post-patch-NATIVE-off:
+ @${REINPLACE_CMD} -e 's|-march=native|| ; s|-mtune=native||' ${WRKSRC}/CMakeLists.txt ${WRKSRC}/CMakeCompilers.txt
do-test:
@cd ${BUILD_WRKSRC} && \
More information about the svn-ports-all
mailing list