git: 5a94fb755b93 - 2023Q3 - science/libxc: Add NATIVE option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Jul 2023 01:26:39 UTC
The branch 2023Q3 has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5a94fb755b93760c4f35dc729c68c18add329226
commit 5a94fb755b93760c4f35dc729c68c18add329226
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-14 01:24:29 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-14 01:26:37 +0000
science/libxc: Add NATIVE option
... to have no native optimizations by default.
Otherwise libxc caused illegal instruction errors in science/sirius.
(cherry picked from commit 0efd6e6a411705013e0e7e41f22847aba4e32ce7)
---
science/libxc/Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/science/libxc/Makefile b/science/libxc/Makefile
index 97d3c876ff34..2207601fb62a 100644
--- a/science/libxc/Makefile
+++ b/science/libxc/Makefile
@@ -1,6 +1,6 @@
PORTNAME= libxc
DISTVERSION= 6.0.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= science
MASTER_SITES= https://www.tddft.org/programs/${PORTNAME}/down/${DISTVERSION}/
@@ -18,6 +18,10 @@ TEST_DEPENDS= bash:shells/bash
CMAKE_ON= BUILD_SHARED_LIBS ENABLE_FORTRAN ENABLE_PYTHON
CMAKE_OFF= BUILD_TESTING
+OPTIONS_DEFINE= NATIVE
+
+NATIVE_CMAKE_BOOL= ENABLE_XHOST
+
pre-configure:
${REINPLACE_CMD} -e 's|$${CMAKE_INSTALL_LIBDIR}/pylibxc$$|${PYTHONPREFIX_SITELIBDIR}/pylibxc|' \
-e 's|$${CMAKE_INSTALL_PREFIX}/$${CMAKE_INSTALL_LIBDIR}/pylibxc/|${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pylibxc/|'\