diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-08-07 13:48:03 +0000 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-08-07 15:24:44 +0000 |
commit | 3ff8f3d88f3dcc6272d8335270888334aa1c6e5d (patch) | |
tree | 17d0b827abc32b4518618c953742cb42df94c0a0 | |
parent | 441d20200e3d6e07be71b0ee09abb3bbafa5b8df (diff) | |
download | ports-3ff8f3d88f3dcc6272d8335270888334aa1c6e5d.tar.gz ports-3ff8f3d88f3dcc6272d8335270888334aa1c6e5d.zip |
science/py-openbabel: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | science/py-openbabel/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/science/py-openbabel/Makefile b/science/py-openbabel/Makefile index a6353eee68e7..d4fe048259f5 100644 --- a/science/py-openbabel/Makefile +++ b/science/py-openbabel/Makefile @@ -18,6 +18,14 @@ USE_PYTHON= distutils autoplist BINARY_ALIAS= python=${PYTHON_CMD} +.include <bsd.port.options.mk> + +post-patch: +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) + @${REINPLACE_CMD} -e 's|binary_function|__binary_function|g' \ + ${WRKSRC}/openbabel/openbabel-python.i +.endif + post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/openbabel/_openbabel${PYTHON_EXT_SUFFIX}.so |