git: 33d6bd6dbce3 - main - graphics/filament: update 1.74.1 → 1.77.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Sep 2026 02:59:21 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=33d6bd6dbce37bf0ce6332da6d0a0de2a5c96453
commit 33d6bd6dbce37bf0ce6332da6d0a0de2a5c96453
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-17 02:57:50 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-17 02:58:58 +0000
graphics/filament: update 1.74.1 → 1.77.0
ChangeLog: https://github.com/google/filament/releases/tag/v1.77.0
---
graphics/filament/Makefile | 2 +-
graphics/filament/distinfo | 6 +--
.../patch-filament_backend_src_PlatformFactory.cpp | 55 ++++++++++++++++++----
graphics/filament/pkg-plist | 9 ++--
4 files changed, 57 insertions(+), 15 deletions(-)
diff --git a/graphics/filament/Makefile b/graphics/filament/Makefile
index 79bbd78c5b5b..92c4283b450c 100644
--- a/graphics/filament/Makefile
+++ b/graphics/filament/Makefile
@@ -1,6 +1,6 @@
PORTNAME= filament
DISTVERSIONPREFIX= v
-DISTVERSION= 1.74.1
+DISTVERSION= 1.77.0
CATEGORIES= graphics
MAINTAINER= yuri@FreeBSD.org
diff --git a/graphics/filament/distinfo b/graphics/filament/distinfo
index 4b133c54e7e7..4c6bf862634c 100644
--- a/graphics/filament/distinfo
+++ b/graphics/filament/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1785390087
-SHA256 (google-filament-v1.74.1_GH0.tar.gz) = 2dd41a690325e0e9d63e1f5a50263fba949076801bf40458205a41ea488cc5bb
-SIZE (google-filament-v1.74.1_GH0.tar.gz) = 679586176
+TIMESTAMP = 1789570393
+SHA256 (google-filament-v1.77.0_GH0.tar.gz) = cda68596471e2446aef3484ed2cf1a6a68d5cd40019c75a23db79ebf20c2d6d2
+SIZE (google-filament-v1.77.0_GH0.tar.gz) = 827803225
diff --git a/graphics/filament/files/patch-filament_backend_src_PlatformFactory.cpp b/graphics/filament/files/patch-filament_backend_src_PlatformFactory.cpp
index bded9df8b8d5..a8d8c67c72bf 100644
--- a/graphics/filament/files/patch-filament_backend_src_PlatformFactory.cpp
+++ b/graphics/filament/files/patch-filament_backend_src_PlatformFactory.cpp
@@ -1,15 +1,54 @@
---- filament/backend/src/PlatformFactory.cpp.orig 2025-07-14 23:11:31 UTC
+-- Add FreeBSD support for Vulkan, WebGPU, and OpenGL platform creation in PlatformFactory
+-- Without this, PlatformFactory::create fails to instantiate the backend on FreeBSD
+
+--- filament/backend/src/PlatformFactory.cpp.orig 2026-09-15 21:05:50 UTC
+++ filament/backend/src/PlatformFactory.cpp
-@@ -42,7 +42,7 @@
+@@ -26,7 +26,7 @@
+ #include "backend/platforms/WebGPUPlatformAndroid.h"
+ #elif defined(__APPLE__)
+ #include "backend/platforms/WebGPUPlatformApple.h"
+- #elif defined(__linux__)
++ #elif defined(__linux__) || defined(__FreeBSD__)
+ #include "backend/platforms/WebGPUPlatformLinux.h"
+ #elif defined(WIN32)
+ #include "backend/platforms/WebGPUPlatformWindows.h"
+@@ -50,7 +50,7 @@
+ #else
#include <backend/platforms/PlatformCocoaGL.h>
#endif
- #endif
--#elif defined(__linux__)
-+#elif defined(__linux__) || defined(__FreeBSD__)
- #if defined(FILAMENT_SUPPORTS_X11)
- #if defined(FILAMENT_SUPPORTS_OPENGL) && !defined(FILAMENT_USE_EXTERNAL_GLES3)
+- #elif defined(__linux__)
++ #elif defined(__linux__) || defined(__FreeBSD__)
+ #if defined(FILAMENT_SUPPORTS_X11)
#include "backend/platforms/PlatformGLX.h"
-@@ -152,7 +152,7 @@ Platform* PlatformFactory::create(Backend* backend) no
+ #elif defined(FILAMENT_SUPPORTS_EGL_ON_LINUX)
+@@ -70,7 +70,7 @@
+ #include "backend/platforms/VulkanPlatformAndroid.h"
+ #elif defined(__APPLE__)
+ #include "backend/platforms/VulkanPlatformApple.h"
+- #elif defined(__linux__)
++ #elif defined(__linux__) || defined(__FreeBSD__)
+ #include "backend/platforms/VulkanPlatformLinux.h"
+ #elif defined(WIN32)
+ #include "backend/platforms/VulkanPlatformWindows.h"
+@@ -124,7 +124,7 @@ Platform* PlatformFactory::create(Backend* backend) no
+ return new VulkanPlatformAndroid();
+ #elif defined(__APPLE__)
+ return new VulkanPlatformApple();
+- #elif defined(__linux__)
++ #elif defined(__linux__) || defined(__FreeBSD__)
+ return new VulkanPlatformLinux();
+ #elif defined(WIN32)
+ return new VulkanPlatformWindows();
+@@ -141,7 +141,7 @@ Platform* PlatformFactory::create(Backend* backend) no
+ return new WebGPUPlatformAndroid();
+ #elif defined(__APPLE__)
+ return new WebGPUPlatformApple();
+- #elif defined(__linux__)
++ #elif defined(__linux__) || defined(__FreeBSD__)
+ return new WebGPUPlatformLinux();
+ #elif defined(WIN32)
+ return new WebGPUPlatformWindows();
+@@ -175,7 +175,7 @@ Platform* PlatformFactory::create(Backend* backend) no
#else
return new PlatformCocoaGL();
#endif
diff --git a/graphics/filament/pkg-plist b/graphics/filament/pkg-plist
index ddd2b0c3c006..3d25dbc4f3f1 100644
--- a/graphics/filament/pkg-plist
+++ b/graphics/filament/pkg-plist
@@ -64,8 +64,6 @@ include/camutils/Bookmark.h
include/camutils/Manipulator.h
include/camutils/compiler.h
include/filamat/Enums.h
-include/filament/FramePacer.h
-include/filament/FramePipelineEstimator.h
include/filamat/MaterialBuilder.h
include/filamat/Package.h
include/filament-generatePrefilterMipmap/generatePrefilterMipmap.h
@@ -84,6 +82,8 @@ include/filament/Exposure.h
include/filament/Fence.h
include/filament/FilamentAPI.h
include/filament/FrameHistoryStream.h
+include/filament/FramePacer.h
+include/filament/FramePipelineEstimator.h
include/filament/Frustum.h
include/filament/IndexBuffer.h
include/filament/IndirectLight.h
@@ -201,8 +201,8 @@ include/utils/algorithm.h
include/utils/bitset.h
include/utils/compiler.h
include/utils/compressed_pair.h
-include/utils/debug/Mutex.h
include/utils/debug.h
+include/utils/debug/Mutex.h
include/utils/generic/Mutex.h
include/utils/getopt.h
include/utils/memalign.h
@@ -216,6 +216,7 @@ include/viewer/RemoteServer.h
include/viewer/Settings.h
include/viewer/ViewerGui.h
lib/libabseil.a
+lib/libassimp.a
lib/libbackend.a
lib/libbasis_transcoder.a
lib/libbluegl.a
@@ -229,6 +230,8 @@ lib/libfilamat.a
lib/libfilament-generatePrefilterMipmap.a
lib/libfilament-iblprefilter.a
lib/libfilament.a
+%%SAMPLES%%lib/libfilamentapp-resources.a
+%%SAMPLES%%lib/libfilamentapp.a
lib/libfilameshio.a
lib/libgeometry.a
lib/libgltfio.a