svn commit: r538341 - head/devel/xeus-cling

Yuri Victorovich yuri at FreeBSD.org
Tue Jun 9 20:29:48 UTC 2020


Author: yuri
Date: Tue Jun  9 20:29:48 2020
New Revision: 538341
URL: https://svnweb.freebsd.org/changeset/ports/538341

Log:
  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.
  
  MFH:		2020Q2

Modified:
  head/devel/xeus-cling/Makefile

Modified: head/devel/xeus-cling/Makefile
==============================================================================
--- head/devel/xeus-cling/Makefile	Tue Jun  9 19:57:08 2020	(r538340)
+++ head/devel/xeus-cling/Makefile	Tue Jun  9 20:29:48 2020	(r538341)
@@ -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-all mailing list