aboutsummaryrefslogtreecommitdiff
path: root/math/spla/Makefile
blob: e9dd6fd9ef1eb77482eb2ca762381c65a9197bf4 (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
PORTNAME=	spla
DISTVERSIONPREFIX=	v
DISTVERSION=	1.5.4
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Specialized Parallel Linear Algebra

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libopenblas.so:math/openblas
TEST_DEPENDS=	scalapack>0:math/scalapack

USES=		cmake:testing compiler:c++11-lang
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	eth-cscs

CMAKE_TESTING_ON=	SPLA_BUILD_TESTS # tests fail to link, see https://github.com/eth-cscs/spla/issues/24
CMAKE_TESTING_TARGET=	${ALL_TARGET}

OPTIONS_DEFINE=		FORTRAN OPENMP
OPTIONS_SINGLE=		MPI
OPTIONS_SINGLE_MPI=	MPICH OPENMPI
OPTIONS_DEFAULT=	FORTRAN MPICH OPENMP
OPTIONS_SUB=		yes

FORTRAN_USES=		fortran
FORTRAN_CMAKE_BOOL=	SPLA_FORTRAN

MPICH_USES=		mpi:mpich

OPENMPI_USES=		mpi:openmpi

OPENMP_CMAKE_BOOL=	SPLA_OMP

.include <bsd.port.mk>