blob: f349803cd2ff8b8fa35c9311d47e42da928b3fd9 (
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
46
47
48
49
|
# $FreeBSD$
PORTNAME= dbcsr
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.0
PORTREVISION= 3
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Distributed Block Compressed Sparse Row matrix library
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= fypp:devel/py-fypp@${PY_FLAVOR}
USES= blaslapack:openblas cmake:noninja compiler:c++14-lang fortran \
python:build
USE_GITHUB= yes
GH_ACCOUNT= cp2k
USE_LDCONFIG= yes
LDFLAGS+= -lopenblas
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_ARGS= -DBLA_VENDOR:STRING="OpenBLAS"
TEST_TARGET= test # tests hang: https://github.com/cp2k/dbcsr/issues/72
OPTIONS_DEFINE= MPI OPENMP C_API # libxsmm is supposed to be supported, but cmake build lacks the corresponding option: https://github.com/cp2k/dbcsr/issues/73
OPTIONS_DEFAULT= MPI OPENMP C_API
OPTIONS_SUB= yes
MPI_CMAKE_BOOL= USE_MPI
MPI_LIB_DEPENDS= libmpi.so:net/openmpi
OPENMP_CMAKE_BOOL= USE_OPENMP
OPENMP_LIB_DEPENDS= libomp.so:devel/openmp
C_API_DESC= Build the C API library
C_API_CMAKE_BOOL= WITH_C_API
do-test: # tests are broken: https://github.com/cp2k/dbcsr/issues/150
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>
|