-
Notifications
You must be signed in to change notification settings - Fork 724
/
Makefile
39 lines (28 loc) · 1.02 KB
/
Makefile
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= nlcglib
DISTVERSIONPREFIX= v
DISTVERSION= 0.9-148
PORTREVISION= 1
DISTVERSIONSUFFIX= -g9a1bca6
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
COMMENT= Nonlinear CG methods for wave-function optimization in DFT
WWW= https://github.com/simonpintarelli/nlcglib
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json
LIB_DEPENDS= libkokkoscore.so:devel/kokkos \
libopenblas.so:math/openblas
TEST_DEPENDS= googletest>0:devel/googletest
USES= cmake:testing pkgconfig
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= simonpintarelli
CMAKE_TESTING_ON= BUILD_TESTS # tests fail to compile, see https://github.com/simonpintarelli/nlcglib/issues/14
OPTIONS_DEFINE= OPENMP
OPTIONS_SINGLE= MPI
OPTIONS_SINGLE_MPI= MPICH OPENMPI
OPTIONS_DEFAULT= MPICH OPENMP
MPICH_USES= mpi:mpich
OPENMPI_USES= mpi:openmpi
OPENMP_CMAKE_BOOL= USE_OPENMP # binaries are still linked with libomp when USE_OPENMP=OFF, see https://github.com/simonpintarelli/nlcglib/issues/13
.include <bsd.port.mk>