clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
522 stars 29 forks source link

Add browser source support for OBS Studio + update #3162

Open K1ngfish3r opened 3 months ago

K1ngfish3r commented 3 months ago

The following contains notes for obs-studio's autospec

update from 30.1.2 to 30.2.2 URL https://github.com/obsproject/obs-studio/releases/download/30.2.2/OBS-Studio-30.2.2-Sources.tar.gz

update Fix-plugin-installation-path.patch

diff --git a/libobs/obs-nix.c b/libobs/obs-nix.c
index 77c36be5e..fe8a04813 100644
--- a/libobs/obs-nix.c
+++ b/libobs/obs-nix.c
@@ -51,7 +51,7 @@ const char *get_module_extension(void)

 static const char *module_bin[] = {
    "../../obs-plugins/64bit",
-   OBS_INSTALL_PREFIX "/" OBS_PLUGIN_DESTINATION,
+   OBS_PLUGIN_DESTINATION,
    FLATPAK_PLUGIN_PATH "/" OBS_PLUGIN_DESTINATION,
 };

options.conf remove existing archives and replace with archives = https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux_x86_64_v3.tar.xz ./cef use_ninja = true *optional

cmake_args

-DENABLE_BROWSER=ON
-DCEF_ROOT_DIR=../cef
-DENABLE_JACK=ON
-DENABLE_LIBFDK=ON
-DENABLE_SNDIO=ON
-DOBS_MULTIARCH_SUFFIX=64
-DOBS_VERSION_OVERRIDE="%{version}-%{release}"

trim dependency files buildreq_add

# This file contains additional build requirements that did not get
# picked up automatically. One name per line, no whitespace.
not-ffmpeg-dev
uthash-dev
v4l-utils-dev
pipewire-dev
nlohmann_json-dev
QR-Code-generator-dev
websocketpp-dev
libajantv2-dev
libdatachannel-dev
nss-lib
nspr

pkgconfig_add

# This file contains additional pkgconfig build requirements that did
# not get picked up automatically. One name per line, no whitespace.
luajit
sndio
Qt6Svg
asio
srt
ffnvcodec

pkgconfig_ban

# This file contains pkgconfig build requirements that get picked up
# but are undesirable. One entry per line, no whitespace.
ajantv2
detours
libftl
libspeexdsp
libsrt
rnnoise
v4l-utils

image

bwarden commented 3 months ago

archives = https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux_x86_64_v3.tar.xz ./cef

That's probably going to be a non-starter. As expected, it's a bunch of precompiled binaries.