summaryrefslogtreecommitdiff
path: root/science/highfive/Makefile
blob: c1f1d129fe5c8fd7e52fab05b069a4390aa6b3c2 (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
33
34
# $FreeBSD$

PORTNAME=	highfive
DISTVERSIONPREFIX=	v
DISTVERSION=	2.1.1
CATEGORIES=	science devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Header-only C++ HDF5 interface

LICENSE=	BSL
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libhdf5.so:science/hdf5
RUN_DEPENDS=	${LOCALBASE}/include/boost/multi_array.hpp:devel/boost-libs \
		${LOCALBASE}/include/xtensor/xtensor.hpp:math/xtensor

USES=		cmake eigen:3,run
USE_GITHUB=	yes
GH_ACCOUNT=	BlueBrain
GH_PROJECT=	HighFive

CMAKE_OFF=	USE_BOOST HIGHFIVE_UNIT_TESTS HIGHFIVE_EXAMPLES

NO_BUILD=	yes
NO_ARCH=	yes

do-test:
	@cd ${BUILD_WRKSRC} && \
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DHIGHFIVE_UNIT_TESTS:BOOL=ON -DUSE_BOOST=ON -DUSE_EIGEN:BOOL=ON -DUSE_XTENSOR=ON ${CMAKE_SOURCE_PATH} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test

.include <bsd.port.mk>