summaryrefslogtreecommitdiff
path: root/science/gbtolib/Makefile
blob: 8450c7e98d0925a0ff5ba04bdece0d5f5adbd728 (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
PORTNAME=	gbtolib
DISTVERSION=	3.0.3
PORTREVISION=	5
CATEGORIES=	science # chemistry, physics
MASTER_SITES=	https://zenodo.org/record/5798035/files/
DISTNAME=	GBTOLib-${DISTVERSION}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	High-performance library for evaluation of molecular integrals
WWW=		https://zenodo.org/record/5798035 #.Yo1sazXMKV4

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_powerpc64=	compilation fails in the Fortran code: Error: Kind -1 not supported for type REAL at (1)
BROKEN_powerpc64le=	compilation fails in the Fortran code: Error: Kind -1 not supported for type REAL at (1)
.if !exists(/usr/include/omp.h)
BROKEN=		requires OpenMP support that is missing on this architecture
.endif

LIB_DEPENDS=	libopenblas.so:math/openblas

USES=		cmake fortran zip

CMAKE_ON=	BUILD_SHARED_LIBS
CMAKE_OFF=	BUILD_DOC BUILD_TESTING

FFLAGS=		-fdefault-integer-8

OPTIONS_DEFINE=	MPI

MPI_CMAKE_BOOL=	WITH_MPI
MPI_CMAKE_ON=	-DMPIEXEC_EXECUTABLE=${LOCALBASE}/bin/mpiexec
MPI_BROKEN=	MPI build fails with error: Failed to detemine MPI integer interface.

.include <bsd.port.mk>