aboutsummaryrefslogtreecommitdiff
path: root/devel/xeus-cling/Makefile
blob: 7261d0ec749021ad53b392c4d67e0006a3c6ee4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PORTNAME=	xeus-cling
DISTVERSION=	0.8.1
PORTREVISION=	1
CATEGORIES=	devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	C++ Jupyter Kernel
WWW=		https://github.com/jupyter-xeus/xeus-cling

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	cppzmq>0:net/cppzmq \
		cxxopts>0:devel/cxxopts \
		llvm-config:lang/cling \
		nlohmann-json>0:devel/nlohmann-json \
		xtl-quant-stack>0:devel/xtl-quant-stack
LIB_DEPENDS=	libclingInterpreter.so:lang/cling \
		libpugixml.so:textproc/pugixml \
		libuuid.so:misc/e2fsprogs-libuuid \
		libxeus.so:devel/xeus \
		libzmq.so:net/libzmq4

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>