aboutsummaryrefslogtreecommitdiffstats
path: root/math/spla/Makefile
blob: d9d4645a39c98441a6e2cf18cfbe6cc256283c35 (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
PORTNAME=	spla
DISTVERSIONPREFIX=	v
DISTVERSION=	1.6.1
PORTREVISION=	1
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Specialized Parallel Linear Algebra
WWW=		https://github.com/eth-cscs/spla

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

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

USES=		cmake:testing compiler:c++17-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_ARGS=	-DFETCHCONTENT_FULLY_DISCONNECTED:BOOL=OFF # to allow to download google test
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

post-test: # run tests
	cd ${WRKSRC} && ${BUILD_WRKSRC}/tests/run_tests

.include <bsd.port.mk>