aboutsummaryrefslogtreecommitdiff
path: root/science/libint2-psi4/Makefile
blob: 2296937a3cbeaea3834962b763e5814e0adafaec (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
PORTNAME=	libint2-psi4
DISTVERSION=	0.1-${VERSION}
PORTREVISION=	1
CATEGORIES=	science
MASTER_SITES=	https://github.com/loriab/libint/releases/download/v${DISTVERSION:C/-.*//}/
DISTFILES=	libint-${VERSION}-post1-5-4-3-6-5-4_mm4f12ob2_1.tgz

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Evaluate the integrals in modern atomic and molecular theory (psi4)
WWW=		https://github.com/evaleev/libint

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_aarch64=	compilation fails: runaway processes and out-of-memory conditions
BROKEN_i386=	compilation fails: clang runs out of memory
BROKEN_armv7=	compilation fails: clang runs out of memory

LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
		libgmpxx.so:math/gmp

USES=		cmake:testing eigen:3 python:build
USE_LDCONFIG=	yes

WRKSRC=		${WRKDIR}/libint-${VERSION}-post1

CMAKE_ARGS=	-DLIBINT2_SHGAUSS_ORDERING=gaussian \
		-DPython_EXECUTABLE=${PYTHON_CMD}
CMAKE_ON=	BUILD_SHARED_LIBS \
		REQUIRE_CXX_API
CMAKE_OFF=	ENABLE_FORTRAN \
		REQUIRE_CXX_API_COMPILED

VERSION=	2.7.2

PLIST_SUB+=	VER=${VERSION}

CONFLICTS=	libint2

OPTIONS_DEFINE=		NATIVE

NATIVE_CMAKE_BOOL=	ENABLE_XHOST

post-configure: # workaround for clang hanging on unity_1935_cxx.cxx, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265809
	#@cd ${BUILD_WRKSRC} && \
	#	${SED} -e 's|%%BUILD_WRKSRC%%|${BUILD_WRKSRC}|g ; s|%%WRKDIR%%|${WRKDIR}|g' < ${FILESDIR}/build.patch | ${PATCH}
	${REINPLACE_CMD} -e 's| -O2 | |g' ${BUILD_WRKSRC}/build.ninja

.include <bsd.port.mk>