Skip to content

Commit

Permalink
science/py-openbabel: Fix build with llvm16
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 7, 2023
1 parent 441d202 commit 3ff8f3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions science/py-openbabel/Makefile
Expand Up @@ -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

Expand Down

0 comments on commit 3ff8f3d

Please sign in to comment.