aboutsummaryrefslogtreecommitdiff
path: root/science/arbor/Makefile
blob: d4bb0259284afc9703616049081fea8dfc929d45 (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
38
39
40
41
42
43
44
PORTNAME=	arbor
DISTVERSIONPREFIX=	v
DISTVERSION=	0.8.1
CATEGORIES=	science

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Multi-compartment neural network simulation library
WWW=		https://arbor-sim.org/

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_armv7=	compilation fails: unknown type name 'float64x2_t'

BUILD_DEPENDS=	bash:shells/bash \
		libfmt>0:devel/libfmt \
		nlohmann-json>0:devel/nlohmann-json \
		random123>0:devel/random123 \
		${PYTHON_PKGNAMEPREFIX}svgwrite>0:graphics/py-svgwrite@${PY_FLAVOR}
LIB_DEPENDS=	libpugixml.so:textproc/pugixml
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}svgwrite>0:graphics/py-svgwrite@${PY_FLAVOR}
TEST_DEPENDS=	googletest>=0:devel/googletest

USES=		cmake compiler:c++17-lang localbase python shebangfix

USE_GITHUB=	yes
GH_ACCOUNT=	arbor-sim

SHEBANG_FILES=	scripts/arbor-build-catalogue

CMAKE_ON=	BUILD_SHARED_LIBS
CMAKE_ARGS=	-DPython3_EXECUTABLE=${PYTHON_CMD}

OPTIONS_DEFINE=		NATIVE

NATIVE_CMAKE_ON=	-DARB_ARCH=native
NATIVE_CMAKE_OFF=	-DARB_ARCH=none

TEST_TARGET=	tests # tests fail to build, see https://github.com/arbor-sim/arbor/issues/2075

post-install:
	@${RMDIR} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>