From cc59d9d5720b4fdf2e5b84b7aeea91d316031a88 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Thu, 13 Jul 2023 23:33:27 -0700 Subject: [PATCH] science/libint2-psi4: Add NATIVE option Otherwise it was built with -march=native by default which potentially causes crashes with illegal instruction signal. --- science/libint2-psi4/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/science/libint2-psi4/Makefile b/science/libint2-psi4/Makefile index f94ec8cb358f9..b60d12ec390f8 100644 --- a/science/libint2-psi4/Makefile +++ b/science/libint2-psi4/Makefile @@ -1,5 +1,6 @@ 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 @@ -32,6 +33,10 @@ 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}