git: c07e560b22f7 - main - science/py-pymol: fix build on targets without OpenMP
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Oct 2023 07:08:34 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c07e560b22f7edc7d26098be318af3c415311c9a
commit c07e560b22f7edc7d26098be318af3c415311c9a
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-10-18 19:17:09 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-10-19 07:07:31 +0000
science/py-pymol: fix build on targets without OpenMP
armv7 still doesn't have it, so disable OpenMP there to make the port
build. The previous problem from PR 262208 seems to no longer occur.
Approved by: portmgr (build fix blanket)
MFH: 2023Q4
---
science/py-pymol/Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/science/py-pymol/Makefile b/science/py-pymol/Makefile
index ae9365af177c..b31b04de6cb9 100644
--- a/science/py-pymol/Makefile
+++ b/science/py-pymol/Makefile
@@ -39,6 +39,11 @@ CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}chempy # chempy port is unrelated, see
CXXFLAGS+= -DMSGPACK_NO_BOOST # in line with MSGPACK_USE_BOOST=OFF in devel/msgpack-cxx
+.if !exists(/usr/include/omp.h)
+PYDISTUTILS_CONFIGUREARGS+= --use-openmp=no
+PYDISTUTILS_BUILDARGS+= --use-openmp=no
+.endif
+
OPTIONS_SINGLE= GUI
OPTIONS_SINGLE_GUI= QT5 TK
OPTIONS_DEFAULT= QT5