svn commit: r538342 - branches/2020Q2/devel/xeus-cling

Yuri Victorovich yuri at FreeBSD.org
Tue Jun 9 20:43:04 UTC 2020


Author: yuri
Date: Tue Jun  9 20:43:04 2020
New Revision: 538342
URL: https://svnweb.freebsd.org/changeset/ports/538342

Log:
  MFH: r538341
  
  devel/xeus-cling: Unbreak on systems incompatible with the system where the package was built
  
  -march=native caused SEGVs on incompatible systems
  
  Also add USE_LDFLAGS.
  
  Approved by:	ports-secteam (joenum)

Modified:
  branches/2020Q2/devel/xeus-cling/Makefile
Directory Properties:
  branches/2020Q2/   (props changed)

Modified: branches/2020Q2/devel/xeus-cling/Makefile
==============================================================================
--- branches/2020Q2/devel/xeus-cling/Makefile	Tue Jun  9 20:29:48 2020	(r538341)
+++ branches/2020Q2/devel/xeus-cling/Makefile	Tue Jun  9 20:43:04 2020	(r538342)
@@ -2,6 +2,7 @@
 
 PORTNAME=	xeus-cling
 DISTVERSION=	0.8.1
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	yuri at FreeBSD.org
@@ -24,7 +25,14 @@ LIB_DEPENDS=	libclingInterpreter.so:lang/cling \
 USES=		cmake compiler:c++14-lang pkgconfig ssl
 USE_GITHUB=	yes
 GH_ACCOUNT=	jupyter-xeus
+USE_LDCONFIG=	yes
 
 LDFLAGS+=	${LOCALBASE}/lib/libLLVMSupport.so ${LOCALBASE}/lib/libclangAST.so -pthread # https://github.com/jupyter-xeus/xeus-cling/issues/234
+
+OPTIONS_DEFINE=		NATIVE
+
+NATIVE_DESC=		Build with native optimizations (-march=native)
+NATIVE_CMAKE_ON=	-DDISABLE_ARCH_NATIVE=OFF
+NATIVE_CMAKE_OFF=	-DDISABLE_ARCH_NATIVE=ON
 
 .include <bsd.port.mk>


More information about the svn-ports-branches mailing list