aboutsummaryrefslogtreecommitdiff
path: root/math/hydrogen/Makefile
blob: f2dcbe6e552663eb187d45dd0ce6367f0a0fd434 (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
PORTNAME=	hydrogen
DISTVERSIONPREFIX=	v
DISTVERSION=	1.5.1-29
PORTREVISION=	1
DISTVERSIONSUFFIX=	-gebfbc6418
CATEGORIES=	math
PKGNAMESUFFIX=	-linear-algebra

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Dense and sparse linear algebra, conic optimization, lattice reduction
WWW=		https://github.com/LLNL/Elemental

LICENSE=	BSD2CLAUSE

BUILD_DEPENDS=	cereal>0:devel/cereal
LIB_DEPENDS=	libopenblas.so:math/openblas

USES=		cmake:testing compiler:c++17-lang

USE_GITHUB=	yes
GH_ACCOUNT=	LLNL
GH_PROJECT=	Elemental

CMAKE_ON=	BUILD_SHARED_LIBS
CMAKE_OFF=	Hydrogen_ENABLE_TESTING
CMAKE_TESTING_OFF=	Hydrogen_ENABLE_TESTING # tests fail to configure, see https://github.com/LLNL/Elemental/issues/140

OPTIONS_SINGLE=		MPI
OPTIONS_SINGLE_MPI=	MPICH OPENMPI
OPTIONS_DEFINE=		MPC
OPTIONS_DEFAULT=	MPICH # should be same as in misc/lbann

MPICH_USES=		mpi:mpich

MPC_DESC=		Use MPC(+MPFR+GMP) library and enable related features
MPC_CMAKE_BOOL=		Hydrogen_ENABLE_MPC
MPC_BROKEN=		fails to enable: Disabling MPFR since MPI_LONG_LONG was not detected

OPENMPI_USES=		mpi:openmpi

BINARY_ALIAS=	git=false

.include <bsd.port.mk>