From 01999b11bd1f9332d870139b6643ea198cdaafd3 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 9 Jun 2020 17:32:12 +0000 Subject: [PATCH] devel/xeus: Unbreak on systems incompatible with the system where the package was built -march=native caused SEGVs on incompatible systems The cmake option that turned it off was renamed. I also added the NATIVE option that now drives the -march flag. MFH: 2020Q2 --- devel/xeus/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devel/xeus/Makefile b/devel/xeus/Makefile index 1b2d27eb85fc..631b37530304 100644 --- a/devel/xeus/Makefile +++ b/devel/xeus/Makefile @@ -2,6 +2,7 @@ PORTNAME= xeus DISTVERSION= 0.23.14 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org @@ -23,6 +24,10 @@ GH_ACCOUNT= jupyter-xeus USE_LDCONFIG= yes CMAKE_OFF= BUILD_STATIC_LIBS -CMAKE_ON= DISABLE_ARCH_NATIVE + +OPTIONS_DEFINE= NATIVE +NATIVE_DESC= Build with native optimizations (-march=native) +NATIVE_CMAKE_ON= -DXEUS_DISABLE_ARCH_NATIVE=OFF +NATIVE_CMAKE_OFF= -DXEUS_DISABLE_ARCH_NATIVE=ON .include