diff --git a/graphics/partio/Makefile b/graphics/partio/Makefile index 0daf8762e1a5..feaec2c66b2f 100644 --- a/graphics/partio/Makefile +++ b/graphics/partio/Makefile @@ -1,69 +1,72 @@ # $FreeBSD$ PORTNAME= partio -PORTVERSION= 1.13.2 +PORTVERSION= 1.14.0 DISTVERSIONPREFIX= v CATEGORIES= graphics math MAINTAINER= danfe@FreeBSD.org COMMENT= C++ library for particle I/O and manipulation LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= swig:devel/swig USES= cmake compiler:c++11-lang gl python:run shebangfix xorg SHEBANG_FILES= src/tools/partedit.py src/tools/partinspect.py \ src/tools/partjson.py USE_GL= gl glu glut USE_LDCONFIG= yes USE_XORG= xi xmu USE_GITHUB= yes GH_ACCOUNT= wdas PORTDOCS= * PORTEXAMPLES= * OPTIONS_DEFINE= DOCS DOXYGEN EXAMPLES PYQT PYQT_DESC= Install PyQt-based auxiliary tools # DOCS must be selected for PORTDOCS to work DOXYGEN_IMPLIES= DOCS DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen DOXYGEN_ALL_TARGET= all doc DOCS_BUILD_DEPENDS= doxygen:devel/doxygen -PYQT_USES= pyqt:5 python +PYQT_USES= pyqt:5 PYQT_USE= PYQT=core,gui,widgets PYQT_PLIST_FILES= bin/partinspect post-patch: + @${REINPLACE_CMD} -e \ + '/^project/s,${PORTNAME},& VERSION ${PORTVERSION},' \ + ${WRKSRC}/CMakeLists.txt @${REINPLACE_CMD} -e 's,OpenGL::OpenGL,$${OPENGL_LIBRARIES},' \ ${WRKSRC}/src/tools/CMakeLists.txt @${REINPLACE_CMD} -e 's,^from Qt,from PyQt5,' \ ${WRKSRC}/src/tools/partinspect.py @${REINPLACE_CMD} -e '/^install/d' ${WRKSRC}/src/tests/CMakeLists.txt post-patch-DOCS-off: @${REINPLACE_CMD} -e '/add_subdirectory(src\/doc)/d' \ ${WRKSRC}/CMakeLists.txt # Remove those files that don't yet work post-install: ${RM} ${STAGEDIR}${PREFIX}/bin/partedit post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/src/doc && ${INSTALL_DATA} tutorial.txt partio.tex ${STAGEDIR}${DOCSDIR} post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/src/data && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR} post-install-PYQT-off: cd ${STAGEDIR}${PREFIX} && ${RM} ${PYQT_PLIST_FILES} .include diff --git a/graphics/partio/distinfo b/graphics/partio/distinfo index 202eedbf46ca..81552a025f3c 100644 --- a/graphics/partio/distinfo +++ b/graphics/partio/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1600362217 -SHA256 (wdas-partio-v1.13.2_GH0.tar.gz) = c03cd4880eb9562d655b47fe2cf525856babafab884897c9b78f1817edfcca35 -SIZE (wdas-partio-v1.13.2_GH0.tar.gz) = 335102 +TIMESTAMP = 1606871958 +SHA256 (wdas-partio-v1.14.0_GH0.tar.gz) = f98874b781e92ab9b5d0575cabc437d27274cd91cb581f80960918efa491f902 +SIZE (wdas-partio-v1.14.0_GH0.tar.gz) = 335265 diff --git a/graphics/partio/files/patch-src_lib_CMakeLists.txt b/graphics/partio/files/patch-src_lib_CMakeLists.txt new file mode 100644 index 000000000000..e9e5eb95fbac --- /dev/null +++ b/graphics/partio/files/patch-src_lib_CMakeLists.txt @@ -0,0 +1,15 @@ +--- src/lib/CMakeLists.txt.orig 2020-12-02 01:19:18 UTC ++++ src/lib/CMakeLists.txt +@@ -40,7 +40,11 @@ else() + set(PARTIO_LIBRARY_TYPE STATIC) + endif() + add_library(partio ${PARTIO_LIBRARY_TYPE} ${io_cpp} ${core_cpp}) +-set_target_properties(partio PROPERTIES OUTPUT_NAME partio POSITION_INDEPENDENT_CODE ON) ++set_target_properties(partio PROPERTIES ++ OUTPUT_NAME partio ++ VERSION ${CMAKE_PROJECT_VERSION} ++ SOVERSION 1 ++ POSITION_INDEPENDENT_CODE ON) + + target_include_directories(partio + PUBLIC diff --git a/graphics/partio/pkg-plist b/graphics/partio/pkg-plist index 9baa9053b14f..ccae3990c53a 100644 --- a/graphics/partio/pkg-plist +++ b/graphics/partio/pkg-plist @@ -1,16 +1,18 @@ bin/partattr bin/partconvert bin/partinfo bin/partjson bin/partview include/Partio.h include/PartioAttribute.h include/PartioIterator.h include/PartioVec3.h lib/libpartio.so +lib/libpartio.so.1 +lib/libpartio.so.1.14.0 %%PYTHON_SITELIBDIR%%/_partio.so %%PYTHON_SITELIBDIR%%/partedit.py %%PYTHON_SITELIBDIR%%/partinspect.py %%PYTHON_SITELIBDIR%%/partio.py %%PYTHON_SITELIBDIR%%/partjson.py share/swig/partio.i