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
This commit is contained in:
Yuri Victorovich 2020-06-09 17:32:12 +00:00
parent f994800f02
commit 01999b11bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=538331

View File

@ -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 <bsd.port.mk>