diff --git a/math/Imath/Makefile b/math/Imath/Makefile index 78b3b78adb52..7667dcba655d 100644 --- a/math/Imath/Makefile +++ b/math/Imath/Makefile @@ -1,53 +1,56 @@ # Based on the graphics/ilmbase port that was done by: nork@FreeBSD.org PORTNAME= Imath PORTVERSION= 3.0.1 CATEGORIES= math devel graphics MAINTAINER= mandree@FreeBSD.org COMMENT= C++/Python lib of 2D/3D vector, matrix, math ops for computer graphics LICENSE= BSD3CLAUSE USES= cmake compiler:c++14-lang pkgconfig USE_GITHUB= yes GH_TUPLE= AcademySoftwareFoundation:Imath:v${PORTVERSION} USE_LDCONFIG= yes CMAKE_ARGS+= -DCMAKE_DEBUG_POSTFIX= \ -DCMAKE_INSTALL_PREFIX=${PREFIX} PLIST_SUB= MAJORVER=${_MAJORVER} \ MINVER=${_MINVER} \ PLVER=${_PLVER} \ - VER=${_VER} + VER=${_VER} \ + PYVER=${PYTHON_VER:S/./_/} PORTDOCS= README.md OPTIONS_DEFINE= DOCS LARGE_STACK PYTHON OPTIONS_SUB= yes LARGE_STACK_DESC= Enable sys-dependent large stack optimizations LARGE_STACK_CMAKE_BOOL= IMATH_ENABLE_LARGE_STACK PYTHON_LIB_DEPENDS= ${PY_BOOST} PYTHON_USES= python PYTHON_CMAKE_BOOL= PYTHON +PYTHON_BUILD_DEPENDS= ${PYNUMPY} +PYTHON_RUN_DEPENDS= ${PYNUMPY} _MAJORVER= 3_0 _VER= 27 _MINVER= 0 _PLVER= 0 post-install: .for l in libImath ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${l}-${_MAJORVER}.so .endfor @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} do-test: cd ${BUILD_WRKSRC} && ctest .include diff --git a/math/Imath/pkg-plist b/math/Imath/pkg-plist index d91437901ce9..c123a91ee9d8 100644 --- a/math/Imath/pkg-plist +++ b/math/Imath/pkg-plist @@ -1,90 +1,90 @@ include/Imath/ImathBox.h include/Imath/ImathBoxAlgo.h include/Imath/ImathColor.h include/Imath/ImathColorAlgo.h include/Imath/ImathConfig.h include/Imath/ImathEuler.h include/Imath/ImathExport.h include/Imath/ImathForward.h include/Imath/ImathFrame.h include/Imath/ImathFrustum.h include/Imath/ImathFrustumTest.h include/Imath/ImathFun.h include/Imath/ImathGL.h include/Imath/ImathGLU.h include/Imath/ImathInt64.h include/Imath/ImathInterval.h include/Imath/ImathLine.h include/Imath/ImathLineAlgo.h include/Imath/ImathMath.h include/Imath/ImathMatrix.h include/Imath/ImathMatrixAlgo.h include/Imath/ImathNamespace.h include/Imath/ImathPlane.h include/Imath/ImathPlatform.h include/Imath/ImathQuat.h include/Imath/ImathRandom.h include/Imath/ImathRoots.h include/Imath/ImathShear.h include/Imath/ImathSphere.h include/Imath/ImathTypeTraits.h include/Imath/ImathVec.h include/Imath/ImathVecAlgo.h include/Imath/half.h include/Imath/halfFunction.h include/Imath/halfLimits.h lib/cmake/Imath/ImathConfig.cmake lib/cmake/Imath/ImathConfigVersion.cmake lib/cmake/Imath/ImathTargets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/Imath/ImathTargets.cmake lib/libImath-%%MAJORVER%%.so lib/libImath-%%MAJORVER%%.so.27 lib/libImath-%%MAJORVER%%.so.27.0.0 lib/libImath.so libdata/pkgconfig/Imath.pc %%PYTHON%%include/Imath/PyImath.h %%PYTHON%%include/Imath/PyImathAutovectorize.h %%PYTHON%%include/Imath/PyImathBasicTypes.h %%PYTHON%%include/Imath/PyImathBox.h %%PYTHON%%include/Imath/PyImathBoxArrayImpl.h %%PYTHON%%include/Imath/PyImathColor.h %%PYTHON%%include/Imath/PyImathColor3ArrayImpl.h %%PYTHON%%include/Imath/PyImathColor4Array2DImpl.h %%PYTHON%%include/Imath/PyImathColor4ArrayImpl.h %%PYTHON%%include/Imath/PyImathDecorators.h %%PYTHON%%include/Imath/PyImathEuler.h %%PYTHON%%include/Imath/PyImathExport.h %%PYTHON%%include/Imath/PyImathFixedArray.h %%PYTHON%%include/Imath/PyImathFixedArray2D.h %%PYTHON%%include/Imath/PyImathFixedMatrix.h %%PYTHON%%include/Imath/PyImathFixedVArray.h %%PYTHON%%include/Imath/PyImathFrustum.h %%PYTHON%%include/Imath/PyImathFun.h %%PYTHON%%include/Imath/PyImathLine.h %%PYTHON%%include/Imath/PyImathM44Array.h %%PYTHON%%include/Imath/PyImathMathExc.h %%PYTHON%%include/Imath/PyImathMatrix.h %%PYTHON%%include/Imath/PyImathOperators.h %%PYTHON%%include/Imath/PyImathPlane.h %%PYTHON%%include/Imath/PyImathQuat.h %%PYTHON%%include/Imath/PyImathRandom.h %%PYTHON%%include/Imath/PyImathShear.h %%PYTHON%%include/Imath/PyImathStringArray.h %%PYTHON%%include/Imath/PyImathStringArrayRegister.h %%PYTHON%%include/Imath/PyImathStringTable.h %%PYTHON%%include/Imath/PyImathTask.h %%PYTHON%%include/Imath/PyImathUtil.h %%PYTHON%%include/Imath/PyImathVec.h %%PYTHON%%include/Imath/PyImathVec2Impl.h %%PYTHON%%include/Imath/PyImathVec3ArrayImpl.h %%PYTHON%%include/Imath/PyImathVec3Impl.h %%PYTHON%%include/Imath/PyImathVec4ArrayImpl.h %%PYTHON%%include/Imath/PyImathVec4Impl.h %%PYTHON%%include/Imath/PyImathVecOperators.h %%PYTHON%%lib/cmake/Imath/ImathConfig-%%CMAKE_BUILD_TYPE%%.cmake -%%PYTHON%%lib/libPyImath_Python3_7-%%MAJORVER%%.so -%%PYTHON%%lib/libPyImath_Python3_7-%%MAJORVER%%.so.27 -%%PYTHON%%lib/libPyImath_Python3_7-%%MAJORVER%%.so.27.0.0 +%%PYTHON%%lib/libPyImath_Python%%PYVER%%-%%MAJORVER%%.so +%%PYTHON%%lib/libPyImath_Python%%PYVER%%-%%MAJORVER%%.so.27 +%%PYTHON%%lib/libPyImath_Python%%PYVER%%-%%MAJORVER%%.so.27.0.0 %%PYTHON%%%%PYTHON_SITELIBDIR%%/imath.so %%PYTHON%%%%PYTHON_SITELIBDIR%%/imathnumpy.so %%PYTHON%%libdata/pkgconfig/PyImath.pc