mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 04:46:28 -04:00
graphics/py-openimageio: Fix packaging with Python 3.8+
* Apply the same fix as in 9cb5898561
by
using wildcard paths and adjust the pkg-plist for the Python bindings
as well.
* Also use PYTHONPREFIX_SITELIBDIR instead PYTHON_SITELIBDIR to make
the port PREFIX safe while I'm here.
PR: 253815
Approved by: python (with hat)
This commit is contained in:
parent
980acd0250
commit
cd5b03f692
2 changed files with 3 additions and 3 deletions
|
@ -117,8 +117,8 @@ CMAKE_OFF+= USE_QT USE_OPENGL OIIO_BUILD_TOOLS OIIO_BUILD_TESTS
|
|||
CMAKE_ARGS+= -DPYTHON_VERSION:STRING=${PYTHON_VER}
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
|
||||
${INSTALL_LIB} ${BUILD_WRKSRC}/lib/python/site-packages/OpenImageIO.so ${STAGEDIR}${PYTHON_SITELIBDIR}
|
||||
${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||
${INSTALL_LIB} ${BUILD_WRKSRC}/lib/python/site-packages/OpenImageIO*.so ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||
.else # SLAVE_PORT != yes
|
||||
USE_LDCONFIG= yes
|
||||
CMAKE_OFF+= USE_PYTHON
|
||||
|
|
|
@ -1 +1 @@
|
|||
%%PYTHON_SITELIBDIR%%/OpenImageIO.so
|
||||
%%PYTHON_SITELIBDIR%%/OpenImageIO%%PYTHON_EXT_SUFFIX%%.so
|
||||
|
|
Loading…
Add table
Reference in a new issue