Created attachment 275633 [details] 0001-obs-studio-enable-CEF-framework.patch - The BROWSER option works now: it depends on www/cef and points the build at it (CEF_ROOT_DIR=${LOCALBASE}/lib/cef). It is on by default on amd64 and not offered where www/cef does not build. - Use the CMake switch obs-browser actually reads (ENABLE_BROWSER) and turn off the What's New dialog, which has no FreeBSD code path. - obs-browser: FreeBSD support in its CMake files and __linux__ code paths; load libcef.so from the CEF directory (RPATH) instead of copying CEF into lib/obs-plugins, and let CEF find its own locales; build with C++20 as the CEF 152 headers require; include <netinet/in.h> for sockaddr_in.
Committed. Thank you for your work!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=55d43c8efb2911c674a76ed5e3a7816f142f701a commit 55d43c8efb2911c674a76ed5e3a7816f142f701a Author: Martin Filla <freebsd@sysctl.cz> AuthorDate: 2026-10-12 18:29:35 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2026-10-16 02:08:19 +0000 obs-studio: add BROWSER option to enable CEF framework OBS studio can now display a web browser in it's streaming setup.. - The BROWSER option works now: it depends on www/cef and points the build at it (CEF_ROOT_DIR=${LOCALBASE}/lib/cef). It is on by default on amd64 and not offered where www/cef does not build. - Use the CMake switch obs-browser actually reads (ENABLE_BROWSER) and turn off the What's New dialog, which has no FreeBSD code path. - obs-browser: FreeBSD support in its CMake files and __linux__ code paths; load libcef.so from the CEF directory (RPATH) instead of copying CEF into lib/obs-plugins, and let CEF find its own locales; build with C++20 as the CEF 152 headers require; include <netinet/in.h> for sockaddr_in. PR: 299341 multimedia/obs-studio/Makefile | 19 ++++-- .../files/patch-cmake_finders_FindCEF.cmake (new) | 11 ++++ .../files/patch-cmake_linux_helpers.cmake (new) | 11 ++++ .../obs-studio/files/patch-plugins_CMakeLists.txt | 15 ++++- .../patch-plugins_obs-browser_CMakeLists.txt (new) | 19 ++++++ ...-plugins_obs-browser_cmake_os-linux.cmake (new) | 22 +++++++ ...gins_obs-browser_deps_ip-string-posix.cpp (new) | 11 ++++ ...lugins_obs-browser_obs-browser-plugin.cpp (new) | 20 ++++++ ...lugins_obs-browser_obs-browser-source.cpp (new) | 29 +++++++++ ...bs-browser_panel_browser-panel-client.cpp (new) | 11 ++++ ...-browser_panel_browser-panel-internal.hpp (new) | 11 ++++ ...ugins_obs-browser_panel_browser-panel.cpp (new) | 20 ++++++ multimedia/obs-studio/pkg-plist | 71 ++++++++++++++++++++++ 13 files changed, 262 insertions(+), 8 deletions(-)