diff --git a/cad/appcsxcad/Makefile b/cad/appcsxcad/Makefile index 96087df80292..8ff36c286eb3 100644 --- a/cad/appcsxcad/Makefile +++ b/cad/appcsxcad/Makefile @@ -1,39 +1,39 @@ PORTNAME= appcsxcad DISTVERSIONPREFIX= v DISTVERSION= 0.2.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= cad MAINTAINER= yuri@FreeBSD.org COMMENT= Minimal GUI Application using the QCSXCAD library WWW= https://github.com/thliebig/AppCSXCAD LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libCSXCAD.so:cad/csxcad \ libhdf5.so:science/hdf5 \ libQCSXCAD.so:cad/qcsxcad \ libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} USES= cmake gl pkgconfig qt:5 xorg USE_QT= core gui opengl widgets xml buildtools:build qmake:build USE_GL= opengl USE_XORG= ice sm x11 xext xt USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= thliebig GH_PROJECT= AppCSXCAD CMAKE_ARGS= -DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-${VTK_VER} PLIST_FILES= bin/AppCSXCAD post-install: @${RM} ${STAGEDIR}${PREFIX}/bin/AppCSXCAD.sh # shell script is only needed for Matlab # an example of file that AppCSXCAD opens (zipped): http://openems.de/forum/download/file.php?id=418&sid=6daebbb2df72b415fa2ec7031ffa6ca9 .include <../../math/vtk9/Makefile.version> .include diff --git a/cad/csxcad/Makefile b/cad/csxcad/Makefile index 98fc836e825c..f2c58adb8d39 100644 --- a/cad/csxcad/Makefile +++ b/cad/csxcad/Makefile @@ -1,34 +1,34 @@ PORTNAME= csxcad DISTVERSIONPREFIX= v DISTVERSION= 0.6.3 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= cad MAINTAINER= yuri@FreeBSD.org COMMENT= C++ library to describe geometrical objects WWW= https://github.com/thliebig/CSXCAD LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= cgal>0:math/cgal LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ libfparser-4.5.so:math/fparser \ libgmp.so:math/gmp \ libhdf5.so:science/hdf5 \ libmpfr.so:math/mpfr \ libtinyxml.so:textproc/tinyxml \ libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} USES= cmake pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= thliebig GH_PROJECT= ${PORTNAME:tu} CMAKE_ARGS= -DFPARSER_ROOT_DIR=${LOCALBASE} \ -DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-${VTK_VER} .include <../../math/vtk9/Makefile.version> .include diff --git a/cad/csxcad/files/patch-src_CSPropDiscMaterial.cpp b/cad/csxcad/files/patch-src_CSPropDiscMaterial.cpp new file mode 100644 index 000000000000..5ba309448a74 --- /dev/null +++ b/cad/csxcad/files/patch-src_CSPropDiscMaterial.cpp @@ -0,0 +1,21 @@ +--- src/CSPropDiscMaterial.cpp.orig 2026-03-02 05:14:03 UTC ++++ src/CSPropDiscMaterial.cpp +@@ -26,6 +26,9 @@ + #include "ParameterCoord.h" + #include "CSPropDiscMaterial.h" + ++#include ++ ++ + CSPropDiscMaterial::CSPropDiscMaterial(ParameterSet* paraSet) : CSPropMaterial(paraSet) + { + Type=(CSProperties::PropertyType)(DISCRETE_MATERIAL | MATERIAL); +@@ -327,7 +330,7 @@ bool CSPropDiscMaterial::ReadHDF5( std::string filenam + + bool CSPropDiscMaterial::ReadHDF5( std::string filename ) + { +- cout << __func__ << ": Reading \"" << filename << "\"" << std::endl; ++ std::cout << __func__ << ": Reading \"" << filename << "\"" << std::endl; + + // open hdf5 file + hid_t file_id = H5Fopen( filename.c_str(), H5F_ACC_RDONLY, H5P_DEFAULT ); diff --git a/cad/freecad/Makefile b/cad/freecad/Makefile index ca599d313605..447f2ac4ca89 100644 --- a/cad/freecad/Makefile +++ b/cad/freecad/Makefile @@ -1,138 +1,140 @@ PORTNAME= FreeCAD DISTVERSION= 1.0.2 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= cad MAINTAINER= cmt@FreeBSD.org COMMENT= General purpose 3D CAD modeller WWW= https://www.freecadweb.org/ LICENSE= LGPL20+ LICENSE_FILE= ${WRKSRC}/LICENSE -CONFLICTS_INSTALL= freecad-devel # bin/FreeCAD +BROKEN= incompatible with VTK 9.6.0 + +CONFLICTS_INSTALL= freecad-devel # bin/FreeCAD BUILD_DEPENDS= doxygen:devel/doxygen \ pybind11-config:devel/py-pybind11@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyside6-tools>0:devel/pyside6-tools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pivy>0:graphics/py-pivy@${PY_FLAVOR} \ ${PYTHON_SITELIBDIR}/matplotlib/__init__.py:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_INCLUDEDIR}/CXX/Config.hxx:devel/py-cxx \ microsoft-gsl>0:devel/microsoft-gsl \ googletest>0:devel/googletest \ swig:devel/swig # the ffmpeg4 dependency is inherited via cad/opencascade LIB_DEPENDS= libexpat.so:textproc/expat2 \ libyaml-cpp.so:devel/yaml-cpp \ libfreetype.so:print/freetype2 \ libtbb.so:devel/onetbb \ ${PY_BOOST} \ libpyside6.abi3.so:devel/pyside6@${PY_FLAVOR} \ libCoin.so:graphics/Coin \ libfmt.so:devel/libfmt \ libpng.so:graphics/png \ libtiff.so:graphics/tiff \ libvtksys-${VTK_VER}.so:math/vtk${VTK_VER:R} \ libTKernel.so:cad/opencascade \ libxerces-c.so:textproc/xerces-c3 \ libboost_thread.so:devel/boost-libs \ libfontconfig.so:x11-fonts/fontconfig \ libfreeimage.so:graphics/freeimage \ libavutil.so.60:multimedia/ffmpeg \ libavformat.so.58:multimedia/ffmpeg4 \ libmed.so:french/med \ libshiboken6.abi3.so:devel/shiboken6@${PY_FLAVOR} \ libhdf5.so:science/hdf5 \ libspnav.so:misc/libspnav RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pivy>0:graphics/py-pivy@${PY_FLAVOR} \ ${PYTHON_SITELIBDIR}/matplotlib/__init__.py:math/py-matplotlib@${PY_FLAVOR} USES= dos2unix compiler:c++17-lang cmake cpe gl eigen:3 fortran gmake jpeg \ localbase:ldflags mpi:openmpi pkgconfig python localbase qt:6 xorg \ desktop-file-utils shared-mime-info shebangfix USE_GITHUB= yes GH_ACCOUNT= Ondsel-Development:ondselsolver GH_PROJECT= OndselSolver:ondselsolver GH_TAGNAME= 91f70382beeb58b32432b5a82da3802e4c19199c:ondselsolver GH_SUBDIR= src/3rdParty/OndselSolver:ondselsolver USE_XORG= ice sm x11 xext xt USE_GL= gl glu USE_QT= base declarative location svg tools webchannel USE_LDCONFIG= yes CPE_VENDOR= freecad_project DOS2UNIX_GLOB= *.txt *.h *.cpp *.py *.qss *.csv *.pov *.stp *.ui *.wrl *.WRL SHEBANG_FILES= src/Tools/freecad-thumbnailer # our HDF5/CMake integration is messy, so workarounds are required below CMAKE_ARGS+= -DOCC_INCLUDE_DIR="${LOCALBASE}/include/OpenCASCADE" \ -DOPENMPI_INCLUDE_DIRS="${LOCALBASE}/mpi/openmpi/include" \ -DFREECAD_QT_VERSION="6" \ -DPYTHON_LIBRARY="${PYTHONBASE}/lib/libpython${PYTHON_VER}${PYTHON_ABIVER}.so" \ -DPYTHON_INCLUDE_DIR="${PYTHON_INCLUDEDIR}" \ -DPYTHON_PACKAGES_PATH="${PYTHON_SITELIBDIR}" \ -DPYTHON_EXECUTABLE="${PYTHON_CMD}" \ -DPYCXX_INCLUDE_DIR="${PYTHON_INCLUDEDIR}" \ -DBUILD_ASSEMBLY="ON" \ -DBUILD_DESIGNER_PLUGIN="ON" \ -DBUILD_FLAT_MESH="ON" \ -DBUILD_TEST="OFF" \ -DENABLE_DEVELOPER_TESTS="OFF" \ -DBUILD_VR="OFF" \ -DFREECAD_LIBPACK_USE="OFF" \ -DFREECAD_USE_EXTERNAL_FMT="ON" \ -DFREECAD_CREATE_MAC_APP="OFF" \ -DFREECAD_FREECAD_LIBPACK_USE="OFF" \ -DFREECAD_USE_EXTERNAL_KDL="OFF" \ -DFREECAD_USE_EXTERNAL_SMESH="OFF" \ -DFREECAD_USE_FREETYPE="ON" \ -DFREECAD_USE_PYBIND11="ON" \ -DUSE_CUDA="OFF" \ -DUSE_OPENCV="OFF" \ -Dpybind11_DIR="${PYTHON_SITELIBDIR}/pybind11/share/cmake/pybind11" \ -DHDF5_CFLAGS="-I${LOCALBASE}/include" \ -DHDF5_FOUND=TRUE \ -DHDF5_VERSION="1.12.2" \ -DHDF5_INCLUDE_DIRS="${LOCALBASE}/include/hdf5" \ -DHDF5_LIBRARIES="-L${LOCALBASE}/lib -lhdf5" \ -DHDF5_LIBRARY_DIRS="${LOCALBASE}/lib" \ -DBUILD_ENABLE_CXX_STD=C++17 \ -DXDG_DATADIR="${PREFIX}/share" CMAKE_INSTALL_PREFIX= ${PREFIX}/${PORTNAME} CXXFLAGS+= -DGetCellLinks=GetLinks # fix for vtk-9.5.0: equivalent of this patch: https://github.com/FreeCAD/FreeCAD/issues/21731#issuecomment-2934487147 OPTIONS_DEFINE= COLLADA COLLADA_DESC= Install pycollada for Collada files import COLLADA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycollada>0:graphics/py-pycollada@${PY_FLAVOR} .include .if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386 PLIST_SUB= WEBENGINE="" USE_QT+= webengine .else CMAKE_ARGS+= -DBUILD_WEB:BOOL=OFF PLIST_SUB= WEBENGINE="@comment " .endif pre-configure: @${REINPLACE_CMD} -e '/self\.rev/s/Unknown/${DISTVERSION:C/.*-//}/' \ ${WRKSRC}/src/Tools/SubWCRev.py # Install XDG icons and files to the standard path @${REINPLACE_CMD} -e 's/CMAKE_INSTALL_DATAROOTDIR/XDG_DATADIR/g' \ ${WRKSRC}/src/XDGData/CMakeLists.txt \ ${WRKSRC}/src/Gui/CMakeLists.txt post-install: ${LN} -s ../${PORTNAME}/bin/FreeCAD ${STAGEDIR}${LOCALBASE}/bin/FreeCAD ${LN} -s ../${PORTNAME}/bin/FreeCADCmd ${STAGEDIR}${LOCALBASE}/bin/FreeCADCmd ${INSTALL_SCRIPT} ${WRKSRC}/src/Tools/freecad-thumbnailer \ ${STAGEDIR}${PREFIX}/bin/freecad-thumbnailer .include <../../math/vtk9/Makefile.version> .include diff --git a/cad/opencascade/Makefile b/cad/opencascade/Makefile index e882bfc74d1c..bf68aa7280ea 100644 --- a/cad/opencascade/Makefile +++ b/cad/opencascade/Makefile @@ -1,210 +1,210 @@ PORTNAME= opencascade DISTVERSIONPREFIX= V DISTVERSION= 7_9_3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= cad science DIST_SUBDIR= ${PORTNAME}-${DISTVERSION} MAINTAINER= thierry@FreeBSD.org COMMENT= Open CASCADE Technology, 3D modeling & numerical simulation WWW= https://www.opencascade.org/ LICENSE= OCTPL LICENSE_NAME= LGPL21 with exception LICENSE_FILE= ${WRKSRC}/OCCT_LGPL_EXCEPTION.txt LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept BUILD_DEPENDS= rapidjson>0:devel/rapidjson \ ${LOCALBASE}/lib/qt5/bin/qmake:devel/qt5-qmake \ ${LOCALBASE}/lib/qt5/bin/moc:devel/qt5-buildtools LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libtbbmalloc.so:devel/onetbb \ libexpat.so:textproc/expat2 \ libdraco.so:archivers/draco \ libpng16.so:graphics/png \ libvtksys-${VTK_VER}.so:math/vtk${VTK_VER:R} RUN_DEPENDS= bash:shells/bash # Check ${WRKSRC}/dox/build/build_occt/building_occt.md USES= cmake compiler:c++17-lang eigen:3 gettext-runtime \ gl gnome localbase python qt:5 shebangfix tk xorg USE_XORG= ice sm x11 xau xcb xdmcp xext xft xi xmu xrender xscrnsaver xt USE_GL= egl gl glesv2 glu USE_GNOME= libxml2 USE_QT= core declarative gui network quick3d linguisttools widgets xml USE_GITHUB= yes GH_ACCOUNT= Open-Cascade-SAS GH_PROJECT= OCCT SHEBANG_FILES= adm/templates/*.sh \ adm/templates/*.sh.in \ adm/templates/*.sh.main \ adm/*.tcl ENVSH= adm/templates/env.sh OPTIONS_DEFINE= DOCS DOXYGEN FFMPEG VIS VIS_DESC= Build Visualizazion module (requires OpenGL, freetype, ftgl) OPTIONS_DEFAULT=FFMPEG VIS OPTIONS_SUB= yes REINPLACE_ARGS= -i "" LDFLAGS+= -Wl,--allow-shlib-undefined -lexecinfo CMAKE_ARGS+= -DINSTALL_DIR=${OCCROOT} \ -DINSTALL_DIR_INCLUDE=${PREFIX}/include/OpenCASCADE \ -DINSTALL_DIR_LIB=${PREFIX}/lib \ -DINSTALL_DIR_CMAKE=${PREFIX}/lib/cmake \ -DINSTALL_DIR_DATA=${OCCROOT}/data \ -DINSTALL_DIR_RESOURCE=${OCCROOT}/resources \ -DINSTALL_DIR_SAMPLES=${OCCROOT}/samples \ -DINSTALL_DIR_TESTS=${OCCROOT}/tests \ -DINSTALL_TEST_CASES:BOOL=ON \ -DBUILD_Inspector:BOOL=ON \ -DUSE_TCL:BOOL=ON \ -DCAN_USE_TK:BOOL=ON -DUSE_TK:BOOL=ON \ -DCAN_USE_XLIB:BOOL=ON -DUSE_XLIB:BOOL=ON \ -DCAN_USE_FREETYPE:BOOL=ON -DUSE_FREETYPE:BOOL=ON \ -DCAN_USE_VTK:BOOL=ON -DUSE_VTK:BOOL=ON \ -DCAN_USE_EIGEN:BOOL=ON -DUSE_EIGEN:BOOL=ON \ -DCAN_USE_RAPIDJSON:BOOL=ON -DUSE_RAPIDJSON:BOOL=ON \ -DCAN_USE_DRACO:BOOL=ON -DUSE_DRACO:BOOL=ON \ -DCAN_USE_TBB:BOOL=ON -DUSE_TBB:BOOL=ON \ -DUSE_QT_FROM_3RDPARTY_DIR:BOOL=ON \ -D3RDPARTY_QT_DIR:PATH=${LOCALBASE}/lib/cmake/Qt5 \ -D3RDPARTY_DRACO_DIR:PATH=${LOCALBASE} \ -D3RDPARTY_DRACO_LIBRARY=libdraco.so \ -D3RDPARTY_DRACO_LIBRARY_DIR:PATH=${LOCALBASE}/lib \ -D3RDPARTY_DRACO_INCLUDE_DIR:PATH=${LOCALBASE}/include/draco \ -D3RDPARTY_VTK_INCLUDE_DIR:PATH=${LOCALBASE}/include/vtk-${VTK_VER} CONFIGURE_ENV+= DESTDIR=${STAGEDIR} USE_LDCONFIG= yes .if defined(MAINTAINER_MODE) CMAKE_ARGS+= -DCMAKE_MESSAGE_CONTEXT_SHOW:BOOL=ON \ -DCMAKE_MESSAGE_LOG_LEVEL:STRING=DEBUG .endif CONFLICTS_INSTALL= opencascade740 # OpenCAS/bin/DRAWEXE LOCCROOT= OpenCAS OCCROOT= ${PREFIX}/${LOCCROOT} PLIST_SUB= OCCROOT="${LOCCROOT}" BITS=${BITS} CC=${CHOSEN_COMPILER_TYPE} \ VE=${PORTVERSION:R} VER=${PORTVERSION} FFMPEG_CMAKE_ON= -DCAN_USE_FFMPEG:BOOL=ON -DUSE_FFMPEG:BOOL=ON \ -D3RDPARTY_FFMPEG_INCLUDE_DIR=${LOCALBASE}/ffmpeg4/include \ -D3RDPARTY_FFMPEG_DIR=${LOCALBASE}/ffmpeg4 FFMPEG_CMAKE_OFF= -DUSE_FFMPEG:BOOL=OFF FFMPEG_LIB_DEPENDS= libavcodec.so.58:multimedia/ffmpeg4 \ libtheoraenc.so:multimedia/libtheora \ libunistring.so:devel/libunistring \ libvdpau.so:multimedia/libvdpau \ libxvidcore.so:multimedia/xvid \ libp11-kit.so:security/p11-kit \ libx264.so:multimedia/libx264 \ libtasn1.so:security/libtasn1 \ libvorbis.so:audio/libvorbis \ libdav1d.so:multimedia/dav1d \ libnettle.so:security/nettle \ libgnutls.so:security/gnutls \ libvpx.so:multimedia/libvpx \ libx265.so:multimedia/x265 \ libdrm.so:graphics/libdrm \ libva.so:multimedia/libva \ libaom.so:multimedia/aom \ libmp3lame.so:audio/lame \ libffi.so:devel/libffi \ libidn2.so:dns/libidn2 \ libogg.so:audio/libogg \ libopus.so:audio/opus \ libgmp.so:math/gmp VIS_CMAKE_ON= -DCAN_USE_FREEIMAGE:BOOL=ON -DUSE_FREEIMAGE:BOOL=ON \ -DCAN_USE_OPENGL:BOOL=ON -DUSE_OPENGL:BOOL=ON \ -DCAN_USE_GLES2:BOOL=ON -DUSE_GLES2:BOOL=ON \ -D3RDPARTY_FREETYPE_DIR=${LOCALBASE} VIS_CMAKE_OFF= -DUSE_FREEIMAGE:BOOL=OFF \ -DUSE_GLES2:BOOL=OFF VIS_LIB_DEPENDS= libftgl.so:graphics/ftgl \ libfreeimageplus.so:graphics/freeimage VIS_USE= GL=glesv2,opengl DOXYGEN_IMPLIES= DOCS DOXYGEN_USES= tex DOXYGEN_USE= TEX=latex:build DOXYGEN_BUILD_DEPENDS= bash:shells/bash \ doxygen:devel/doxygen \ dot:graphics/graphviz \ pdftex:print/tex-basic-engines \ inkscape:graphics/inkscape DOXYGEN_RUN_DEPENDS= ${LOCALBASE}/www/MathJax/MathJax.js:www/mathjax DOXYGEN_CMAKE_ON= -DBUILD_DOC_Overview:BOOL=ON \ -DINSTALL_DOC_Overview:BOOL=ON .include .if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == mips || ${ARCH} == powerpc || ${ARCH} == powerpcspe || ${ARCH} == "i386" BITS= 32 .else BITS= 64 .endif pre-everything:: @${ECHO_MSG} @${ECHO_MSG} "Warning: to build OpenCascade, you should have at least" @${ECHO_MSG} "2.6 Gb of free disk space in build area!" @${ECHO_MSG} pre-configure: ${REINPLACE_CMD} 's|||' \ ${WRKSRC}/src/BRepMesh/delabella.cpp \ ${WRKSRC}/src/OSD/OSD_MemInfo.cxx ${REINPLACE_CMD} -e 's|tclsh|${TCLSH}|' ${WRKSRC}/adm/gendoc ${REINPLACE_CMD} -e 's|/usr/bin/|${LOCALBASE}/bin/|' \ ${WRKSRC}/adm/vcpkg/ports/ffmpeg/portfile.cmake ${GREP} -rl x86_64 ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \ -e 's|x86_64|amd64|' .for es in ${ENVSH} ${REINPLACE_CMD} -e 's|lin|bsd|' ${WRKSRC}/${es} .endfor post-configure: ${REINPLACE_CMD} -e '/Standard_Version.hxx/s|${BUILD_WRKSRC}/||' \ ${BUILD_WRKSRC}/cmake_install.cmake post-stage: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake/OpenCASCADE ${MV} ${STAGEDIR}${PREFIX}/lib/cmake/*.cmake \ ${STAGEDIR}${PREFIX}/lib/cmake/OpenCASCADE .if defined(WITH_DEBUG) ${FIND} ${STAGEDIR}${PREFIX}/lib/cmake/OpenCASCADE -name "*.cmake" | \ ${XARGS} ${SED} -i '' -e 's/$${OCCT_INSTALL_BIN_LETTER}/d/' .else ${FIND} ${STAGEDIR}${PREFIX}/lib/cmake/OpenCASCADE -name "*.cmake" | \ ${XARGS} ${SED} -i '' -e 's/$${OCCT_INSTALL_BIN_LETTER}//' .endif ${REINPLACE_CMD} -e '/Standard_Version.hxx/s|${STAGEDIR}${PREFIX}/||' \ -e '/^@dir/d' ${WRKDIR}/.PLIST.mktmp post-install: ${MV} ${STAGEDIR}${OCCROOT}/bin/DRAWEXE-${PORTVERSION} \ ${STAGEDIR}${PREFIX}/bin/DRAWEXE ${RLN} ${STAGEDIR}${PREFIX}/bin/DRAWEXE ${STAGEDIR}${OCCROOT}/bin post-install-DOXYGEN-on: ${RLN} ${STAGEDIR}${OCCROOT}/${DOCSDIR_REL} ${STAGEDIR}${DOCSDIR} .if defined(MAINTAINER_MODE) regression-test: install ${RM} -rf /tmp/testOCC ${MKDIR} /tmp/testOCC bash -c "\ cd ${OCCROOT} && . ${OCCROOT}/bin/env.sh && \ CSF_TestScriptsPath=${OCCROOT}/tests \ CSF_TestDataPath=${OCCROOT}/data \ DRAWEXE -f ${FILESDIR}/regtest " .endif .include <../../math/vtk9/Makefile.version> .include diff --git a/cad/qcsxcad/Makefile b/cad/qcsxcad/Makefile index 0b75f90ab823..1e8573aa43c6 100644 --- a/cad/qcsxcad/Makefile +++ b/cad/qcsxcad/Makefile @@ -1,32 +1,32 @@ PORTNAME= qcsxcad DISTVERSIONPREFIX= v DISTVERSION= 0.6.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= cad MAINTAINER= yuri@FreeBSD.org COMMENT= Qt-GUI for CSXCAD WWW= https://github.com/thliebig/QCSXCAD LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libCSXCAD.so:cad/csxcad \ libfreetype.so:print/freetype2 \ libtinyxml.so:textproc/tinyxml \ libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} USES= cmake gl pkgconfig qt:5 xorg USE_QT= core gui opengl widgets xml buildtools:build qmake:build USE_XORG= ice sm x11 xext xt USE_GL= opengl USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= thliebig GH_PROJECT= ${PORTNAME:tu} CMAKE_ARGS= -DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-${VTK_VER} .include <../../math/vtk9/Makefile.version> .include diff --git a/cad/qcsxcad/files/patch-QVTKStructure.cpp b/cad/qcsxcad/files/patch-QVTKStructure.cpp new file mode 100644 index 000000000000..1f9ab6487e67 --- /dev/null +++ b/cad/qcsxcad/files/patch-QVTKStructure.cpp @@ -0,0 +1,56 @@ +--- QVTKStructure.cpp.orig 2026-03-02 07:18:29 UTC ++++ QVTKStructure.cpp +@@ -17,6 +17,8 @@ + + #include + ++#include ++ + #include "QVTKStructure.h" + + #if VTK_MAJOR_VERSION>=9 +@@ -280,7 +282,7 @@ void QVTKStructure::RenderGrid() + } + } + else +- cerr << "QVTKStructure::RenderGrid(): Error, unknown grid type!" << endl; ++ std::cerr << "QVTKStructure::RenderGrid(): Error, unknown grid type!" << std::endl; + + RenderGridDir(0,0); + RenderGridDir(1,0); +@@ -325,7 +327,7 @@ void QVTKStructure::RenderGridDir(int dir, unsigned in + uiQty[n]=CSGrid->GetQtyLines(n); + if ((int)plane_pos>=uiQty[dir]) + { +- cerr << "QVTKStructure::RenderGridDir: requested plane postion is out of range, resetting to max value!" << endl; ++ std::cerr << "QVTKStructure::RenderGridDir: requested plane postion is out of range, resetting to max value!" << std::endl; + plane_pos = uiQty[dir]-1; + } + +@@ -336,7 +338,7 @@ void QVTKStructure::RenderGridDir(int dir, unsigned in + ActorGridPlane[dir]->Delete(); + gridMapper->Delete(); + ActorGridPlane[dir]=NULL; +- cerr << "QVTKStructure::RenderGridDir: Error, rect grid mesh was not created, skipping drawing..." << endl; ++ std::cerr << "QVTKStructure::RenderGridDir: Error, rect grid mesh was not created, skipping drawing..." << std::endl; + return; + } + vtkRectilinearGridGeometryFilter *grid_plane = vtkRectilinearGridGeometryFilter::New(); +@@ -372,7 +374,7 @@ void QVTKStructure::RenderGridDir(int dir, unsigned in + ActorGridPlane[dir]->Delete(); + gridMapper->Delete(); + ActorGridPlane[dir]=NULL; +- cerr << "QVTKStructure::RenderGridDir: Error, structured grid mesh was not created, skipping drawing..." << endl; ++ std::cerr << "QVTKStructure::RenderGridDir: Error, structured grid mesh was not created, skipping drawing..." << std::endl; + return; + } + +@@ -403,7 +405,7 @@ void QVTKStructure::RenderGridDir(int dir, unsigned in + } + } + else +- cerr << "QVTKStructure::RenderGrid(): Error, unknown grid type!" << endl; ++ std::cerr << "QVTKStructure::RenderGrid(): Error, unknown grid type!" << std::endl; + + gridMapper->SetInputConnection(plane->GetOutputPort()); + ActorGridPlane[dir]->SetMapper(gridMapper); diff --git a/cad/qcsxcad/files/patch-VTKPrimitives.cpp b/cad/qcsxcad/files/patch-VTKPrimitives.cpp new file mode 100644 index 000000000000..7ba12750700b --- /dev/null +++ b/cad/qcsxcad/files/patch-VTKPrimitives.cpp @@ -0,0 +1,56 @@ +--- VTKPrimitives.cpp.orig 2023-10-22 14:27:22 UTC ++++ VTKPrimitives.cpp +@@ -19,6 +19,8 @@ + #include "vtkRenderer.h" + #include "vtkActorCollection.h" + ++#include ++ + #include "vtkPolyDataMapper.h" + #include "vtkDoubleArray.h" + #include "vtkLODActor.h" +@@ -106,7 +108,7 @@ void VTKPrimitives::AddCube(const double *start, const + } + if (dim==0) + { +- cerr << "VTKPrimitives::AddCube: Warning, can't draw a Point Box... skipping" << endl; ++ std::cerr << "VTKPrimitives::AddCube: Warning, can't draw a Point Box... skipping" << std::endl; + return; + } + if (dim==1) +@@ -510,7 +512,7 @@ void VTKPrimitives::AddSphericalShell(const double *dC + Source_o->Delete(); + Source_i->Delete(); + #else +- cerr << "VTKPrimitives::AddSphericalShell: Error, spherical shell not supported by this vkt version, you require vtk 5.10 or higher." << endl; ++ std::cerr << "VTKPrimitives::AddSphericalShell: Error, spherical shell not supported by this vkt version, you require vtk 5.10 or higher." << std::endl; + #endif + } + +@@ -848,7 +850,7 @@ void VTKPrimitives::WritePolyData2File(const char* fil + + void VTKPrimitives::WritePolyData2File(const char* filename, double scale) + { +- cout << "VTKPrimitives::WritePolyData2File: Dump to vtk file: " << filename << " -- Using scale: " << scale << endl; ++ std::cout << "VTKPrimitives::WritePolyData2File: Dump to vtk file: " << filename << " -- Using scale: " << scale << std::endl; + vtkXMLPolyDataWriter* writer = vtkXMLPolyDataWriter::New(); + writer->SetFileName(filename); + +@@ -890,7 +892,7 @@ void VTKPrimitives::WritePolyData2STL(const char* file + + void VTKPrimitives::WritePolyData2STL(const char* filename, double scale) + { +- cout << "VTKPrimitives::WritePolyData2STL: Dump to stl file: " << filename << " -- Using scale: " << scale << endl; ++ std::cout << "VTKPrimitives::WritePolyData2STL: Dump to stl file: " << filename << " -- Using scale: " << scale << std::endl; + + vtkTriangleFilter* filter = vtkTriangleFilter::New(); + +@@ -932,7 +934,7 @@ void VTKPrimitives::WritePolyData2PLY(const char* file + + void VTKPrimitives::WritePolyData2PLY(const char* filename, double scale) + { +- cout << "VTKPrimitives::WritePolyData2PLY: Dump to ply file: " << filename << " -- Using scale: " << scale << endl; ++ std::cout << "VTKPrimitives::WritePolyData2PLY: Dump to ply file: " << filename << " -- Using scale: " << scale << std::endl; + + vtkTriangleFilter* filter = vtkTriangleFilter::New(); + diff --git a/cad/qcsxcad/files/patch-vtkInteractorStyleRubberBand2DPlane.cpp b/cad/qcsxcad/files/patch-vtkInteractorStyleRubberBand2DPlane.cpp new file mode 100644 index 000000000000..fbd2da90162c --- /dev/null +++ b/cad/qcsxcad/files/patch-vtkInteractorStyleRubberBand2DPlane.cpp @@ -0,0 +1,21 @@ +--- vtkInteractorStyleRubberBand2DPlane.cpp.orig 2026-03-02 05:23:42 UTC ++++ vtkInteractorStyleRubberBand2DPlane.cpp +@@ -24,6 +24,9 @@ + #include "vtkRenderWindow.h" + #include "vtkRenderWindowInteractor.h" + ++#include ++ ++ + vtkStandardNewMacro(vtkInteractorStyleRubberBand2DPlane); + + vtkInteractorStyleRubberBand2DPlane::vtkInteractorStyleRubberBand2DPlane() : vtkInteractorStyleRubberBand2D() +@@ -56,7 +59,7 @@ void vtkInteractorStyleRubberBand2DPlane::OnMouseMove( + n_dir = n; + if (n_dir<0) + { +- cerr << __func__ << ": Error, no view in x-, y- or z-direction, skipping panning!"; ++ std::cerr << __func__ << ": Error, no view in x-, y- or z-direction, skipping panning!"; + return; + } + diff --git a/graphics/cloudcompare/Makefile b/graphics/cloudcompare/Makefile index 5259c0c6bc60..0788a4393ea8 100644 --- a/graphics/cloudcompare/Makefile +++ b/graphics/cloudcompare/Makefile @@ -1,97 +1,97 @@ PORTNAME= cloudcompare DISTVERSIONPREFIX= v DISTVERSION= 2.13.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/refs/tags/v2.12.4/snap/gui/:icons DISTFILES= ccViewer.png:icons cloudcompare.png:icons DIST_SUBDIR= ${PORTNAME}-${DISTVERSION} EXTRACT_ONLY= ${_DISTFILES:N*.png} MAINTAINER= alven@FreeBSD.org COMMENT= 3D point cloud (and triangular mesh) editing and processing software WWW= https://www.cloudcompare.org/ \ https://github.com/CloudCompare/CloudCompare/ LICENSE= GPLv2+ LGPL20+ LICENSE_COMB= multi USES= cmake gl qt:5 USE_GITHUB= yes GH_ACCOUNT= CloudCompare GH_PROJECT= ${GH_ACCOUNT} GH_TUPLE= CloudCompare:CCCoreLib:a8ce4270:cccorelib/libs/qCC_db/extern/CCCoreLib \ jlblancoc:nanoflann:2f54b8e:nanoflann/libs/qCC_db/extern/CCCoreLib/extern/nanoflann \ asmaloney:libE57Format:1914b8ea:libe57format/plugins/core/IO/qE57IO/extern/libE57Format \ google:googletest:7a7231c:googletest/plugins/core/IO/qE57IO/extern/libE57Format/test/extern/googletest \ dgirardeau:q3DMASC:4eec6459:q3dmasc/plugins/core/Standard/q3DMASC \ davisking:dlib:9117bd78:dlib/plugins/core/Standard/qCanupo/contrib/dlib \ CloudCompare:qJSonRPCPlugin:1ff2dbe4:qjsonrpcplugin/plugins/core/Standard/qJSonRPCPlugin \ hvs-ait:mplane-plugin:342ef9f5:mplaneplugin/plugins/core/Standard/qMPlane \ CyberbuildLab:masonry-cc:0c590fb2:masonrycc/plugins/core/Standard/qMasonry \ cloudcompare:PoissonRecon:d215dbaa:poissonrecon/plugins/core/Standard/qPoissonRecon/extern/PoissonRecon \ truebelief:cc-treeiso-plugin:fbe6a41a:cctreeisoplugin/plugins/core/Standard/qTreeIso USE_GL= gl glu USE_LDCONFIG= yes USE_QT= concurrent core gui opengl printsupport svg widgets \ buildtools:build linguisttools:build qmake:build OPTIONS_DEFINE= DXFLIB GAMEPAD GDAL PLUGINS SHAPELIB OPTIONS_DEFAULT= DXFLIB GAMEPAD GDAL PLUGINS SHAPELIB OPTIONS_SUB= yes DXFLIB_DESC= Enable AutoCAD DXF file support GAMEPAD_DESC= Enable Qt gamepad support GDAL_DESC= Enable raster file support SHAPELIB_DESC= Enable shape file support DXFLIB_CMAKE_BOOL= OPTION_USE_DXF_LIB GAMEPAD_USE= QT=gamepad GAMEPAD_CMAKE_BOOL= OPTION_SUPPORT_GAMEPADS GDAL_LIB_DEPENDS= libgdal.so:graphics/gdal GDAL_CMAKE_BOOL= OPTION_USE_GDAL GDAL_CMAKE_ON= -DGDAL_INCLUDE_DIR=${PREFIX}/include \ -DGDAL_LIBRARY=${PREFIX}/lib/libgdal.so PLUGINS_IMPLIES= SHAPELIB PLUGINS_LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ libexpat.so:textproc/expat2 \ libflann_cpp.so:math/flann \ libfreetype.so:print/freetype2 \ libpdalcpp.so:math/pdal \ libpng.so:graphics/png \ libtiff.so:graphics/tiff \ libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} PLUGINS_USES= eigen:3 jpeg xorg PLUGINS_USE= XORG=ice,sm,x11,xext,xt PLUGINS_CMAKE_BOOL= \ PLUGIN_GL_QEDL \ PLUGIN_GL_QSSAO \ PLUGIN_IO_QCSV_MATRIX \ PLUGIN_IO_QPDAL \ PLUGIN_IO_QPHOTOSCAN \ PLUGIN_STANDARD_QANIMATION \ PLUGIN_STANDARD_QBROOM \ PLUGIN_STANDARD_QCOMPASS \ PLUGIN_STANDARD_QCSF \ PLUGIN_STANDARD_QFACETS \ PLUGIN_STANDARD_QHPR \ PLUGIN_STANDARD_QM3C2 \ PLUGIN_STANDARD_QPCV \ PLUGIN_STANDARD_QRANSAC_SD \ PLUGIN_STANDARD_QSRA # plugins requiring rare external libs are left out, TODO maybe add some of them? PLUGINS_CMAKE_ON= -DEIGEN_ROOT_DIR:BOOL=${LOCALBASE}/include/eigen3 -DJSON_ROOT_DIR=${LOCALBASE}/include/jsoncpp PLUGINS_CXXFLAGS= ${PLUGINS_CXXFLAGS_${CHOSEN_COMPILER_TYPE}} SHAPELIB_LIB_DEPENDS= libshp.so:devel/shapelib SHAPELIB_CMAKE_BOOL= OPTION_USE_SHAPE_LIB PLUGINS_CXXFLAGS_clang= -Wno-narrowing post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps ${INSTALL_DATA} ${FILESDIR}/*.desktop ${STAGEDIR}${DESKTOPDIR} ${INSTALL_DATA} ${_DISTDIR}/*.png ${STAGEDIR}${PREFIX}/share/pixmaps .include <../../math/vtk9/Makefile.version> .include diff --git a/graphics/mirtk/Makefile b/graphics/mirtk/Makefile index 28b3fa763607..ea19882da5be 100644 --- a/graphics/mirtk/Makefile +++ b/graphics/mirtk/Makefile @@ -1,42 +1,42 @@ PORTNAME= mirtk DISTVERSIONPREFIX= v DISTVERSION= 2.0.0-179 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONSUFFIX= -gef71a17 CATEGORIES= graphics MAINTAINER= yuri@FreeBSD.org COMMENT= Medical Image Registration ToolKit (MIRTK) WWW= https://mirtk.github.io/ \ https://github.com/BioMedIA/MIRTK LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ nifticlib>0:science/nifticlib LIB_DEPENDS= libpng16.so:graphics/png USES= cmake compiler:c++11-lang eigen:3 perl5 python USE_CXXSTD= c++14 USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= BioMedIA GH_PROJECT= ${PORTNAME:tu} OPTIONS_DEFINE= TBB VTK OPTIONS_DEFAULT= TBB #VTK TBB_DESC= Build with TBB TBB_CMAKE_BOOL= WITH_TBB TBB_LIB_DEPENDS= libtbb.so:devel/onetbb VTK_DESC= Build with the VTK toolkit VTK_CMAKE_BOOL= WITH_VTK VTK_LIB_DEPENDS= libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} \ libexpat.so:textproc/expat2 VTK_BROKEN= causes compilation failure due to use of deprecated feature using std::bind1st, see https://github.com/BioMedIA/MIRTK/issues/789 .include <../../math/vtk9/Makefile.version> .include diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile index 0c1cffcbef78..4c5420cd159c 100644 --- a/graphics/opencv/Makefile +++ b/graphics/opencv/Makefile @@ -1,244 +1,244 @@ PORTNAME= opencv DISTVERSION= 4.13.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics MAINTAINER= desktop@FreeBSD.org COMMENT= Open Source Computer Vision library WWW= https://www.opencv.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libfreetype.so:print/freetype2 \ libharfbuzz.so:print/harfbuzz \ libhdf5.so:science/hdf5 USES= cmake compiler:c++14-lang cpe gnome localbase:ldflags pkgconfig USE_GITHUB= yes GH_PROJECT= ade:ade opencv_3rdparty:ippicv opencv_contrib:contrib GH_TAGNAME= 7f55c0c26be418d494615afca15218566775c725:ippicv v0.1.2e:ade USE_LDCONFIG= yes CMAKE_ARGS= -DOPENCV_EXTRA_MODULES_PATH="${WRKSRC}/contrib/modules" CMAKE_ON= OPENCV_GENERATE_PKGCONFIG OPENCV_SKIP_CMAKE_CXX_STANDARD CMAKE_OFF= BUILD_opencv_python2 BUILD_TESTS OPENCV_GENERATE_SETUPVARS WITH_KLEIDICV DATADIR= ${PREFIX}/share/${PORTNAME}4 PLIST_SUB= SHLIB_VER=${DISTVERSION} SHORTVERSION=${DISTVERSION:R:S/.//g} OPTIONS_DEFINE= EIGEN GDAL GDCM HARDENING JAVA LTO ONNX OPENCL PATENTED \ PROTOBUF PYTHON TBB TESSERACT OPTIONS_DEFAULT= DC1394 EIGEN GDAL GDCM GPHOTO2 GSTREAMER JPEG OPENBLAS \ OPENCL OPENEXR OPENJPEG PNG PROTOBUF PYTHON TIFF V4L \ VULKAN WEBP OPTIONS_GROUP= GUI IMAGE VIDEO OPTIONS_GROUP_GUI= GTK3 VTK OPTIONS_GROUP_IMAGE= AVIF GPHOTO2 JPEG OGRE3D OPENEXR PNG TIFF OPTIONS_GROUP_VIDEO= DC1394 FFMPEG GSTREAMER OBSENSOR V4L VULKAN WEBP XINE OPTIONS_RADIO= JPEG2K OPTIONS_RADIO_JPEG2K= JASPER OPENJPEG OPTIONS_SINGLE= BLAS OPTIONS_SINGLE_BLAS= ATLAS NOBLAS OPENBLAS OPTIONS_SUB= yes # Normal options (EIGEN GDAL GDCM HARDENING JAVA LTO OPENCL PATENTED PROTOBUF PYTHON TBB) EIGEN_DESC= Add Eigen v3 Support, builds sfm modules EIGEN_CMAKE_BOOL= WITH_EIGEN EIGEN_LIB_DEPENDS= libceres.so:math/ceres-solver \ libgflags.so:devel/gflags \ libglog.so:devel/glog EIGEN_USES= eigen:3 GDAL_DESC= Add Geospatial Data Abstraction Library Support GDAL_CMAKE_BOOL= WITH_GDAL GDAL_LIB_DEPENDS= libgdal.so:graphics/gdal GDCM_DESC= Add Open source DICOM library Support GDCM_CMAKE_BOOL= WITH_GDCM GDCM_LIB_DEPENDS= libgdcmMSFF.so:devel/gdcm HARDENING_DESC= Enables Build Hardening HARDENING_CMAKE_BOOL= ENABLE_BUILD_HARDENING JAVA_DESC= Enable Java Support JAVA_BUILD_DEPENDS= ant:devel/apache-ant JAVA_CMAKE_BOOL= BUILD_JAVA BUILD_opencv_java \ BUILD_opencv_java_bindings_generator JAVA_MAKE_ENV= JAVACMD=${JAVA} JAVA_USES= java LTO_DESC= Enables Link Time Optimizations LTO_CMAKE_BOOL= ENABLE_THIN_LTO ONNX_DESC= Include Microsoft ONNX Runtim support ONNX_CMAKE_BOOL= WITH_ONNX ONNX_CMAKE_ON= -DONNXRT_ROOT_DIR=${LOCALBASE} ONNX_LIB_DEPENDS= libonnxruntime.so:misc/onnxruntime OPENCL_DESC= Add OpenCL Support OPENCL_CMAKE_BOOL= WITH_OPENCL OPENCL_BUILD_DEPENDS= opencl>=0:devel/opencl OPENCL_RUN_DEPENDS= opencl>=0:devel/opencl PATENTED_DESC= Enable patented 2d feature detection USE AT OWN RISK PATENTED_CMAKE_BOOL= OPENCV_ENABLE_NONFREE PROTOBUF_DESC= Enable protobuf support, builds dnn modules PROTOBUF_CMAKE_BOOL= WITH_PROTOBUF # by default the bundled protobuf is built PYTHON_DESC= Enable Python Support 3.6 or greater PYTHON_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} PYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} PYTHON_USES= python PYTHON_CMAKE_BOOL= BUILD_opencv_python3 PYTHON_CMAKE_ON= -DOPENCV_PYTHON3_INSTALL_PATH=${PYTHON_SITELIBDIR} TBB_DESC= Add Intel Threading Building Blocks Support TBB_CMAKE_BOOL= WITH_TBB TBB_LIB_DEPENDS= libtbb.so:devel/onetbb TESSERACT_DESC= Add Tesseract-based OCR TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract TESSERACT_CMAKE_BOOL= WITH_TESSERACT ### # GUI group options (GTK3 VTK) GTK3_USE= GNOME=cairo,gdkpixbuf,gtk30 GTK3_CMAKE_BOOL= WITH_GTK VTK_DESC= Include VTK library support (build opencv_viz module) VTK_CMAKE_BOOL= WITH_VTK VTK_LIB_DEPENDS= libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} VTK_USES= qt:5 VTK_USE= QT=buildtools:build,qmake:build ### # IMAGE group options (AVIF GPHOTO2 JPEG OPENEXR PNG TIFF) AVIF_LIB_DEPENDS= libavif.so:graphics/libavif AVIF_CMAKE_BOOL= WITH_AVIF GPHOTO2_DESC= Add Gphoto2 Support GPHOTO2_CMAKE_BOOL= WITH_GPHOTO2 GPHOTO2_LIB_DEPENDS= libgphoto2.so:graphics/libgphoto2 JPEG_DESC= Add LibJpeg Support JPEG_CMAKE_BOOL= WITH_JPEG JPEG_USES= jpeg OGRE3D_DESC= Add OGRE support OGRE3D_LIB_DEPENDS= libOgreMain.so:graphics/ogre3d OGRE3D_CMAKE_BOOL= BUILD_opencv_ovis OPENEXR_DESC= Add OpenEXR Support OPENEXR_CMAKE_BOOL= WITH_OPENEXR OPENEXR_LIB_DEPENDS= libOpenEXR.so:graphics/openexr PNG_DESC= Add LibPNG Support PNG_CMAKE_BOOL= WITH_PNG PNG_LIB_DEPENDS= libpng16.so:graphics/png TIFF_DESC= Add LibTIFF Support TIFF_CMAKE_BOOL= WITH_TIFF TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff ### # VIDEO group options (DC1394 FFMPEG GSTREAMER V4L VULKAN WEBP XINE) DC1394_DESC= IEEE 1394 camera support DC1394_CMAKE_BOOL= WITH_1394 DC1394_LIB_DEPENDS= libdc1394.so:multimedia/libdc1394 FFMPEG_DESC= Link with ffmpeg FFMPEG_CMAKE_BOOL= WITH_FFMPEG FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg GSTREAMER_DESC= Add GSTREAMER Support GSTREAMER_CMAKE_BOOL= WITH_GSTREAMER GSTREAMER_USES= gstreamer GSTREAMER_USE= GNOME=glib20 OBSENSOR_DESC= Orbbec 3D camera support OBSENSOR_CMAKE_BOOL= WITH_OBSENSOR OBSENSOR_IMPLIES= V4L V4L_DESC= Enable support for Video for Linux V4L_CMAKE_BOOL= WITH_LIBV4L WITH_V4L V4L_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l VULKAN_DESC= Add Vulkan Support VULKAN_CMAKE_BOOL= WITH_VULKAN VULKAN_CMAKE_ON= -DVULKAN_INCLUDE_DIRS=${LOCALBASE}/include VULKAN_BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers WEBP_DESC= Add Webp Support WEBP_CMAKE_BOOL= WITH_WEBP WEBP_LIB_DEPENDS= libwebp.so:graphics/webp XINE_DESC= Add Xine Support XINE_CMAKE_BOOL= WITH_XINE XINE_LIB_DEPENDS= libxine.so:multimedia/libxine ### # BLAS group options (ATLAS OPENBLAS NOBLAS) ATLAS_DESC= ATLAS blas implementation with lapacke ATLAS_USES= blaslapack:atlas ATLAS_BUILD_DEPENDS= cblas>0:math/cblas \ lapacke>0:math/lapacke OPENBLAS_DESC= OpenBLAS blas implementation with lapacke OPENBLAS_USES= blaslapack:openblas OPENBLAS_BUILD_DEPENDS= cblas>0:math/cblas \ lapacke>0:math/lapacke NOBLAS_DESC= Disable support for lapack/blas NOBLAS_CMAKE_BOOL_OFF= WITH_LAPACK ### # JPEG2K group options (JASPER OPENJPEG) JASPER_DESC= Add Jasper Support for JPEG2000 JASPER_CMAKE_BOOL= WITH_JASPER JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper OPENJPEG_DESC= Add OpenJPEG Support for JPEG2000, OpenCV preferred OPENJPEG_CMAKE_BOOL= WITH_OPENJPEG OPENJPEG_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg ### _IPPICV_amd64= ippicv/ippicv_2021.12.0_lnx_intel64_20240425_general.tgz _IPPICV_i386= ippicv/ippicv_2021.12.0_lnx_ia32_20240425_general.tgz .include .if ${ARCH} == powerpc64le && defined(MACHINE_CPU) && ${MACHINE_CPU:Mvsx3} CMAKE_ARGS+= -DCPU_BASELINE:STRING="VSX;VSX3;" .endif post-extract: # Handle contrib ${MV} ${WRKSRC_contrib} \ ${WRKSRC}/contrib # Handle prefetched ade modul ${MKDIR} ${BUILD_WRKSRC}/3rdparty/ade ${MV} ${WRKSRC_ade} \ ${BUILD_WRKSRC}/3rdparty/ade # Handle ippicv .if defined(_IPPICV_${ARCH}) ${MKDIR} ${BUILD_WRKSRC}/3rdparty/ippicv (cd ${BUILD_WRKSRC}/3rdparty/ippicv && \ ${EXTRACT_CMD} -xf ${WRKSRC_ippicv}/${_IPPICV_${ARCH}}) .endif post-patch: ${REINPLACE_CMD} -e 's|/usr/lib/atlas-base|${LOCALBASE}/lib|g' \ ${WRKSRC}/cmake/OpenCVFindAtlas.cmake ${REINPLACE_CMD} -e 's|/usr/include/atlas|${LOCALBASE}/include|g' \ ${WRKSRC}/cmake/OpenCVFindAtlas.cmake .include <../../math/vtk9/Makefile.version> .include diff --git a/graphics/pcl-pointclouds/Makefile b/graphics/pcl-pointclouds/Makefile index a15de40ffbfc..dd62ef9e628e 100644 --- a/graphics/pcl-pointclouds/Makefile +++ b/graphics/pcl-pointclouds/Makefile @@ -1,85 +1,88 @@ PORTNAME= pcl DISTVERSIONPREFIX= pcl- DISTVERSION= 1.15.1 +PORTREVISION= 1 CATEGORIES= graphics math #MASTER_SITES= https://github.com/PointCloudLibrary/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSION}/ PKGNAMESUFFIX= -pointclouds #DISTNAME= source DIST_SUBDIR= ${PORTNAME}${PKGNAMESUFFIX}/${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Point Cloud Library WWW= https://pointclouds.org/ \ https://github.com/PointCloudLibrary/pcl LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt BROKEN_i386= undefined reference to `__atomic_load' NOT_FOR_ARCHS= armv6 armv7 NOT_FOR_ARCHS_REASON= common/include/pcl/pcl_macros.h:420:4: error: aligned_malloc not supported on your platform LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ libcjson.so:devel/libcjson \ libflann_cpp.so:math/flann \ libfreetype.so:print/freetype2 \ liblz4.so:archivers/liblz4 \ libpcap.so:net/libpcap USES= cmake:testing compiler:c++14-lang eigen:3 localbase:ldflags python xorg USE_XORG= x11 xext xt ice sm USE_LDCONFIG= yes #USE_GITHUB= nodefault USE_GITHUB= yes #GH_ACCOUNT= google:gtest GH_ACCOUNT= PointCloudLibrary google:gtest GH_PROJECT= ${PORTNAME} googletest:gtest GH_TAGNAME= release-1.11.0:gtest #DISTFILES= ${DISTNAME}${EXTRACT_SUFX} # workaround, otherwise USE_GITHUB=nodefault doesn't work #' +LDFLAGS+= -lX11 + CMAKE_TESTING_ON= BUILD_global_tests # 6 tests are known to fail: https://github.com/PointCloudLibrary/pcl/issues/5127 CMAKE_TESTING_TARGET= tests CMAKE_ON= BUILD_tools CMAKE_ARGS= -DGTEST_SRC_DIR=${WRKSRC_gtest}/googletest -DGTEST_INCLUDE_DIR=${WRKSRC_gtest}/googletest/include #WRKSRC= ${WRKDIR}/${PORTNAME} WRKSRC= ${WRKDIR}/pcl-${DISTVERSIONFULL} PLIST_SUB= SHL3=${DISTVERSION:R}.1.99 SHL2=${DISTVERSION:R} DATADIR= ${PREFIX}/share/${PORTNAME}-${DISTVERSION:R} # match the directory where the project installs .cmake files OPTIONS_DEFINE= OPENGL PNG QHULL VTK OPTIONS_DEFAULT= PNG VTK # QHULL is disabled due to conflicts qhull8 vs. qhull OPTIONS_SUB= yes OPENGL_CMAKE_BOOL= WITH_OPENGL # it finds OpenGL, but no binaries are linked with it: https://github.com/PointCloudLibrary/pcl/issues/2641 OPENGL_USES= gl OPENGL_USE= GL=gl,glu PNG_CMAKE_BOOL= WITH_PNG PNG_LIB_DEPENDS= libpng16.so:graphics/png QHULL_DESC= Include convex-hull operations QHULL_CMAKE_BOOL= WITH_QHULL QHULL_LIB_DEPENDS= libqhull_r.so:math/qhull VTK_DESC= Build VTK visualizations VTK_USES= gl qt:5 VTK_USE= GL=gl,glu QT=core,concurrent,opengl,widgets,buildtools:build,qmake:build VTK_CMAKE_BOOL= WITH_VTK VTK_CMAKE_ON= -DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-${VTK_VER} -DWITH_QT=QT5 VTK_CMAKE_OFF= -DWITH_QT=NO VTK_LIB_DEPENDS= libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} \ libpng16.so:graphics/png # tests as of 1.15.1: 98% tests passed, 2 tests failed out of 133, see https://github.com/PointCloudLibrary/pcl/issues/6373 .include <../../math/vtk9/Makefile.version> post-patch: @${REINPLACE_CMD} -e '/MODULES/s| system||' ${WRKSRC}/cmake/pcl_find_boost.cmake .include diff --git a/graphics/pcl-pointclouds/files/patch-outofcore_include_pcl_outofcore_visualization_geometry.h b/graphics/pcl-pointclouds/files/patch-outofcore_include_pcl_outofcore_visualization_geometry.h new file mode 100644 index 000000000000..c03207b84ef1 --- /dev/null +++ b/graphics/pcl-pointclouds/files/patch-outofcore_include_pcl_outofcore_visualization_geometry.h @@ -0,0 +1,10 @@ +--- outofcore/include/pcl/outofcore/visualization/geometry.h.orig 2026-03-01 23:04:21 UTC ++++ outofcore/include/pcl/outofcore/visualization/geometry.h +@@ -2,6 +2,7 @@ + + // C++ + #include ++#include + + // PCL + #include "object.h" diff --git a/graphics/py-fury/Makefile b/graphics/py-fury/Makefile index 830227df267f..faa9a7be1f4f 100644 --- a/graphics/py-fury/Makefile +++ b/graphics/py-fury/Makefile @@ -1,38 +1,38 @@ PORTNAME= fury DISTVERSION= 0.12.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Free Unified Rendering in Python WWW= https://fury.gl/latest/index.html LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.8.4:www/py-aiohttp@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}lazy_loader>=0.4:devel/py-lazy_loader@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}packaging>=17.0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pillow>=5.4.1:graphics/py-pillow@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pygltflib>=1.15.3:graphics/py-pygltflib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>=1.0:science/py-scipy@${PY_FLAVOR} \ vtk${VTK_VER:R}>0:math/vtk${VTK_VER:R} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=1.5.3:math/py-matplotlib@${PY_FLAVOR} USES= python USE_PYTHON= pep517 autoplist pytest # tests fail with signal 10, see https://github.com/fury-gl/fury/issues/795 TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} NO_ARCH= yes test-simple: @${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/test-earth_8k.py .include <../../math/vtk9/Makefile.version> .include diff --git a/graphics/py-mayavi/Makefile b/graphics/py-mayavi/Makefile index 784fa4bd8a65..5eabb991a200 100644 --- a/graphics/py-mayavi/Makefile +++ b/graphics/py-mayavi/Makefile @@ -1,59 +1,59 @@ PORTNAME= mayavi DISTVERSION= 4.8.2 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= graphics science python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Application and library for 3D visualization and plotting in Python WWW= http://code.enthought.com/pages/mayavi-project.html LICENSE= BSD3CLAUSE LGPL21 LGPL20 EPL LGPL3 BSD2CLAUSE APACHE11 # see ${WRKSRC}/image_LICENSE.txt LICENSE_COMB= multi LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE.txt LICENSE_FILE_LGPL21= ${WRKSRC}/image_LICENSE_Nuvola.txt LICENSE_FILE_LGPL20= ${WRKSRC}/image_LICENSE_CP.txt LICENSE_FILE_EPL= ${WRKSRC}/image_LICENSE_Eclipse.txt LICENSE_FILE_LGPL3= ${WRKSRC}/image_LICENSE_OOo.txt LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/LICENSE_YORICK.txt LICENSE_FILE_APACHE11= ${WRKSRC}/LICENSE_COLORBREWER.txt BROKEN_i386= stage fails: Building TVTK classes... Fatal Python error: Illegal instruction BUILD_DEPENDS= ${PYNUMPY} \ ${PY_SPHINX} \ sphinx-build:textproc/py-sphinx@${PY_FLAVOR} LIB_DEPENDS= libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}apptools>0:devel/py-apptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}envisage>0:devel/py-envisage@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyface>=6.1.1:devel/py-pyface@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}traits>=6.0.0:devel/py-traits@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}traitsui>=7.0.0:graphics/py-traitsui@${PY_FLAVOR} # list is in mayavi/__init__.py USES= python shebangfix USE_PYTHON= distutils autoplist USE_WX= 3.2 WX_COMPS= python:run SHEBANG_FILES= mayavi/scripts/mayavi2 \ mayavi/tests/csv_files/csv_2_py POST_PLIST= fix-plist post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tvtk/array_ext*.so fix-plist: @${REINPLACE_CMD} -e "s|${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}/mayavi/preferences/__pycache__$$||" ${TMPPLIST} @${REINPLACE_CMD} -e "s|${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}/tvtk/plugins/scene/__pycache__$$||" ${TMPPLIST} do-test: @${SETENV} ${TEST_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} ${WRKSRC}/examples/mayavi/interactive/coil_design_application.py .include <../../math/vtk9/Makefile.version> .include diff --git a/graphics/py-pyvista/Makefile b/graphics/py-pyvista/Makefile index 9f36906e3555..69531e6ef8d6 100644 --- a/graphics/py-pyvista/Makefile +++ b/graphics/py-pyvista/Makefile @@ -1,28 +1,28 @@ PORTNAME= pyvista DISTVERSION= 0.34.2 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= graphics python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Pythonic interface to VTK WWW= https://github.com/pyvista/pyvista LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}appdirs>0:devel/py-appdirs@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}imageio>0:graphics/py-imageio@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scooby>=0.5.1:devel/py-scooby@${PY_FLAVOR} \ vtk${VTK_VER:R}>0:math/vtk${VTK_VER:R} USES= python USE_PYTHON= distutils autoplist NO_ARCH= yes .include <../../math/vtk9/Makefile.version> .include diff --git a/graphics/vv/Makefile b/graphics/vv/Makefile index b22b9830da77..486c6115943a 100644 --- a/graphics/vv/Makefile +++ b/graphics/vv/Makefile @@ -1,71 +1,71 @@ PORTNAME= vv DISTVERSIONPREFIX= v DISTVERSION= 1.4.0-406 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONSUFFIX= -gd33ac3e8 CATEGORIES= graphics MAINTAINER= yuri@FreeBSD.org COMMENT= Fast and simple 4D image viewer WWW= https://github.com/open-vv/vv LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= googletest>0:devel/googletest # error: unable to find library -lGTest::GTest, see https://github.com/open-vv/vv/issues/74 LIB_DEPENDS= libexpat.so:textproc/expat2 \ libfreetype.so:print/freetype2 \ libgdcmCommon.so:devel/gdcm \ libhdf5_cpp.so:science/hdf5 \ libITKLabelMap-5.0.so:science/InsightToolkit501 \ libmpi.so:net/mpich \ libnetcdf.so:science/netcdf \ libpng16.so:graphics/png \ libtiff.so:graphics/tiff \ libvtkIOSQL-${VTK_VER}.so:math/vtk9 USES= cmake compiler:c++11-lang eigen:3 jpeg python:build,run qt:5 xorg USE_GITHUB= yes GH_ACCOUNT= open-vv USE_QT= core designer gui network opengl declarative sql widgets xml buildtools:build qmake:build USE_XORG= ice sm x11 xext xt USE_CXXSTD= c++11 CMAKE_ARGS= -DVTK_DIR:PATH=${LOCALBASE}/lib/vtk-8.2/cmake/vtk-8.2 PLIST_FILES= bin/vv .include .if ${ARCH} == i386 CXXFLAGS+= -msse2 # workaround for ITK failing to add -msse2 on i386: https://github.com/open-vv/vv/issues/83 & https://github.com/InsightSoftwareConsortium/ITK/issues/2011 .endif post-patch: @${REINPLACE_CMD} -e 's/VTK_OVERRIDE/override/g' \ ${WRKSRC}/vv/vtkVOXImageWriter.h \ ${WRKSRC}/vv/vvAnimatedGIFWriter.h \ ${WRKSRC}/vv/vvBlendImageActor.h \ ${WRKSRC}/vv/vvClipPolyData.h \ ${WRKSRC}/vv/vvGlyph2D.h \ ${WRKSRC}/vv/vvGlyphSource.h \ ${WRKSRC}/vv/vvInteractorStyleNavigator.h \ ${WRKSRC}/vv/vvLandmarksGlyph.h \ ${WRKSRC}/vv/vvSlicer.h @${REINPLACE_CMD} -e 's/Widget()->GetRenderWindow()/Widget()->renderWindow()/g' \ ${WRKSRC}/vv/vvToolHistogramCommand.cxx @${REINPLACE_CMD} -e 's/Widget->GetRenderWindow()/Widget->renderWindow()/g' \ ${WRKSRC}/vv/vvMainWindow.cxx \ ${WRKSRC}/vv/vvSegmentationDialog.cxx \ ${WRKSRC}/vv/vvSurfaceViewerDialog.cxx \ ${WRKSRC}/vv/vvToolHistogram.cxx \ ${WRKSRC}/vv/vvToolProfile.cxx @${REINPLACE_CMD} -e 's/widget->GetRenderWindow()/widget->renderWindow()/g' \ ${WRKSRC}/vv/vvMainWindow.cxx post-configure: # workaround for "error: unable to find library -lGTest::GTest", see https://github.com/open-vv/vv/issues/74 @${REINPLACE_CMD} -E 's/ -lGTest::(GTest|Main) / /g' ${BUILD_WRKSRC}/build.ninja @${REINPLACE_CMD} -E 's|/usr/local/lib/libtiff\.so\.[0-9]+\.[0-9]+\.[0-9]+|/usr/local/lib/libtiff.so|g' ${BUILD_WRKSRC}/build.ninja .include <../../math/vtk9/Makefile.version> .include diff --git a/graphics/vv/files/patch-tools_clitkHistogramImageGenericFilter.cxx b/graphics/vv/files/patch-tools_clitkHistogramImageGenericFilter.cxx new file mode 100644 index 000000000000..b67a501282c4 --- /dev/null +++ b/graphics/vv/files/patch-tools_clitkHistogramImageGenericFilter.cxx @@ -0,0 +1,32 @@ +--- tools/clitkHistogramImageGenericFilter.cxx.orig 2026-03-01 23:19:15 UTC ++++ tools/clitkHistogramImageGenericFilter.cxx +@@ -35,6 +35,8 @@ + + #include + ++#include ++#include + + + namespace clitk +@@ -170,16 +172,16 @@ void HistogramImageGenericFilter::SaveAs() + std::ofstream fileOpen(textFileName.c_str(), std::ofstream::trunc); + + if(!fileOpen) { +- cerr << "Error during saving" << endl; ++ std::cerr << "Error during saving" << std::endl; + return; + } + + int i(0); +- fileOpen << "Value represents the number of voxels around the corresponding intensity (by default the windows size around intensity is log(range))" << endl; +- fileOpen << "Intensity" << "\t" << "Value" << endl; ++ fileOpen << "Value represents the number of voxels around the corresponding intensity (by default the windows size around intensity is log(range))" << std::endl; ++ fileOpen << "Intensity" << "\t" << "Value" << std::endl; + + while (iGetNumberOfTuples()) { +- fileOpen << mArrayX->GetTuple(i)[0] << "\t" << mArrayY->GetTuple(i)[0] << endl; ++ fileOpen << mArrayX->GetTuple(i)[0] << "\t" << mArrayY->GetTuple(i)[0] << std::endl; + ++i; + } + diff --git a/graphics/vv/files/patch-tools_clitkProfileImageGenericFilter.cxx b/graphics/vv/files/patch-tools_clitkProfileImageGenericFilter.cxx new file mode 100644 index 000000000000..48c074892b9d --- /dev/null +++ b/graphics/vv/files/patch-tools_clitkProfileImageGenericFilter.cxx @@ -0,0 +1,22 @@ +--- tools/clitkProfileImageGenericFilter.cxx.orig 2026-03-01 23:21:24 UTC ++++ tools/clitkProfileImageGenericFilter.cxx +@@ -35,8 +35,10 @@ + + #include + ++#include + + ++ + namespace clitk + { + +@@ -202,7 +204,7 @@ void ProfileImageGenericFilter::WriteOutput(std::strin + std::ofstream fileOpen(outputFilename.c_str(), std::ofstream::trunc); + + if(!fileOpen) { +- cerr << "Error during saving" << endl; ++ std::cerr << "Error during saving" << endl; + return; + } + diff --git a/graphics/vv/files/patch-vv_vtkVOXImageWriter.cxx b/graphics/vv/files/patch-vv_vtkVOXImageWriter.cxx new file mode 100644 index 000000000000..72c82fb1ffa5 --- /dev/null +++ b/graphics/vv/files/patch-vv_vtkVOXImageWriter.cxx @@ -0,0 +1,10 @@ +--- vv/vtkVOXImageWriter.cxx.orig 2026-03-02 00:15:44 UTC ++++ vv/vtkVOXImageWriter.cxx +@@ -17,6 +17,7 @@ + ===========================================================================**/ + #include + #include ++#include + + #include "vtkVOXImageWriter.h" + diff --git a/graphics/vv/files/patch-vv_vvLandmarksGlyph.cxx b/graphics/vv/files/patch-vv_vvLandmarksGlyph.cxx new file mode 100644 index 000000000000..171be1d7814e --- /dev/null +++ b/graphics/vv/files/patch-vv_vvLandmarksGlyph.cxx @@ -0,0 +1,10 @@ +--- vv/vvLandmarksGlyph.cxx.orig 2026-03-02 00:16:24 UTC ++++ vv/vvLandmarksGlyph.cxx +@@ -26,6 +26,7 @@ + #include "vtkPolyData.h" + #include "vtkUnsignedCharArray.h" + #include ++#include + + vtkStandardNewMacro(vvLandmarksGlyph); + diff --git a/graphics/vv/files/patch-vv_vvToolHistogram.cxx b/graphics/vv/files/patch-vv_vvToolHistogram.cxx new file mode 100644 index 000000000000..ac2c07aa11c8 --- /dev/null +++ b/graphics/vv/files/patch-vv_vvToolHistogram.cxx @@ -0,0 +1,58 @@ +--- vv/vvToolHistogram.cxx.orig 2025-04-17 12:54:38 UTC ++++ vv/vvToolHistogram.cxx +@@ -20,6 +20,9 @@ + #include + + #include ++#include ++#include ++#include + + // vv + #include "vvToolHistogram.h" +@@ -94,8 +97,8 @@ vvToolHistogram::vvToolHistogram(vvMainWindowBase * pa + chart->SetRenderEmpty(true); + mView->GetScene()->AddItem(chart); + mView->GetRenderer()->SetBackground(1.0, 1.0, 1.0); +- this->HistogramWidget->GetRenderWindow()->GetRenderers()->RemoveAllItems(); +- this->HistogramWidget->GetRenderWindow()->AddRenderer(mView->GetRenderer()); ++ this->HistogramWidget->renderWindow()->GetRenderers()->RemoveAllItems(); ++ this->HistogramWidget->renderWindow()->AddRenderer(mView->GetRenderer()); + HistogramWidget->show(); + + #ifdef Q_OS_OSX +@@ -201,8 +204,8 @@ void vvToolHistogram::displayHistogram() + chart->GetAxis(vtkAxis::LEFT)->SetTitle("#Voxels"); + chart->GetAxis(vtkAxis::BOTTOM)->SetTitle("Intensity"); + +- this->HistogramWidget->GetRenderWindow()->GetRenderers()->RemoveAllItems(); +- this->HistogramWidget->GetRenderWindow()->AddRenderer(mView->GetRenderer()); ++ this->HistogramWidget->renderWindow()->GetRenderers()->RemoveAllItems(); ++ this->HistogramWidget->renderWindow()->AddRenderer(mView->GetRenderer()); + HistogramWidget->show(); + + QApplication::restoreOverrideCursor(); +@@ -300,10 +303,10 @@ void vvToolHistogram::InputIsSelected(vvSlicerManager + // Connect signals & slots + vvToolHistogramCommand *smc = vvToolHistogramCommand::New(); + smc->mHist = this; +- HistogramWidget->GetRenderWindow()->GetInteractor()->GetInteractorStyle()->AddObserver(vtkCommand::LeftButtonPressEvent, smc); +- HistogramWidget->GetRenderWindow()->GetInteractor()->GetInteractorStyle()->AddObserver(vtkCommand::MouseMoveEvent, smc); +- HistogramWidget->GetRenderWindow()->GetInteractor()->GetInteractorStyle()->AddObserver(vtkCommand::MouseWheelForwardEvent, smc); +- HistogramWidget->GetRenderWindow()->GetInteractor()->GetInteractorStyle()->AddObserver(vtkCommand::MouseWheelBackwardEvent, smc); ++ HistogramWidget->renderWindow()->GetInteractor()->GetInteractorStyle()->AddObserver(vtkCommand::LeftButtonPressEvent, smc); ++ HistogramWidget->renderWindow()->GetInteractor()->GetInteractorStyle()->AddObserver(vtkCommand::MouseMoveEvent, smc); ++ HistogramWidget->renderWindow()->GetInteractor()->GetInteractorStyle()->AddObserver(vtkCommand::MouseWheelForwardEvent, smc); ++ HistogramWidget->renderWindow()->GetInteractor()->GetInteractorStyle()->AddObserver(vtkCommand::MouseWheelBackwardEvent, smc); + smc->Delete(); + + } +@@ -443,7 +446,7 @@ void vvToolHistogram::SaveAs() + std::ofstream fileOpen(mTextFileName.c_str(), std::ofstream::trunc); + + if(!fileOpen) { +- cerr << "Error during saving" << endl; ++ std::cerr << "Error during saving" << std::endl; + QApplication::restoreOverrideCursor(); + close(); + return; diff --git a/graphics/vv/files/patch-vv_vvToolProfile.cxx b/graphics/vv/files/patch-vv_vvToolProfile.cxx new file mode 100644 index 000000000000..637a20c1ed45 --- /dev/null +++ b/graphics/vv/files/patch-vv_vvToolProfile.cxx @@ -0,0 +1,11 @@ +--- vv/vvToolProfile.cxx.orig 2026-03-02 00:20:47 UTC ++++ vv/vvToolProfile.cxx +@@ -509,7 +509,7 @@ void vvToolProfile::SaveAs() + std::ofstream fileOpen(mTextFileName.c_str(), std::ofstream::trunc); + + if(!fileOpen) { +- cerr << "Error during saving" << endl; ++ std::cerr << "Error during saving" << std::endl; + QApplication::restoreOverrideCursor(); + close(); + return; diff --git a/math/deal.ii/Makefile b/math/deal.ii/Makefile index 971fa0004632..1023331319ba 100644 --- a/math/deal.ii/Makefile +++ b/math/deal.ii/Makefile @@ -1,118 +1,118 @@ PORTNAME= deal.II DISTVERSION= 9.6.2 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= math MASTER_SITES= https://github.com/dealii/dealii/releases/download/v${DISTVERSION}/ DISTNAME= dealii-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Finite element Differential Equations Analysis Library (DEAL) WWW= https://www.dealii.org/ \ https://github.com/dealii/dealii LICENSE= APACHE20 LGPL21 LICENSE_COMB= dual LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.md LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSE.md BROKEN_aarch64= error: use of undeclared identifier '__TBB_machine_fetchadd4' BROKEN_armv7= clang runs out of memory BROKEN_i386= compilation fails: Kokkos assumes 64-bit build; i.e., 8-byte pointers BUILD_DEPENDS= ${LOCALBASE}/include/boost/config.hpp:devel/boost-libs LIB_DEPENDS= libblis.so:math/blis \ libboost_serialization.so:devel/boost-libs \ libhdf5.so:science/hdf5 \ libmetis.so:math/metis \ libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} # libkokkoscore.so:devel/kokkos TMP commented out for bundled kokkos, tests fail for non-bundled kokkos, see https://github.com/dealii/dealii/issues/15692 USES= blaslapack cmake:testing compiler:c++17-lang localbase:ldflags xorg USE_LDCONFIG= yes CMAKE_OFF= DEAL_II_ALLOW_BUNDLED DEAL_II_COMPONENT_EXAMPLES \ DEAL_II_WITH_P4EST DEAL_II_WITH_TRILINOS DEAL_II_WITH_UMFPACK \ DEAL_II_WITH_NANOFLANN DEAL_II_WITH_MUPARSER DEAL_II_WITH_ASSIMP \ DEAL_II_WITH_HDF5 CMAKE_ON= DEAL_II_FORCE_BUNDLED_TBB # instead of LIB_DEPENDS+=libtbb.so:devel/onetbb, pending https://github.com/dealii/dealii/issues/11561 CMAKE_ON+= FORCE_BUNDLED_KOKKOS # TMP turn on bundled kokkos CMAKE_TESTING_ON= FREEBSD_ENABLE_TESTS LDFLAGS+= -lomp LDFLAGS+= -lexecinfo # TMP for bundled kokkos XARCH!= uname -p OPTIONS_DEFINE= ADOLC ARPACK GSL LAPACK MPI OPENCASCADE PETSC SCALAPACK SLEPC SUNDIALS # for all options see contrib/docker/Dockerfile, TODO some of them need to be enabled here OPTIONS_DEFAULT= GSL LAPACK MPI OPENCASCADE PETSC SCALAPACK SLEPC SUNDIALS ADOLC_DESC= Compile with ADOL-C ADOLC_CMAKE_BOOL= DEAL_II_WITH_ADOLC ADOLC_LIB_DEPENDS= libadolc.so:math/adol-c ADOLC_BROKEN= requires the development version: see https://github.com/dealii/dealii/issues/7293 ARPACK_DESC= Compile with Arpack and PArpack (only with MPI, LAPACK) ARPACK_CMAKE_BOOL= DEAL_II_WITH_ARPACK ARPACK_CMAKE_ON= -DARPACK_LINKER_FLAGS:STRING="${LDFLAGS}" ARPACK_BUILD_DEPENDS= arpack-ng>0:math/arpack-ng ARPACK_RUN_DEPENDS= arpack-ng>0:math/arpack-ng # itself doesn't link to arpack, but makes depending project link to it ARPACK_IMPLIES= LAPACK GSL_DESC= Compile with gsl GSL_CMAKE_BOOL= DEAL_II_WITH_GSL GSL_LIB_DEPENDS= libgsl.so:math/gsl LAPACK_DESC= Compile with LAPACK for matrix operations LAPACK_USES= fortran LAPACK_CMAKE_BOOL= DEAL_II_WITH_LAPACK LAPACK_CMAKE_ON= -DLAPACK_LINKER_FLAGS:STRING="${LDFLAGS}" LAPACK_LIB_DEPENDS= libopenblas.so:math/openblas MPI_DESC= MPI support (math/sundials must be compiled with MPI) MPI_USES= fortran MPI_CMAKE_BOOL= DEAL_II_WITH_MPI MPI_CMAKE_ON= -DMPI_LINKER_FLAGS:STRING="${LDFLAGS}" MPI_LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs \ libmpich.so:net/mpich OPENCASCADE_DESC= Compile with OpenCascade OPENCASCADE_CMAKE_BOOL= DEAL_II_WITH_OPENCASCADE OPENCASCADE_CMAKE_ON= -DOPENCASCADE_INCLUDE_DIR:STRING=${LOCALBASE}/include/OpenCASCADE OPENCASCADE_LIB_DEPENDS= libTKernel.so:cad/opencascade PETSC_DESC= Compile with Petsc (only with MPI) PETSC_USES= xorg PETSC_USE= XORG=x11 # PETSc adds x11 through interface libraries PETSC_CMAKE_BOOL= DEAL_II_WITH_PETSC PETSC_LIB_DEPENDS= libpetsc.so:science/PETSc PETSC_IMPLIES= MPI # has to use the same MPI as PETSc uses .if ${XARCH:M*64*} # match index size width being set to 64 in science/PETSc and math/metis PETSC_CMAKE_BOOL+= DEAL_II_WITH_64BIT_INDICES # as opposed to 32-bit indices that are default in deal.II .endif SCALAPACK_DESC= Compile with ScaLAPACK (only with MPI) SCALAPACK_CMAKE_BOOL= DEAL_II_WITH_SCALAPACK SCALAPACK_IMPLIES= MPI LAPACK SCALAPACK_LIB_DEPENDS= libscalapack.so:math/scalapack SLEPC_DESC= Compile with Slepc (only with MPI) SLEPC_USES= xorg SLEPC_USE= XORG=x11 # SLEPc adds x11 through interface libraries SLEPC_CMAKE_BOOL= DEAL_II_WITH_SLEPC SLEPC_LIB_DEPENDS= libslepc.so:math/slepc SLEPC_IMPLIES= MPI # has to use the same MPI as PETSc uses SUNDIALS_DESC= Compile with SUNDIALS SUNDIALS_CMAKE_BOOL= DEAL_II_WITH_SUNDIALS SUNDIALS_LIB_DEPENDS= libsundials_arkode.so:math/sundials post-patch: # unbundle boost @${RM} -r ${WRKSRC}/dealii/bundled/boost-* post-stage: @${RM} ${STAGEDIR}${PREFIX}/*.log # the testsuite is excluded from the tarball: https://github.com/dealii/dealii/issues/17951 .include <../../math/vtk9/Makefile.version> .include diff --git a/math/vtk9/Makefile b/math/vtk9/Makefile index 2ce20a294e20..b02991144195 100644 --- a/math/vtk9/Makefile +++ b/math/vtk9/Makefile @@ -1,148 +1,147 @@ PORTNAME= vtk -DISTVERSION= 9.5.2 -PORTREVISION= 1 +DISTVERSION= 9.6.0 CATEGORIES= math graphics MASTER_SITES= https://vtk.org/files/release/${VTK_SHORT_VER}/ PKGNAMESUFFIX= 9 DISTNAME= ${PORTNAME:tu}-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Visualization toolkit WWW= https://vtk.org \ https://gitlab.kitware.com/vtk/vtk \ https://github.com/Kitware/VTK LICENSE= BSD3CLAUSE LIB_DEPENDS= \ libexpat.so:textproc/expat2 \ libfreetype.so:print/freetype2 \ libhdf5.so:science/hdf5 \ libnetcdf.so:science/netcdf \ libpng.so:graphics/png \ libtiff.so:graphics/tiff USES= cmake compiler:c++11-lang jpeg localbase xorg USE_LDCONFIG= ${PREFIX}/lib/vtk-${VTK_SHORT_VER} USE_XORG= ice x11 xt xext sm xcursor xfixes xrender CFLAGS_powerpc64le= -DSQLITE_BYTEORDER=1234 CMAKE_ON= BUILD_SHARED_LIBS \ VTK_INSTALL_NO_DOCUMENTATION \ Module_vtkTestingCore Module_vtkTestingRendering .for m in expat freetype hdf5 jpeg netcdf png tiff zlib # mpi4py should be here, but this fails, see https://gitlab.kitware.com/vtk/vtk/-/issues/18693 CMAKE_ON+= VTK_MODULE_USE_EXTERNAL_VTK_${m} .endfor CMAKE_ARGS= -DVTK_INSTALL_LIBRARY_DIR=lib/vtk-${VTK_SHORT_VER} \ -DVTK_INSTALL_ARCHIVE_DIR=lib/vtk-${VTK_SHORT_VER} \ -DVTK_INSTALL_QT_DIR=/${QT_LIBDIR_REL}/plugins/designer \ -DSTAGEDIR=${STAGEDIR} # all build options are documented here: https://gitlab.kitware.com/vtk/vtk/blob/master/Documentation/dev/build.md # all modules can be obtailed by: find . -name vtk.module # there's also CMake/vtkWrapSettings.cmake with options # disable finding Qt6 CMAKE_ON+= CMAKE_DISABLE_FIND_PACKAGE_Qt6 # enable all modules #CMAKE_ON+= VTK_BUILD_ALL_MODULES VTK_SHORT_VER= ${PORTVERSION:R} DOCSDIR= ${PREFIX}/share/doc/vtk-${VTK_SHORT_VER} DATADIR= ${PREFIX}/share/vtk-${VTK_SHORT_VER} # Options OPTIONS_DEFINE= DESIGNER DOCS OMPI OSMESA PYTHON QT5 EXAMPLES OPTIONS_DEFAULT= OMPI PYTHON QT5 # vtk python binding is needed by other packages, and is unfortunately is unseparable. It is a candidate to be a subpackage. OSMESA_DESC= Use Mesa for off-screen rendering OMPI_DESC= OpenMPI (Message Passing Interface) support DESIGNER_DESC= Build the Qt Designer plugin OPTIONS_SUB= yes # Option groups that enable groups of modules in VTK VTK_GROUPS= JAVA TCLTK OPTIONS_GROUP= GROUPS OPTIONS_GROUP_GROUPS= ${VTK_GROUPS} GROUPS_DESC= Groups .for w in ${VTK_GROUPS} $w_DESC= Enable $w group .endfor PYTHON_USES= python PYTHON_CMAKE_BOOL= VTK_WRAP_PYTHON PYTHON_CMAKE_ON= -DVTK_PYTHON_VERSION=${PYTHON_MAJOR_VER} -DPython3_EXECUTABLE=${PYTHON_CMD} PYTHON_VARS= SUB_FILES=PKG-INFO SUB_LIST=PORTVERSION=${PORTVERSION} QT5_USES= qt:5 QT5_USE= QT=core,declarative,gui,network,opengl,sql,uiplugin,widgets,x11extras,qmake,buildtools # qmake and buildtools should be with :build, but see https://gitlab.kitware.com/vtk/vtk/-/issues/18705 QT5_CMAKE_ON= -DVTK_GROUP_ENABLE_Qt:STRING=YES \ -DCMAKE_PREFIX_PATH:STRING=${LOCALBASE}/lib/qt5 #QT6_USES= qt:6 #QT6_USE= QT=base,declarative,tools:build #QT6_CMAKE_ON= -DVTK_GROUP_ENABLE_Qt:STRING=YES \ -DCMAKE_PREFIX_PATH:STRING=${LOCALBASE}/lib/qt5 DESIGNER_CMAKE_BOOL= QT_DESIGNER_PLUGIN DESIGNER_USE= QT=designer DESIGNER_IMPLIES= QT5 OMPI_CMAKE_BOOL= VTK_USE_MPI OMPI_USES= mpi:openmpi OMPI_CMAKE_ON= -DMPI_HOME=${LOCALBASE}/mpi/openmpi OMPI_LDFLAGS= ${MPI_LIBS} OSMESA_CMAKE_ON= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \ -DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \ -DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so \ -DOPENGL_gl_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so \ -DVTK_USE_X:BOOL=OFF OSMESA_LIB_DEPENDS= libOSMesa.so:graphics/libosmesa JAVA_USES= java JAVA_CMAKE_BOOL= VTK_WRAP_JAVA JAVA_CMAKE_ON= -DJAVA_INCLUDE_PATH:PATH=${JAVA_HOME}/include \ -DJAVA_AWT_LIBRARY:PATH=${JAVA_HOME}/jre/lib/${ARCH}/libjawt.so \ -DJAVA_JVM_LIBRARY:PATH=${JAVA_HOME}/jre/lib/${ARCH}/libjava.so TCLTK_USES= tk TCLTK_CMAKE_ON= -DVTK_GROUP_ENABLE_Tk:STRING=YES \ -DTCL_INCLUDE_PATH:PATH=${TCL_INCLUDEDIR} \ -DTK_INCLUDE_PATH:PATH=${TK_INCLUDEDIR} \ -DVTK_INSTALL_TCL_DIR=lib/vtk-${VTK_SHORT_VER} DOCS_CMAKE_BOOL= BUILD_DOCUMENTATION DOCS_BUILD_DEPENDS= doxygen:devel/doxygen EXAMPLES_CMAKE_BOOL= BUILD_EXAMPLES .include .if !${PORT_OPTIONS:MOSMESA} USES+= gl USE_GL= gl glu .endif .if ${PORT_OPTIONS:MPYTHON} && ${PORT_OPTIONS:MOMPI} BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR} .endif CONFLICTS= vtk6 vtk8 do-install-PYTHON-on: ${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} -f ${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} -f ${STAGEDIR}${PYTHON_SITELIBDIR} # cmake doesn't install pip's .egg-info: https://gitlab.kitware.com/vtk/vtk/-/issues/18087 @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/vtk-${DISTVERSION}-py${PYTHON_VER}.egg-info @${INSTALL_DATA} ${WRKDIR}/PKG-INFO ${STAGEDIR}${PYTHON_SITELIBDIR}/vtk-${DISTVERSION}-py${PYTHON_VER}.egg-info # workaround for: VTK installs mpi4py which makes it to conflict with the standalone mpi4py package, see https://gitlab.kitware.com/vtk/vtk/-/issues/18691 @${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/mpi4py post-install: # autoplist: thousands of files, complex dependencies on options @cd ${STAGEDIR}${PREFIX} && \ ${FIND} * -type f -or -type l >> ${TMPPLIST} .include diff --git a/math/vtk9/Makefile.version b/math/vtk9/Makefile.version index 0704e0637ff9..0a0a51736d16 100644 --- a/math/vtk9/Makefile.version +++ b/math/vtk9/Makefile.version @@ -1,3 +1,3 @@ # this file is provided for VTK users -VTK_VER=9.5 +VTK_VER=9.6 diff --git a/math/vtk9/distinfo b/math/vtk9/distinfo index 9c9699c5e250..c3f88f77e0b2 100644 --- a/math/vtk9/distinfo +++ b/math/vtk9/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1762721071 -SHA256 (VTK-9.5.2.tar.gz) = cee64b98d270ff7302daf1ef13458dff5d5ac1ecb45d47723835f7f7d562c989 -SIZE (VTK-9.5.2.tar.gz) = 50189467 +TIMESTAMP = 1772398605 +SHA256 (VTK-9.6.0.tar.gz) = d77d180694faafdc816578b9a53651f6790e799615811bfbb91018661a3bb8f2 +SIZE (VTK-9.6.0.tar.gz) = 53487494 diff --git a/misc/visp/Makefile b/misc/visp/Makefile index dca2c2970088..193d2ca4ea7e 100644 --- a/misc/visp/Makefile +++ b/misc/visp/Makefile @@ -1,69 +1,70 @@ PORTNAME= visp DISTVERSION= 3.7.0 +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= https://visp-doc.inria.fr/download/releases/ MAINTAINER= yuri@FreeBSD.org COMMENT= Modular library for visual tracking and visual servoing WWW= https://visp.inria.fr/ \ https://github.com/lagadic/visp LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= doxygen:devel/doxygen \ latex:print/tex-formats \ nlohmann-json>0:devel/nlohmann-json LIB_DEPENDS= libblas.so:math/blas \ libboost_thread.so:devel/boost-libs \ libdmtx.so:graphics/libdmtx \ libflann.so:math/flann \ libgsl.so:math/gsl \ liblapack.so:math/lapack \ libopenblas.so:math/openblas \ libopencv_core.so:graphics/opencv \ libopencv_videoio.so:graphics/opencv \ libpcap.so:net/libpcap \ libpng.so:graphics/png \ libv4l2.so:multimedia/libv4l \ libdc1394.so:multimedia/libdc1394 \ libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} # vtk9 is incurred by pcl-pointclouds USES= cmake compiler:c++14-lang dos2unix eigen:3 fortran gl gnome jpeg python:build qt:5 xorg zip USE_QT= opengl widgets USE_GNOME= libxml2 USE_XORG= ice sm x11 xext USE_GL= gl glu opengl USE_LDCONFIG= yes DOS2UNIX_FILES= CMakeLists.txt CMAKE_OFF= WITH_QBDEVICE BUILD_EXAMPLES BUILD_TUTORIALS BUILD_TESTS BUILD_DEMOS CXXFLAGS+= -I${LOCALBASE}/include/vtk-${VTK_VER} # https://github.com/lagadic/visp/issues/1707 PLIST_SUB= LIBVERSION=${PORTVERSION} SHORTVERSION=${PORTVERSION:R} OPTIONS_DEFINE= COIN OGRE PCL ZBAR OPTIONS_DEFAULT= COIN OGRE PCL ZBAR OPTIONS_SUB= yes COIN_DESC= Use Coin3D for simulation or augmented reality capabilities COIN_CMAKE_BOOL= USE_COIN3D COIN_LIB_DEPENDS= libCoin.so:graphics/Coin OGRE_DESC= Include Ogre support for 3D Rendering OGRE_CMAKE_BOOL= USE_OGRE OGRE_LIB_DEPENDS= libOgreMain.so:graphics/ogre3d PCL_DESC= Include Point Cloud Library support PCL_CMAKE_BOOL= USE_PCL PCL_LIB_DEPENDS= libpcl_common.so:graphics/pcl-pointclouds \ libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} # vtk9 is incurred by pcl-pointclouds ZBAR_DESC= Use ZBAR to read bar codes and QR codes ZBAR_CMAKE_BOOL= USE_ZBAR ZBAR_LIB_DEPENDS= libzbar.so:graphics/zbar .include <../../math/vtk9/Makefile.version> .include diff --git a/science/InsightToolkit/Makefile b/science/InsightToolkit/Makefile index 774a7552f1f5..f4fb3c5db113 100644 --- a/science/InsightToolkit/Makefile +++ b/science/InsightToolkit/Makefile @@ -1,106 +1,106 @@ PORTNAME= InsightToolkit DISTVERSIONPREFIX= v DISTVERSION= 5.3.0 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= science biology MASTER_SITES= https://github.com/InsightSoftwareConsortium/ITK/releases/download/v${DISTVERSION}/:data DISTFILES= InsightData-${DISTVERSION}.tar.gz:data MAINTAINER= yuri@FreeBSD.org COMMENT= Insight Toolkit WWW= https://www.itk.org LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= googletest>=0:devel/googletest # gtest required for build, see https://github.com/InsightSoftwareConsortium/ITK/issues/3750 LIB_DEPENDS= libdouble-conversion.so:devel/double-conversion \ libfreetype.so:print/freetype2 \ libgdcmCommon.so:devel/gdcm \ libexpat.so:textproc/expat2 \ libfftw.so:math/fftw \ libhdf5.so:science/hdf5 \ libpng.so:graphics/png \ libsz.so:science/libaec \ libtiff.so:graphics/tiff \ libvcl.so:misc/vxl # dependencies for optional modules LIB_DEPENDS+= libdcmjpls.so:graphics/dcmtk \ libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} TEST_DEPENDS= googletest>0:devel/googletest USES= cmake:testing compiler:c++11-lang eigen:3,build,run gl jpeg localbase:ldflags pkgconfig python:run,test xorg USE_GL= opengl USE_XORG= x11 USE_LDCONFIG= ${PREFIX}/lib/InsightToolkit USE_GITHUB= yes GH_ACCOUNT= InsightSoftwareConsortium GH_PROJECT= ITK CMAKE_ON= BUILD_SHARED_LIBS \ ITK_LEGACY_SILENT \ ITK_USE_SYSTEM_DCMTK \ ITK_USE_SYSTEM_DOUBLECONVERSION \ ITK_USE_SYSTEM_EIGEN \ ITK_USE_SYSTEM_EXPAT \ ITK_USE_SYSTEM_FFTW \ ITK_USE_SYSTEM_GDCM \ ITK_USE_SYSTEM_HDF5 \ ITK_USE_SYSTEM_JPEG \ ITK_USE_SYSTEM_LIBRARIES \ ITK_USE_SYSTEM_PNG \ ITK_USE_SYSTEM_TIFF \ ITK_USE_SYSTEM_VXL \ ITK_USE_SYSTEM_ZLIB \ Module_ITKIOTransformMINC \ Module_ITKIOPNG \ Module_ITKReview CMAKE_ARGS= -DPython3_EXECUTABLE=${PYTHON_CMD} CMAKE_OFF= ITK_USE_KWSTYLE BUILD_TESTING CMAKE_TESTING_ON= BUILD_TESTING # 4 tests are known to fail, see https://github.com/InsightSoftwareConsortium/ITK/issues/3739 #LDFLAGS+= -lcompat # workaround for: ld: error: lib/liblpsolve55.so.5.5.2: undefined reference to ftime LDFLAGS+= -L${WRKSRC} -lftime # workaround for: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257789, otherwise the above line should suffice ITK_VER= ${PORTVERSION:R} PLIST_SUB+= ITK_VER=${ITK_VER} OPTIONS_DEFINE= EXAMPLES EXAMPLES_DESC= Build examples (very time consuming) EXAMPLES_CMAKE_BOOL= BUILD_EXAMPLES BINARY_ALIAS= git=${FILESDIR}/fake-git fetch=false .include .if ${CHOSEN_COMPILER_TYPE} == gcc PLIST_SUB+= CHOSEN_COMPILER_TYPE="GNU" .else PLIST_SUB+= CHOSEN_COMPILER_TYPE="Clang" .endif post-extract: @${MV} ${WRKDIR}/${PORTNAME}-${DISTVERSION}/.ExternalData/* ${WRKSRC}/.ExternalData/ @${RM} -r ${WRKDIR}/${PORTNAME}-${DISTVERSION} pre-configure: # workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257789 @${SETENV} ${MAKE_ENV} ${CC} -c -fPIC ${FILESDIR}/ftime.c -o ${WRKSRC}/libftime.o @${AR} -rcs ${WRKSRC}/libftime.a ${WRKSRC}/libftime.o post-configure: # fix conflict with lp_solve by renaming the shared library to liblp_solve55_itk, see https://github.com/InsightSoftwareConsortium/ITK/issues/4031 @${REINPLACE_CMD} \ -e 's|lpsolve55|lpsolve55_itk|g' \ ${WRKSRC}/Modules/Remote/RTK/CMakeLists.txt \ ${WRKSRC}/Modules/Remote/RTK/src/CMakeLists.txt \ ${WRKSRC}/Modules/Remote/RTK/utilities/lp_solve/CMakeLists.txt post-install: # remove contentless docs @${RM} -r ${STAGEDIR}${PREFIX}/share .include .include <../../math/vtk9/Makefile.version> .include diff --git a/science/avogadrolibs/Makefile b/science/avogadrolibs/Makefile index 96b7dc019a4f..a7853e98cf03 100644 --- a/science/avogadrolibs/Makefile +++ b/science/avogadrolibs/Makefile @@ -1,81 +1,81 @@ PORTNAME= avogadrolibs DISTVERSION= 1.100.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Avogadro2 libraries for chemical editor and visualization applications WWW= https://www.openchemistry.org/projects/avogadro2/ \ https://github.com/OpenChemistry/avogadrolibs LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE TEST_DEPENDS= googletest>0:devel/googletest \ molequeue>0:misc/molequeue USES= cmake:testing compiler:c++17-lang eigen:3,build,run localbase # eigen needs to be 'run' because it is written into cmake files USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= OpenChemistry GH_TUPLE= OpenChemistry:molecules:8a37883:molecules/../molecules \ OpenChemistry:crystals:28404bd:crystals/../crystals \ OpenChemistry:fragments:c4943b5:fragments/../fragments CMAKE_ON= BUILD_SHARED_LIBS CMAKE_TESTING_ON= ENABLE_TESTING OPTIONS_DEFINE= HDF5 LIBARCHIVE LIBMSYM MMTF OPENGL QT5 SPGLIB VTK OPTIONS_DEFAULT= HDF5 LIBARCHIVE LIBMSYM MMTF OPENGL QT5 SPGLIB OPTIONS_SUB= yes HDF5_CMAKE_BOOL= USE_HDF5 HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5 LIBARCHIVE_DESC= Enable optional Libarchive features LIBARCHIVE_CMAKE_BOOL= USE_LIBARCHIVE LIBARCHIVE_USES= libarchive LIBARCHIVE_IMPLIES= QT5 LIBMSYM_DESC= Enable optional features using libmsym LIBMSYM_CMAKE_BOOL= USE_LIBMSYM LIBMSYM_LIB_DEPENDS= libmsym.so:science/libmsym LIBMSYM_IMPLIES= QT5 # enables the 'symmetry' Qt plugin MMTF_DESC= Enable optional features using mmtf MMTF_CMAKE_BOOL= USE_MMTF MMTF_BUILD_DEPENDS= mmtf-cpp>0:science/mmtf-cpp \ ${LOCALBASE}/include/boost/predef/other/endian.h:devel/boost-libs # needed by /usr/local/include/msgpack/sysdep.hpp:102 while boost is an optional dependency there OPENGL_CMAKE_BOOL= USE_OPENGL OPENGL_USES= gl OPENGL_USE= GL=gl,glew QT5_CMAKE_BOOL= USE_QT QT5_USES= qt:5 QT5_USE= QT=core,concurrent,gui,network,svg,widgets,buildtools:build,qmake:build QT5_IMPLIES= OPENGL SPGLIB_DESC= Enable optional features using spglib SPGLIB_CMAKE_BOOL= USE_SPGLIB SPGLIB_CMAKE_ON= -DSPGLIB_INCLUDE_DIR=${LOCALBASE}/include SPGLIB_LIB_DEPENDS= libsymspg.so:science/spglib SPGLIB_IMPLIES= QT5 # USE_SPGLIB only installs header file without USE_QT, and also installs SpaceGroup.a with USE_QT, see https://github.com/OpenChemistry/avogadrolibs/issues/610 VTK_DESC= Enable libraries that use VTK VTK_USES= xorg VTK_USE= QT=opengl XORG=x11 VTK_CMAKE_BOOL= USE_VTK VTK_LIB_DEPENDS= libvtksys-${VTK_VER}.so:math/vtk${VTK_VER:R} \ libfreetype.so:print/freetype2 VTK_IMPLIES= QT5 VTK_BROKEN= Needs https://github.com/psavery/genXrdPattern, see https://github.com/OpenChemistry/avogadrolibs/issues/1186 post-install: @${RM} -r ${STAGEDIR}${PREFIX}/share/doc # tests as of 1.100.0: 100% tests passed, 0 tests failed out of 27 .include <../../math/vtk9/Makefile.version> .include diff --git a/science/elmerfem/Makefile b/science/elmerfem/Makefile index 17c560d80809..dd95c15940be 100644 --- a/science/elmerfem/Makefile +++ b/science/elmerfem/Makefile @@ -1,130 +1,130 @@ PORTNAME= elmerfem DISTVERSIONPREFIX= release- DISTVERSION= 26.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= science MAINTAINER= thierry@FreeBSD.org COMMENT= Multiphysical simulation software WWW= https://www.elmerfem.org/blog/ LICENSE= GPLv2 LIB_DEPENDS= libhdf5.so:science/hdf5 \ libmetis.so:math/metis \ libnetcdf.so:science/netcdf \ libparpack.so:math/arpack-ng \ libcholmod.so:math/suitesparse-cholmod \ libumfpack.so:math/suitesparse-umfpack USES= blaslapack:openblas cmake compiler:c++11-lang fortran localbase mpi USE_CXXSTD= c++14 USE_GITHUB= yes GH_ACCOUNT= ElmerCSC USE_LDCONFIG= ${PREFIX}/lib/elmersolver CMAKE_ARGS= -DELMER_FEM_REVISION:STRING=${GH_TAGNAME} ALL_TARGET= # empty CMAKE_ARGS+= -DHAVE_INTTYPES_H:BOOL=ON \ -DEXTERNAL_ARPACK:BOOL=ON \ -DEXTERNAL_PARPACK:BOOL=ON \ -DEXTERNAL_UMFPACK:BOOL=ON .if !defined(MAINTAINER_MODE) CMAKE_ARGS+= -Wno-dev .endif OPTIONS_DEFINE= DOCS GUI OCC OPTIONS_DEFAULT= GUI OCC OPTIONS_SUB= yes GUI_DESC= Build with ElmerGUI (Graphical User Interface) OCC_DESC= Use OpenCASCADE for CAD import in ElmerGUI DOCS_USES= tex DOCS_USE= tex=pdftex:build GUI_LIB_DEPENDS= libqwt.so:x11-toolkits/qwt6@qt5 GUI_USES= gl jpeg qt:5 xorg GUI_USE= gl=gl,glu xorg=ice,sm,x11,xext,xt qt=${_QT5_LIBS:ts,} GUI_CMAKE_BOOL= WITH_ELMERGUI WITH_PARAVIEW GUI_CMAKE_ON= -DQWT_LIBRARY=${QT_LIBDIR}/libqwt.so \ -DQWT_INCLUDE_DIR=${QT_INCDIR}/qwt6 \ -DDESIRED_QT_VERSION=5 \ -DWITH_QT5:BOOL=TRUE \ -DQT_FOUND:BOOL=TRUE OCC_IMPLIES= GUI OCC_LIB_DEPENDS= libexpat.so:textproc/expat2 \ libfreetype.so:print/freetype2 \ libpng.so:graphics/png \ libpython${_PYVERSION}.so:lang/python${PYTHON_SUFFIX} \ libboost_thread.so:devel/boost-libs \ libtiff.so:graphics/tiff \ libTKernel.so:cad/opencascade \ libvtksys-${VTK_VER}.so:math/vtk${VTK_VER:R} OCC_USES= python OCC_CMAKE_BOOL= WITH_OCC OCC_CMAKE_ON= -DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-9.0 \ -DPython3_EXECUTABLE=${PYTHON_CMD} _LIBSTAGEDIR= ${STAGEDIR}/${PREFIX}/lib/elmersolver _PYVERSION= ${PYTHON_VER}${PYTHON_ABIVER} _QT5_LIBS= buildtools:build core declarative gui network opengl \ printsupport qmake:build script sql svg widgets xml .include <../../math/vtk9/Makefile.version> .include .if ${ARCH} == "amd64" CFLAGS_${ARCH}= -fPIC CXXFLAGS_${ARCH}= -fPIC FCFLAGS+= -fPIC FFLAGS+= -fPIC .endif PDFS= elmerice/Solvers/Documentation/m1qn3.pdf \ elmerice/Solvers/Documentation/poroussolver.pdf \ elmerice/Solvers/Documentation/siasolver.pdf \ elmerice/UserFunctions/Documentation/usf_damage.pdf \ fem/src/modules/contrib/ShellMultiSolver/ShellMutiSolverUserGuide.pdf PORTDOCS= * .if ${GCC_DEFAULT} >= 10 # workaround for Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/COMPLEX(8)). # in theory, this should set FCFLAGS, but the port does not conform FFLAGS+= -fallow-argument-mismatch .endif pre-configure: ${RM} ${WRKSRC}/cmake/Modules/CMakeParseArguments.cmake ${RM} -r ${WRKSRC}/elmergrid/src/metis-5.1.0 ${REINPLACE_CMD} -e 's,"metis.*/metis\.h",,' \ ${WRKSRC}/elmergrid/src/egparallel.c pre-configure-DOCS-off: ${REINPLACE_CMD} -e '/doc/s|ADD_SUB|#ADD_SUB|' ${WRKSRC}/fhutiter/CMakeLists.txt pre-configure-OCC-on: ${REINPLACE_CMD} -e "s|\$${VERSION}|`${PKG_QUERY} '%v' opencascade`|" \ "${WRKSRC}/cmake/Modules/FindOCE.cmake" ${REINPLACE_CMD} -e 's|$${INCLUDE}|${LOCALBASE}/include/OpenCASCADE|' \ "${WRKSRC}/cmake/Modules/FindOCE.cmake" post-install: ${LN} -sf ElmerSolver_mpi ${STAGEDIR}${PREFIX}/bin/ElmerSolver ${LN} -sf libelmersolver.so ${_LIBSTAGEDIR}/libelmersolver.so.0 ${LN} -sf libfhuti.so ${_LIBSTAGEDIR}/libfhuti.so.0 ${LN} -sf libmatc.so ${_LIBSTAGEDIR}/libmatc.so.0 ${LN} -sf libmpi_stubs.so ${_LIBSTAGEDIR}/libmpi_stubs.so.0 @${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/ElmerGrid post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PDFS:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} do-test: @cd ${TEST_WRKSRC} && ctest -C ${CMAKE_BUILD_TYPE} ${_MAKE_JOBS} .include diff --git a/science/lammps/Makefile b/science/lammps/Makefile index d9d2ba2d95f0..167b86fd3eae 100644 --- a/science/lammps/Makefile +++ b/science/lammps/Makefile @@ -1,156 +1,156 @@ PORTNAME= lammps PORTVERSION= ${GH_TAGNAME:C/(stable|patch)_([0-9]{1,2})([A-Z][a-z][a-z])([0-9]{4})/\4.\3.\2/S/Jan/01/S/Feb/02/S/Mar/03/S/Apr/04/S/May/05/S/Jun/06/S/Jul/07/S/Aug/08/S/Sep/09/S/Oct/10/S/Nov/11/S/Dec/12/S/_update/./:C/\.([1-9])$/.0\1/:S/.//g} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Classical molecular dynamics code with a focus on materials modeling WWW= https://lammps.sandia.gov/ \ https://github.com/lammps/lammps LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= undefined reference to `__atomic_load' LIB_DEPENDS= libevent.so:devel/libevent \ libfftw3.so:math/fftw3 \ libhwloc.so:devel/hwloc2 \ libnghttp2.so:www/libnghttp2 \ libpciaccess.so:devel/libpciaccess \ libssh2.so:security/libssh2 \ libzstd.so:archivers/zstd BUILD_DEPENDS= ${PY_SETUPTOOLS} .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif USES= blaslapack:openblas cmake:noninja,testing compiler:c++17-lang eigen:3 fortran gnome localbase:ldflags python shebangfix USE_GNOME= libxml2 USE_LDCONFIG= yes USE_PYTHON= cython USE_GITHUB= yes GH_TAGNAME= patch_19Nov2024 SHEBANG_GLOB= *.sh *.bash SHEBANG_FILES= lib/kokkos/bin/nvcc_wrapper CMAKE_ON= BUILD_SHARED_LIBS CMAKE_SOURCE_PATH= ${WRKSRC}/cmake CMAKE_ARGS= -DBLA_VENDOR:STRING="OpenBLAS" ${CMAKE_ARGS_${CHOSEN_COMPILER_TYPE}} \ -DPython_EXECUTABLE=${PYTHON_CMD} CMAKE_ARGS_gcc= -DBUILD_OMP:BOOL=false CMAKE_TESTING_ON= ENABLE_TESTING # 3 tests fail, see https://github.com/lammps/lammps/issues/3875 # enable packages (for a complete list see STANDARD_PACKAGES in cmake/CMakeLists.txt) CMAKE_ON+= ${LAMMPS_STANDARD_PACKAGES:S/^/PKG_/} # LAMMPS_STANDARD_PACKAGES is defined in Makefile.packages # Packages requiring extra downloades or dependencies: PKG_MSCG PKG_ADIOS PKG_MDI PKG_MESONT PKG_ML-PACE PKG_NETCDF PKG_ML-QUIP PKG_SCAFACOS PKG_VTK # PKG_ML-HDNNP downloads https://github.com/CompPhysVienna/n2p2/archive/v2.1.4.tar.gz OPTIONS_DEFINE= EXCEPTIONS JPEG PNG GZIP FFMPEG OPTIONS_GROUP= PARALLEL PACKAGES OPTIONS_DEFAULT= EXCEPTIONS MPI OPENMP JPEG PNG GZIP FFMPEG H5MD KIM KOKKOS LATTE NETCDF PLUMED VORONOI ${OPTIONS_DEFAULT_${CHOSEN_COMPILER_TYPE}} OPTIONS_SUB= yes PARALLEL_DESC= Enable parallelizations: PACKAGES_DESC= Enable packages: OPTIONS_GROUP_PARALLEL= MPI OPENMP ${OPTIONS_DEFINE_${CHOSEN_COMPILER_TYPE}} OPTIONS_GROUP_PACKAGES= H5MD KIM KOKKOS LATTE NETCDF PLUMED VORONOI VTK EXCEPTIONS_DESC= Enable the use of C++ exceptions EXCEPTIONS_CMAKE_BOOL= LAMMPS_EXCEPTIONS MPI_CMAKE_BOOL= BUILD_MPI PKG_MPIIO MPI_LIB_DEPENDS= libmpi_cxx.so:net/openmpi4 MPI_USES= compiler:c11 FFMPEG_CMAKE_BOOL= WITH_FFMPEG FFMPEG_BUILD_DEPENDS= ffmpeg:multimedia/ffmpeg FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg JPEG_CMAKE_BOOL= WITH_JPEG JPEG_USES= jpeg PNG_CMAKE_BOOL= WITH_PNG PNG_LIB_DEPENDS= libpng.so:graphics/png GZIP_DESC= Enable GZIP support GZIP_CMAKE_BOOL= WITH_GZIP H5MD_DESC= H5MD package based on the libhdf5 library H5MD_CMAKE_BOOL= PKG_H5MD H5MD_LIB_DEPENDS= libhdf5.so:science/hdf5 KIM_DESC= KIM package based on the OpenKim library/repository KIM_USES= pkgconfig KIM_CMAKE_BOOL= PKG_KIM KIM_CMAKE_ON= -DDOWNLOAD_KIM:BOOL=OFF KIM_LIB_DEPENDS= libkim-api.so:science/kim-api \ libcurl.so:ftp/curl KIM_RUN_DEPENDS= openkim-models>0:science/openkim-models KOKKOS_DESC= Kokkos package based on the libkokkos library KOKKOS_CMAKE_BOOL= PKG_KOKKOS EXTERNAL_KOKKOS KOKKOS_LIB_DEPENDS= libkokkoscore.so:devel/kokkos LATTE_DESC= Latte package based on the liblatte library LATTE_CMAKE_BOOL= PKG_LATTE LATTE_LIB_DEPENDS= liblatte.so:science/latte NETCDF_DESC= NetCDF package based on the NetCDF library NETCDF_CMAKE_BOOL= PKG_NETCDF NETCDF_LIB_DEPENDS= libnetcdf.so:science/netcdf PLUMED_DESC= Plumed package based on the plumed library PLUMED_USES= pkgconfig PLUMED_CMAKE_BOOL= PKG_PLUMED PLUMED_CMAKE_ON= -DPLUMED_MODE=shared PLUMED_LIB_DEPENDS= libplumed.so:science/plumed VORONOI_DESC= Voro++, Voronoi tessellation package VORONOI_CMAKE_BOOL= PKG_VORONOI VORONOI_LIB_DEPENDS= libvoro++.so:science/voro++ VTK_DESC= VTK package based on the external VTK-${VTK_VER:R} library VTK_CMAKE_BOOL= PKG_VTK VTK_CMAKE_ON= -DVTK_DIR:PATH=${LOCALBASE}/lib/cmake/vtk-${VTK_VER} VTK_USES= gl qt:5 xorg VTK_USE= GL=opengl qt=core,declarative,gui,network,opengl,sql,widgets xorg=ice,sm,x11,xext,xt VTK_LIB_DEPENDS= libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} \ libexpat.so:textproc/expat2 \ libfreetype.so:print/freetype2 \ libtiff.so:graphics/tiff PORTSCOUT= ignore:1 # due to a special version tagging scheme that this project uses portscout fails to find new versions, watching their GitHub release page instead .include .if ${PORT_OPTIONS:MOPENMP} CMAKE_ARGS+= -DBUILD_OMP:BOOL=true .endif xpost-patch: # adjust SHELL in Makefile @${REINPLACE_CMD} 's|SHELL = /bin/bash|SHELL = ${LOCALBASE}/bin/bash|' ${WRKSRC}/src/Makefile # fix python version, also see https://github.com/lammps/lammps/issues/3098, https://github.com/lammps/lammps/issues/3099 @${FIND} ${WRKSRC} -name "CMakeLists.txt" -o -name "*.cmake" | ${XARGS} ${REINPLACE_CMD} -e ' \ s|find_package(Python3 REQUIRED |find_package(Python $${FREEBSD_PYTHON_VER} EXACT REQUIRED |; \ s|find_package(Python 3.5 COMPONENTS |find_package(Python $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python 3.6 COMPONENTS |find_package(Python $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python3 REQUIRED |find_package(Python $${FREEBSD_PYTHON_VER} EXACT REQUIRED |; \ s|find_package(Python COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python3 COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python QUIET COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT QUIET COMPONENTS |; \ s|find_package(Python REQUIRED COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT REQUIRED COMPONENTS | \ ' post-patch-FFMPEG-off: @${REINPLACE_CMD} 's|find_program(FFMPEG_EXECUTABLE|#&|' ${WRKSRC}/cmake/CMakeLists.txt post-install: @${RM} -r ${STAGEDIR}${PREFIX}/lib/python* .include "Makefile.packages" .include <../../math/vtk9/Makefile.version> .include diff --git a/science/liggghts/Makefile b/science/liggghts/Makefile index d27aad15c63c..a340224c504f 100644 --- a/science/liggghts/Makefile +++ b/science/liggghts/Makefile @@ -1,46 +1,46 @@ PORTNAME= liggghts DISTVERSION= 3.8.0-58 -PORTREVISION= 8 +PORTREVISION= 9 DISTVERSIONSUFFIX= -g6e28cfe3 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Discrete element method particle simulation software WWW= https://www.cfdem.com/liggghts-open-source-discrete-element-method-particle-simulation-code LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/../LICENSE BUILD_DEPENDS= gsed:textproc/gsed LIB_DEPENDS= libexpat.so:textproc/expat2 \ libfreetype.so:print/freetype2 \ libhdf5_hl.so:science/hdf5 \ libmpi.so:net/mpich \ libnetcdf.so:science/netcdf \ libpng.so:graphics/png \ libtiff.so:graphics/tiff \ libvtkViewsCore-${VTK_VER}.so:math/vtk${VTK_VER:R} USES= compiler:c++17-lang cmake fortran gl jpeg python qt:5 xorg USE_XORG= ice sm x11 xext xt USE_QT= core declarative gui network opengl sql widgets qmake:build buildtools:build USE_GL= gl USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= CFDEMproject GH_PROJECT= ${PORTNAME:tu}-PUBLIC CMAKE_ARGS= -DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-${VTK_VER} \ -DPython3_EXECUTABLE=${PYTHON_CMD} WRKSRC_SUBDIR= src CFLAGS+= -fPIC CXXFLAGS+= -fPIC \ -I${LOCALBASE}/include/vtk-${VTK_VER} BINARY_ALIAS= sed=gsed .include <../../math/vtk9/Makefile.version> .include diff --git a/science/mmg/Makefile b/science/mmg/Makefile index 7c749c173ef0..2840dadc1862 100644 --- a/science/mmg/Makefile +++ b/science/mmg/Makefile @@ -1,30 +1,31 @@ PORTNAME= mmg DISTVERSIONPREFIX= v DISTVERSION= 5.8.0 +PORTREVISION= 1 CATEGORIES= science MAINTAINER= alven@FreeBSD.org COMMENT= Bidimensional and tridimensional remeshing WWW= https://www.mmgtools.org/ \ https://github.com/MmgTools/mmg/ LICENSE= LGPL3+ LICENSE_FILE= ${WRKSRC}/COPYING.LESSER BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libElas.so:science/linearelasticity \ libscotch.so:cad/scotch \ libvtksys-${VTK_VER}.so:math/vtk${VTK_VER:R} USES= cmake perl5 shebangfix USE_GITHUB= yes GH_ACCOUNT= MmgTools USE_LDCONFIG= yes USE_PERL5= build SHEBANG_FILES= scripts/*.pl scripts/*.sh CMAKE_ON= BUILD_SHARED_LIBS .include <../../math/vtk9/Makefile.version> .include diff --git a/science/openems/Makefile b/science/openems/Makefile index 9a1862a1ca80..36daf5547136 100644 --- a/science/openems/Makefile +++ b/science/openems/Makefile @@ -1,42 +1,42 @@ PORTNAME= openems DISTVERSIONPREFIX= v DISTVERSION= 0.0.36 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Electromagnetic field solver using the EC-FDTD method WWW= https://www.openems.de/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le ONLY_FOR_ARCHS_REASON= upstream only supports amd64 and powerpc64 LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ libCSXCAD.so:cad/csxcad \ libfparser-4.5.so:math/fparser \ libhdf5.so:science/hdf5 \ libtinyxml.so:textproc/tinyxml \ libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} USES= cmake pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= thliebig GH_PROJECT= openEMS CMAKE_ARGS= -DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-${VTK_VER} \ -DLOCALBASE=${LOCALBASE} CXXFLAGS+= -I${LOCALBASE}/include/fparser # fparser.pc probably returns a wrong value DATADIR= ${PREFIX}/share/openEMS post-install: @${REINPLACE_CMD} -i '' -e 's|#!/bin/bash|#!/bin/sh|' ${STAGEDIR}${PREFIX}/bin/openEMS.sh .include <../../math/vtk9/Makefile.version> .include diff --git a/science/paraview/Makefile b/science/paraview/Makefile index 4dc85421efbe..3026ee59fdc5 100644 --- a/science/paraview/Makefile +++ b/science/paraview/Makefile @@ -1,183 +1,184 @@ PORTNAME= paraview DISTVERSION= ${PARAVIEW_VER}.1 +PORTREVISION= 1 CATEGORIES= science graphics MASTER_SITES= http://www.paraview.org/files/v${PARAVIEW_VER}/ DISTNAME= ParaView-v${PORTVERSION} MAINTAINER= thierry@FreeBSD.org COMMENT= Powerful scientific data visualization application WWW= https://www.paraview.org/ # See https://www.paraview.org/license/ LICENSE= BSD3CLAUSE #BROKEN_i386= no matching member function for call to 'getArrayType' BUILD_DEPENDS= ${PYNUMPY} \ cli11>0:devel/cli11 \ utf8cpp>0:devel/utf8cpp \ fast_float>0:math/fast_float \ nlohmann-json>0:devel/nlohmann-json \ vulkan-headers>0:graphics/vulkan-headers \ ${LOCALBASE}/include/exprtk.hpp:math/exprtk \ ${PYTHON_SITELIBDIR}/matplotlib/pyplot.py:math/py-matplotlib@${PY_FLAVOR} LIB_DEPENDS= libhdf5.so:science/hdf5 \ libpng.so:graphics/png \ libtiff.so:graphics/tiff \ libfreetype.so:print/freetype2 \ libexpat.so:textproc/expat2 \ libjbig.so:graphics/jbigkit \ liborc-0.4.so:devel/orc \ libpcre.so:devel/pcre \ libicuuc.so:devel/icu \ libffi.so:devel/libffi \ libtbb.so:devel/onetbb \ libogg.so:audio/libogg \ libgl2ps.so:print/gl2ps \ libOT.so:math/openturns \ libgdal.so:graphics/gdal \ libgeos.so:graphics/geos \ libhpdf.so:print/libharu \ libproj.so:graphics/proj \ libpdalcpp.so:math/pdal \ libdrm.so:graphics/libdrm \ libcgns.so:science/cgnslib \ liblz4.so:archivers/liblz4 \ libverdict.so:math/verdict \ libnetcdf.so:science/netcdf \ libjsoncpp.so:devel/jsoncpp \ libprotobuf.so:devel/protobuf \ libpugixml.so:textproc/pugixml \ libavutil.so:multimedia/ffmpeg \ libcgraph.so:graphics/graphviz \ libxkbcommon.so:x11/libxkbcommon \ libtheora.so:multimedia/libtheora \ libgeotiff.so:graphics/libgeotiff \ libboost_thread.so:devel/boost-libs \ libfontconfig.so:x11-fonts/fontconfig \ libdouble-conversion.so:devel/double-conversion RUN_DEPENDS= ${PYNUMPY} \ bash:shells/bash \ vtk${VTK_VER:R}>0:math/vtk${VTK_VER:R} \ ${PYTHON_SITELIBDIR}/matplotlib/pyplot.py:math/py-matplotlib@${PY_FLAVOR} USES= cmake compiler:c++17-lang desktop-file-utils eigen:3 fortran gl gnome \ jpeg localbase pkgconfig python qt:6 shebangfix sqlite tar:xz xorg USE_GL= glew opengl USE_GNOME= libxml2 USE_QT= 5compat base svg tools webengine #buildtools:build core gui help network opengl qmake:build sql svg \ # webengine widgets x11extras glew xmlpatterns USE_XORG= ice sm x11 xau xcb xcursor xdamage xdmcp xext xfixes xorgproto xrender \ xxf86vm USE_LDCONFIG= yes CFLAGS+= -Wno-missing-template-arg-list-after-template-kw \ -I${WRKSRC}/Clients/ParaView/Documentation CMAKE_ARGS+= -DPARAVIEW_BUILD_SHARED_LIBS=ON \ -DPARAVIEW_BUILD_WITH_EXTERNAL=ON \ -DCMAKE_CXX_STANDARD=17 \ -DPARAVIEW_USE_PYTHON:BOOL=ON \ -DPARAVIEW_ENABLE_FFMPEG:BOOL=ON \ -DPARAVIEW_ENABLE_LAS:BOOL=OFF \ -DPARAVIEW_ENABLE_WEB:BOOL=ON \ -DPARAVIEW_ENABLE_GDAL:BOOL=ON \ -DPARAVIEW_ENABLE_PDAL:BOOL=ON \ -DPARAVIEW_ENABLE_OPENTURNS:BOOL=ON \ -DPARAVIEW_ENABLE_MOTIONFX:BOOL=ON \ -DPARAVIEW_ENABLE_XDMF2:BOOL=ON \ -DPARAVIEW_ENABLE_XDMF3:BOOL=ON \ -DPARAVIEW_USE_QT:BOOL=ON \ -DPARAVIEW_BUILD_DEVELOPER_DOCUMENTATION:BOOL=OFF \ -DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION:BOOL=OFF \ -DVTK_FORBID_DOWNLOADS:BOOL=OFF \ -DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T=1 \ -DVTK_MODULE_USE_EXTERNAL_VTK_fmt:BOOL=OFF \ -DVTK_MODULE_USE_EXTERNAL_VTK_ioss:BOOL=OFF \ -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl:BOOL=OFF \ -DVTK_MODULE_USE_EXTERNAL_VTK_token:BOOL=OFF \ -DExternalData_OBJECT_STORES="${WRKDIR}/VTK/ExternalData/MD5" \ -DFREETYPE_INCLUDE_DIRS="${LOCALBASE}/include/freetype2" # TODO: port Viskores - https://viskores.org/ CMAKE_ARGS+= -DPARAVIEW_USE_VISKORES:BOOL=OFF # To enable external VTK, it should be configured with several modules # -DVTK_MODULE_ENABLE_VTK_xxx=WANT CMAKE_ARGS+= -DPARAVIEW_USE_EXTERNAL_VTK:BOOL=OFF .if !defined(MAINTAINER_MODE) CMAKE_ARGS+= -DVTK_FORBID_DOWNLOADS:BOOL=ON .endif MAKE_ENV= XDG_CONFIG_HOME=${WRKDIR} USE_CXXSTD= c++17 SHEBANG_GLOB= *.py SHEBANG_FILES= VTK/Examples/SearchScript.sh \ VTK/Utilities/Maintenance/*.sh \ Clients/CommandLineExecutables/paraview-config.in OPTIONS_DEFINE= DOCS EXAMPLES OMPI OSMESA TEST OPTIONS_SUB= yes OMPI_DESC= OpenMPI (Message Passing Interface) support OSMESA_DESC= Use Mesa for off-screen rendering # mpi4py and other programs must be compiled against the same MPI provider OMPI_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpi4py>=0:net/py-mpi4py@${PY_FLAVOR} OMPI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpi4py>=0:net/py-mpi4py@${PY_FLAVOR} OMPI_USES= mpi:openmpi OMPI_CMAKE_ON= -DPARAVIEW_USE_MPI:BOOL=ON OMPI_CMAKE_OFF= -DPARAVIEW_USE_MPI:BOOL=OFF OSMESA_LIB_DEPENDS= libOSMesa.so:graphics/libosmesa OSMESA_USES_OFF= desktop-file-utils OSMESA_CMAKE_BOOL= VTK_OPENGL_HAS_OSMESA OSMESA_CMAKE_ON= -DVTK_USE_X:BOOL="OFF" \ -DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \ -DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so OSMESA_CMAKE_OFF= -DVTK_USE_X:BOOL="ON" EXAMPLES_CMAKE_BOOL= PARAVIEW_ENABLE_EXAMPLES PORTEXAMPLES= * TEST_CMAKE_ON= -DPARAVIEW_BUILD_TESTING=WANT # PARAVIEW_BUILD_VTK_TESTING requires SCN https://pypi.org/project/scn/ # -DPARAVIEW_BUILD_VTK_TESTING=WANT # ADIOS2 requires MPICH, not OpenMPI #LIB_DEPENDS+= libadios2_c.so:misc/adios2 #CMAKE_ARGS+= -DPARAVIEW_ENABLE_ADIOS2:BOOL=ON # Missing GenericIO for CosmoTools #CMAKE_ARGS+= -DPARAVIEW_ENABLE_COSMOTOOLS:BOOL=ON # Errors with VisItBridge / VisItLib #CMAKE_ARGS+= -DPARAVIEW_ENABLE_VISITBRIDGE:BOOL=ON # MomentInvariants needs to download a module #CMAKE_ARGS+= -DPARAVIEW_ENABLE_MOMENTINVARIANTS:BOOL=ON # No package for graphics/ospray #LIB_DEPENDS+= libospray.so:graphics/ospray #CMAKE_ARGS+= -DPARAVIEW_ENABLE_RAYTRACING PLIST_SUB+= VERMAJORMINOR=${PARAVIEW_VER} VTK9_CONFLICTS= vtk.py vtkmodules/__init__.py vtkmodules/all.py \ vtkmodules/gtk vtkmodules/numpy_interface \ vtkmodules/qt vtkmodules/test vtkmodules/tk \ vtkmodules/util vtkmodules/wx vtkmodules/generate_pyi.py \ vtkmodules/web/errors.py pre-configure: ${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \ ${PATCH_WRKSRC}/VTK/IO/Image/vtkPNGReader.cxx ${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' \ ${PATCH_WRKSRC}/VTK/Utilities/Maintenance/vtk_site_history.py post-install: # vtk9 is not a real run dependency, but it installs several common files .for py in ${VTK9_CONFLICTS} ${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/${py} .endfor post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/Examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} .include <./Makefile.version> .include <../../math/vtk9/Makefile.version> .include diff --git a/science/py-vedo/Makefile b/science/py-vedo/Makefile index d5ab3ddf354d..6f620f799b36 100644 --- a/science/py-vedo/Makefile +++ b/science/py-vedo/Makefile @@ -1,38 +1,39 @@ PORTNAME= vedo DISTVERSION= 2025.5.4 +PORTREVISION= 1 CATEGORIES= science graphics python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Python module for scientific analysis and visualization of 3D objects WWW= https://vedo.embl.es/ \ https://github.com/marcomusy/vedo LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \ vtk${VTK_VER:R}>0:math/vtk${VTK_VER:R} \ bash:shells/bash USES= python shebangfix USE_PYTHON= pep517 concurrent autoplist SHEBANG_GLOB= *.sh TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} NO_ARCH= yes do-test: # run some examples as tests .for example in advanced/interpolate_scalar3.py advanced/spline_draw1.py advanced/warp6.py simulations/optics_main3.py @${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${WRKSRC}/examples/${example} .endfor .include <../../math/vtk9/Makefile.version> .include