summaryrefslogtreecommitdiff
path: root/graphics/f3d
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/f3d')
-rw-r--r--graphics/f3d/Makefile23
-rw-r--r--graphics/f3d/distinfo8
-rw-r--r--graphics/f3d/files/patch-external_dmon_dmon.h6
-rw-r--r--graphics/f3d/pkg-plist28
4 files changed, 25 insertions, 40 deletions
diff --git a/graphics/f3d/Makefile b/graphics/f3d/Makefile
index b3fcee6e8918..07ac4520f1b6 100644
--- a/graphics/f3d/Makefile
+++ b/graphics/f3d/Makefile
@@ -1,12 +1,9 @@
PORTNAME= f3d
DISTVERSIONPREFIX= v
-DISTVERSION= 3.0.0
+DISTVERSION= 3.2.0
PORTREVISION= 1
CATEGORIES= graphics
-PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
-PATCHFILES+= af299dfc670160f01886461b5904797f0aa67cb1.patch:-p1 # https://github.com/f3d-app/f3d/pull/1936
-
MAINTAINER= yuri@FreeBSD.org
COMMENT= Fast and minimalist 3D viewer
WWW= https://f3d.app/ \
@@ -15,7 +12,7 @@ WWW= https://f3d.app/ \
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
-LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg4 \
+LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
libfontconfig.so:x11-fonts/fontconfig \
libfreeimage.so:graphics/freeimage \
libfreetype.so:print/freetype2 \
@@ -43,8 +40,8 @@ LDFLAGS+= -linotify
# dependency descroptions are in https://f3d.app/doc/dev/BUILD.html
OPTIONS_GROUP= MODULES PLUGINS
OPTIONS_GROUP_MODULES= EXTERNAL_RENDERING RAYTRACING
-OPTIONS_GROUP_PLUGINS= ALEMBIC ASSIMP DRACO EXODUS OCCT
-OPTIONS_DEFAULT= ALEMBIC ASSIMP DRACO EXODUS OCCT
+OPTIONS_GROUP_PLUGINS= ALEMBIC ASSIMP DRACO HDF OCCT VDB
+OPTIONS_DEFAULT= ALEMBIC ASSIMP DRACO HDF OCCT # VDB
OPTIONS_SUB= yes
MODULES_DESC= Build modules:
@@ -52,7 +49,7 @@ MODULES_DESC= Build modules:
ALEMBIC_DESC= Alembic plugin (for ABC files)
ALEMBIC_CMAKE_BOOL= F3D_PLUGIN_BUILD_ALEMBIC
ALEMBIC_LIB_DEPENDS= libAlembic.so:graphics/alembic \
- libImath-3_1.so:math/Imath
+ libImath.so:math/Imath
ASSIMP_DESC= Assimp plugin (for FBX, OFF, DAE and DXF files)
ASSIMP_CMAKE_BOOL= F3D_PLUGIN_BUILD_ASSIMP
@@ -62,19 +59,23 @@ DRACO_DESC= Draco plugin
DRACO_CMAKE_BOOL= F3D_PLUGIN_BUILD_DRACO
DRACO_LIB_DEPENDS= libdraco.so:archivers/draco
-EXODUS_DESC= ExodusII plugin
-EXODUS_CMAKE_BOOL= F3D_PLUGIN_BUILD_EXODUS
-
EXTERNAL_RENDERING_DESC= External rendering module
EXTERNAL_RENDERING_CMAKE_BOOL= F3D_MODULE_EXTERNAL_RENDERING
EXTERNAL_RENDERING_BROKEN= Requires VTK::RenderingExternal enabled in VTK
+HDF_DESC= Support for VTKHDF (.vtkhdf), ExodusII (.ex2), and NetCDF (.nc) file formats
+HDF_CMAKE_BOOL= F3D_PLUGIN_BUILD_HDF
+
OCCT_DESC= OpenCASCADE plugin (for STEP and IGES files)
OCCT_USES= localbase:ldflags
OCCT_CMAKE_BOOL= F3D_PLUGIN_BUILD_OCCT
OCCT_LIB_DEPENDS= libTKBRep.so:cad/opencascade
OCCT_CMAKE_ON= -DOpenCASCADE_DIR=${LOCALBASE}/lib/cmake
+VDB_DESC= VDB plugin
+VDB_CMAKE_BOOL= F3D_PLUGIN_BUILD_VDB
+VDB_BROKEN= depends on the VTK module IOOpenVD that can't be enabled because OpenVDB doesn't install required cmake files, see https://github.com/AcademySoftwareFoundation/openvdb/issues/2058
+
RAYTRACING_DESC= Raytracing module
RAYTRACING_CMAKE_BOOL= F3D_MODULE_RAYTRACING
RAYTRACING_BROKEN= Requires VTK::RenderingRayTracing enabled in VTK
diff --git a/graphics/f3d/distinfo b/graphics/f3d/distinfo
index 507b1521ad30..4b7c92357910 100644
--- a/graphics/f3d/distinfo
+++ b/graphics/f3d/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1737405692
-SHA256 (f3d-app-f3d-v3.0.0_GH0.tar.gz) = 7ea83830d1c8158a1f01e5ac9edd00b81de3e0b4cbdbc4a4bb60a113728b7b7a
-SIZE (f3d-app-f3d-v3.0.0_GH0.tar.gz) = 59780102
-SHA256 (af299dfc670160f01886461b5904797f0aa67cb1.patch) = 9633f417ee2a23772c99a77ad25dc3d2e08a3e8b3ab299b832b88ab8ae71705d
-SIZE (af299dfc670160f01886461b5904797f0aa67cb1.patch) = 820
+TIMESTAMP = 1752141480
+SHA256 (f3d-app-f3d-v3.2.0_GH0.tar.gz) = 2a3cff123821be41d99489e080a7153812e58a86598fa9f4988099660bf6a947
+SIZE (f3d-app-f3d-v3.2.0_GH0.tar.gz) = 68125944
diff --git a/graphics/f3d/files/patch-external_dmon_dmon.h b/graphics/f3d/files/patch-external_dmon_dmon.h
index d6239980cb57..a125e1d301a3 100644
--- a/graphics/f3d/files/patch-external_dmon_dmon.h
+++ b/graphics/f3d/files/patch-external_dmon_dmon.h
@@ -1,6 +1,6 @@
---- external/dmon/dmon.h.orig 2024-04-03 12:42:33 UTC
+--- external/dmon/dmon.h.orig 2025-04-16 06:15:03 UTC
+++ external/dmon/dmon.h
-@@ -137,7 +137,7 @@ DMON_API_DECL void dmon_unwatch(dmon_watch_id id);
+@@ -142,7 +142,7 @@ DMON_API_DECL void dmon_unwatch(dmon_watch_id id);
#if defined(_WIN32) || defined(_WIN64)
# undef DMON_OS_WINDOWS
# define DMON_OS_WINDOWS 1
@@ -9,7 +9,7 @@
# undef DMON_OS_LINUX
# define DMON_OS_LINUX 1
#elif defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__)
-@@ -167,7 +167,7 @@ DMON_API_DECL void dmon_unwatch(dmon_watch_id id);
+@@ -172,7 +172,7 @@ DMON_API_DECL void dmon_unwatch(dmon_watch_id id);
# include <dirent.h>
# include <errno.h>
# include <fcntl.h>
diff --git a/graphics/f3d/pkg-plist b/graphics/f3d/pkg-plist
index 0e39dc2b0bf6..77289080d9c5 100644
--- a/graphics/f3d/pkg-plist
+++ b/graphics/f3d/pkg-plist
@@ -13,10 +13,6 @@ include/f3d/reader.h
include/f3d/scene.h
include/f3d/types.h
include/f3d/utils.h
-include/f3d/vtkF3DFaceVaryingPointDispatcher.h
-include/f3d/vtkF3DGLTFImporter.h
-include/f3d/vtkF3DImporter.h
-include/f3d/vtkextModule.h
include/f3d/window.h
lib/cmake/f3d/application-config.cmake
lib/cmake/f3d/f3dConfig.cmake
@@ -27,24 +23,14 @@ lib/cmake/f3d/f3dLibraryTargets.cmake
lib/cmake/f3d/f3dTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/f3d/f3dTargets.cmake
lib/cmake/f3d/library-config.cmake
-lib/cmake/f3d_vtkext/f3d_vtkext-targets-%%CMAKE_BUILD_TYPE%%.cmake
-lib/cmake/f3d_vtkext/f3d_vtkext-targets.cmake
-lib/cmake/f3d_vtkext/f3d_vtkext-vtk-module-properties.cmake
lib/libf3d.so
lib/libf3d.so.3
-lib/libf3d.so.3.0
+lib/libf3d.so.3.2
lib/libvtkext.so
-%%ALEMBIC%%lib/libvtkextAlembic.a
-%%ASSIMP%%lib/libvtkextAssimp.a
-%%DRACO%%lib/libvtkextDraco.a
-lib/libvtkextNative.a
-%%OCCT%%lib/libvtkextOCCT.a
-lib/libvtkextPrivate.a
-lib/vtk/hierarchy/f3d_vtkext/vtkext-hierarchy.txt
%%ALEMBIC%%share/applications/f3d-plugin-alembic.desktop
%%ASSIMP%%share/applications/f3d-plugin-assimp.desktop
%%DRACO%%share/applications/f3d-plugin-draco.desktop
-%%EXODUS%%share/applications/f3d-plugin-exodus.desktop
+%%HDF%%share/applications/f3d-plugin-hdf.desktop
share/applications/f3d-plugin-native.desktop
%%OCCT%%share/applications/f3d-plugin-occt.desktop
share/applications/f3d.desktop
@@ -55,20 +41,20 @@ share/doc/F3D/THIRD_PARTY_LICENSES.md
%%ALEMBIC%%%%DATADIR%%/configs/config.d/10_alembic.json
%%ASSIMP%%%%DATADIR%%/configs/config.d/10_assimp.json
%%DRACO%%%%DATADIR%%/configs/config.d/10_draco.json
-%%EXODUS%%%%DATADIR%%/configs/config.d/10_exodus.json
+%%HDF%%%%DATADIR%%/configs/config.d/10_hdf.json
%%DATADIR%%/configs/config.d/10_native.json
%%OCCT%%%%DATADIR%%/configs/config.d/10_occt.json
%%DATADIR%%/configs/thumbnail.d/05_all.json
%%ALEMBIC%%%%DATADIR%%/configs/thumbnail.d/10_alembic.json
%%ASSIMP%%%%DATADIR%%/configs/thumbnail.d/10_assimp.json
%%DRACO%%%%DATADIR%%/configs/thumbnail.d/10_draco.json
-%%EXODUS%%%%DATADIR%%/configs/thumbnail.d/10_exodus.json
+%%HDF%%%%DATADIR%%/configs/thumbnail.d/10_hdf.json
%%DATADIR%%/configs/thumbnail.d/10_native.json
%%OCCT%%%%DATADIR%%/configs/thumbnail.d/10_occt.json
%%ALEMBIC%%%%DATADIR%%/plugins/alembic.json
%%ASSIMP%%%%DATADIR%%/plugins/assimp.json
%%DRACO%%%%DATADIR%%/plugins/draco.json
-%%EXODUS%%%%DATADIR%%/plugins/exodus.json
+%%HDF%%%%DATADIR%%/plugins/hdf.json
%%DATADIR%%/plugins/native.json
%%OCCT%%%%DATADIR%%/plugins/occt.json
share/fish/vendor_completions.d/f3d.fish
@@ -86,13 +72,13 @@ share/mime/packages/f3d-3d-image-formats.xml
%%ALEMBIC%%share/mime/packages/f3d-alembic-formats.xml
%%ASSIMP%%share/mime/packages/f3d-assimp-formats.xml
%%DRACO%%share/mime/packages/f3d-draco-formats.xml
-%%EXODUS%%share/mime/packages/f3d-exodus-formats.xml
%%OCCT%%share/mime/packages/f3d-occt-formats.xml
+%%HDF%%share/mime/packages/f3d-hdf-formats.xml
share/mime/packages/f3d-vtk-formats.xml
%%ALEMBIC%%share/thumbnailers/f3d-plugin-alembic.thumbnailer
%%ASSIMP%%share/thumbnailers/f3d-plugin-assimp.thumbnailer
%%DRACO%%share/thumbnailers/f3d-plugin-draco.thumbnailer
-%%EXODUS%%share/thumbnailers/f3d-plugin-exodus.thumbnailer
+%%HDF%%share/thumbnailers/f3d-plugin-hdf.thumbnailer
share/thumbnailers/f3d-plugin-native.thumbnailer
%%OCCT%%share/thumbnailers/f3d-plugin-occt.thumbnailer
share/zsh/site-functions/_f3d