summaryrefslogtreecommitdiff
path: root/net/mpifx/Makefile
blob: dba4313bb448be13f6d80ecae495e7c581a3a0f2 (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
35
36
37
PORTNAME=	mpifx
DISTVERSION=	1.3.1
PORTREVISION=	1
CATEGORIES=	net devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Modern Fortran wrappers around MPI routines
WWW=		https://github.com/dftbplus/mpifx

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	fypp:devel/py-fypp@${PY_FLAVOR}
LIB_DEPENDS=	libmpi.so:net/mpich

USES=		cmake:testing fortran python:build

USE_GITHUB=	yes
GH_ACCOUNT=	dftbplus

CMAKE_ON=	BUILD_SHARED_LIBS

post-test: # run test programs # at least one test crashes, see https://github.com/dftbplus/mpifx/issues/35
.for f in test_allgather test_allgatherv test_allreduce test_bcast test_comm_split test_gather test_gatherv test_reduce test_scatter test_scatterv
	cd ${BUILD_WRKSRC}/test && ./${f}
.endfor

.include <bsd.port.pre.mk>

.if ${GCC_DEFAULT} >= 10
# workaround for Type mismatch in argument 'cc' at (1); passed COMPLEX(8) to REAL(8)
FFLAGS+=	-fallow-argument-mismatch
.endif

# tests fail to build: https://github.com/dftbplus/mpifx/issues/43

.include <bsd.port.post.mk>