blob: b86dae4b4e1750f89471f52e3c495800ce01b501 (
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
50
51
52
53
54
55
56
57
58
59
|
PORTNAME= mrchem
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.4
PORTREVISION= 1
CATEGORIES= science # chemistry
MAINTAINER= yuri@FreeBSD.org
COMMENT= MultiResolution Chemistry
WWW= https://github.com/MRChemSoft/mrchem
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json
LIB_DEPENDS= libmrcpp.so:science/mrcpp \
libxcfun.so:science/xcfun
USES= cmake:testing compiler:c++14-lang eigen:3 shebangfix
USE_GITHUB= yes
GH_ACCOUNT= MRChemSoft
SHEBANG_FILES= python/mrchem.in tests/*/test
OPTIONS_DEFINE= ARCH_FLAGS PYTHON # the Python module also exists in the separate port science/py-mrchem, so it should be off by default here
OPTIONS_SINGLE= MPI
OPTIONS_SINGLE_MPI= NOMPI MPICH OPENMPI
OPTIONS_DEFAULT= MPICH
OPTIONS_SUB= yes
ARCH_FLAGS_DESC= Enable architecture-specific compiler flags
ARCH_FLAGS_CMAKE_BOOL= ENABLE_ARCH_FLAGS
NOMPI_DESC= Build without parallel processing support
MPICH_USES= mpi:mpich
MPICH_CMAKE_ON= -DENABLE_MPI=ON
OPENMPI_USES= mpi:openmpi
OPENMPI_CMAKE_ON= -DENABLE_MPI=ON
OPENMPI_BROKEN= fails to compile with OpenMPI, see https://github.com/MRChemSoft/mrchem/issues/438
PYTHON_USES= python
PYTHON_CMAKE_BOOL= BUILD_PYTHON
PYTHON_CMAKE_ON= -DPython3_EXECUTABLE=${PYTHON_CMD} \
-DPYMOD_INSTALL_LIBDIR=${PYTHON_SITELIBDIR:S;${PREFIX}/lib/;;}
post-install-PYTHON-on:
@${RMDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/mrchem/input_parser/docs
.include <bsd.port.options.mk>
.if !${PORT_OPTIONS:MPYTHON}
pre-test:
@${ECHO} "tests require the port to be built with PYTHON=ON" && false
.endif
.include <bsd.port.mk>
|