1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

science/libxc: Add NATIVE option

... to have no native optimizations by default.
Otherwise libxc caused illegal instruction errors in science/sirius.
This commit is contained in:
Yuri Victorovich 2023-07-13 18:24:29 -07:00
parent 038e81ab53
commit 0efd6e6a41

View File

@ -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/|'\