Bug 299341 - multimedia/obs-studio: enable cef framework
Summary: multimedia/obs-studio: enable cef framework
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on: 299048
Blocks:
  Show dependency tree / graph
 
Reported: 2026-10-12 18:32 UTC by Martin Filla
Modified: 2026-10-16 02:09 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
0001-obs-studio-enable-CEF-framework.patch (19.83 KB, patch)
2026-10-12 18:34 UTC, Martin Filla
freebsd: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Filla 2026-10-12 18:32:28 UTC

    
Comment 1 Martin Filla 2026-10-12 18:34:20 UTC
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.
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2026-10-16 02:08:17 UTC
Committed.

Thank you for your work!
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-10-16 02:09:20 UTC
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(-)