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 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