summaryrefslogtreecommitdiff
path: root/math/moab/Makefile
blob: 518d673319625833eed4c92a034a944104ba8b43 (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=	moab
DISTVERSION=	5.2.1
PORTREVISION=	2
CATEGORIES=	math
MASTER_SITES=	https://bitbucket.org/${BB_ACCOUNT}/${BB_PROJECT}/get/${BB_COMMIT}.tar.gz?dummy=/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Component for representing and evaluating mesh data

LICENSE=	LGPL3+
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libhdf5.so:science/hdf5 \
		libnetcdf.so:science/netcdf \
		libopenblas.so:math/openblas

USES=		cmake:noninja compiler:c++11-lang eigen:3 fortran
USE_LDCONFIG=	yes

CMAKE_ARGS=	-DBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so \
		-DLAPACK_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so

BB_ACCOUNT=	fathomteam
BB_PROJECT=	${PORTNAME}
BB_COMMIT=	7bde9dfb84a8

WRKSRC=		${WRKDIR}/${BB_ACCOUNT}-${BB_PROJECT}-${BB_COMMIT}

OPTIONS_DEFINE=		MPI
OPTIONS_DEFAULT=	MPI
OPTIONS_SUB=		yes

MPI_CMAKE_BOOL=		ENABLE_MPI
MPI_LIB_DEPENDS=	libmpi.so:net/openmpi

.include <bsd.port.mk>