Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jul 2023 06:51:36 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 3391c802d580 - 2023Q3 - science/libint2-psi4: Add NATIVE option
Message-ID:  <202307140651.36E6padA047733@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2023Q3 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3391c802d58095dc60e244cff9c2036b44498d57

commit 3391c802d58095dc60e244cff9c2036b44498d57
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-14 06:33:27 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-14 06:51:33 +0000

    science/libint2-psi4: Add NATIVE option
    
    Otherwise it was built with -march=native by default which
    potentially causes crashes with illegal instruction signal.
    
    (cherry picked from commit cc59d9d5720b4fdf2e5b84b7aeea91d316031a88)
---
 science/libint2-psi4/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/science/libint2-psi4/Makefile b/science/libint2-psi4/Makefile
index f94ec8cb358f..b60d12ec390f 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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307140651.36E6padA047733>