summaryrefslogtreecommitdiff
path: root/devel/xtl-quant-stack/Makefile
blob: 2d5d8821a9dd6d369592c3a1ad0b6ec026479659 (plain)
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
# $FreeBSD$

PORTNAME=	xtl
DISTVERSION=	0.5.2
CATEGORIES=	devel
PKGNAMESUFFIX=	-quant-stack

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Template library that supports other quantstack projects

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	nlohmann-json>0:devel/nlohmann-json
RUN_DEPENDS=	nlohmann-json>0:devel/nlohmann-json
TEST_DEPENDS=	nlohmann-json>0:devel/nlohmann-json \
		googletest>0:devel/googletest

USES=		cmake
USE_GITHUB=	yes
GH_ACCOUNT=	QuantStack

NO_BUILD=	yes
NO_ARCH=	yes

do-test: # tests fail to build: https://github.com/QuantStack/xtl/issues/106
	@cd ${WRKSRC}/test && \
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -Dxtl_DIR:STRING=${STAGEDIR}${PREFIX}/lib/cmake/xtl && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} xtest

.include <bsd.port.mk>