aboutsummaryrefslogtreecommitdiff
path: root/misc/adios2/Makefile
blob: 64ede90a2e37911e9e260822e76f6005212b5c0e (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
PORTNAME=	adios2
DISTVERSIONPREFIX=	v
DISTVERSION=	2.8.2
CATEGORIES=	misc science

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Next generation of ADIOS developed in the Exascale Computing Program

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_i386=	constant expression evaluates to 18446744073709551613 which cannot be narrowed to type 'unsigned int': https://github.com/ornladios/ADIOS2/issues/2469
BROKEN_powerpc=	constant expression evaluates to 18446744073709551613 which cannot be narrowed to type 'unsigned int': https://github.com/ornladios/ADIOS2/issues/2469

PY_DEPENDS=	${PYNUMPY} \
		${PYTHON_PKGNAMEPREFIX}mpi4py>=3.0.3:net/py-mpi4py@${PY_FLAVOR}
BUILD_DEPENDS=	bash:shells/bash \
		pybind11>0:devel/pybind11 \
		${PYTHON_PKGNAMEPREFIX}pybind11>=2.4:devel/py-pybind11@${PY_FLAVOR} \
		${PY_DEPENDS}
LIB_DEPENDS=	libblosc.so:archivers/c-blosc \
		libepoll-shim.so:devel/libepoll-shim \
		libfabric.so:net/libfabric \
		libffi.so:devel/libffi \
		libhdf5.so:science/hdf5 \
		libmpi.so:net/mpich \
		libpng.so:graphics/png \
		libsodium.so:security/libsodium \
		libsz.so:science/libaec \
		libzmq.so:net/libzmq4 \
		libzfp.so:devel/zfp
RUN_DEPENDS=	bash:shells/bash \
		${PY_DEPENDS}

USES=		bison cmake:testing compiler:c++11-lang fortran localbase:ldflags pkgconfig \
		perl5 python shebangfix
USE_LDCONFIG=	yes

SHEBANG_FILES=	cmake/install/post/adios2-config.pre.sh.in cmake/install/post/generate-adios2-config.sh.in \
		source/utils/adios_reorganize/adios2_reorganize_wrapper source/utils/adios2_deactivate_bp
SHEBANG_GLOB=	*.sh *.py

USE_GITHUB=	yes
GH_ACCOUNT=	ornladios
GH_PROJECT=	ADIOS2

CMAKE_ARGS=	-DFREEBSD_PYTHON_VERSION=${PYTHON_VER}
CMAKE_OFF=	BUILD_TESTING
LDFLAGS+=	-lepoll-shim

OPTIONS_DEFINE=	DOCS

DOCSDIR=	${PREFIX}/share/doc/ADIOS2
PORTDOCS=	*

# several tests fail, see https://github.com/ornladios/ADIOS2/issues/3286

.include <bsd.port.mk>