git: c6205e987126 - main - cad/py-gmsh: fix build with python 3.12
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jul 2026 07:06:41 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c6205e98712621eac18549ca0a24c90a73c78ecb
commit c6205e98712621eac18549ca0a24c90a73c78ecb
Author: Hiroo Ono <hiroo.ono+freebsd@gmail.com>
AuthorDate: 2026-07-09 07:05:33 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-09 07:06:22 +0000
cad/py-gmsh: fix build with python 3.12
PR: 296597
---
cad/py-gmsh/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/cad/py-gmsh/Makefile b/cad/py-gmsh/Makefile
index a4572f022a72..09664fd914df 100644
--- a/cad/py-gmsh/Makefile
+++ b/cad/py-gmsh/Makefile
@@ -36,7 +36,8 @@ USE_LDCONFIG= ${PYTHON_SITELIBDIR}
PATCHDIR= ${PORTSDIR}/cad/gmsh/files
CMAKE_ON= ENABLE_WRAP_PYTHON ENABLE_PRIVATE_API ENABLE_OCC
-CMAKE_ARGS= -DOCC_INC=${LOCALBASE}/include/OpenCASCADE
+CMAKE_ARGS= -DOCC_INC=${LOCALBASE}/include/OpenCASCADE \
+ -DGMSHPY_INSTALL_DIRECTORY=${PYTHON_SITELIBDIR}/gmshpy
CXXFLAGS_powerpc64= -mvsx
@@ -49,6 +50,7 @@ post-install: # remove all except for the python binding
share/doc/gmsh \
share/man/man1/gmsh.1
# move "private API" libs to the python folder
+ ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
@cd ${STAGEDIR} && \
${MV} \
${STAGEDIR}${PREFIX}/lib/gmsh* \