summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/media-video/obs-studio/obs-studio-26.1.2-r1.exheres-0 (renamed from packages/media-video/obs-studio/obs-studio-26.1.2.exheres-0)0
-rw-r--r--packages/media-video/obs-studio/obs-studio.exlib47
2 files changed, 44 insertions, 3 deletions
diff --git a/packages/media-video/obs-studio/obs-studio-26.1.2.exheres-0 b/packages/media-video/obs-studio/obs-studio-26.1.2-r1.exheres-0
index 0b3d2219..0b3d2219 100644
--- a/packages/media-video/obs-studio/obs-studio-26.1.2.exheres-0
+++ b/packages/media-video/obs-studio/obs-studio-26.1.2-r1.exheres-0
diff --git a/packages/media-video/obs-studio/obs-studio.exlib b/packages/media-video/obs-studio/obs-studio.exlib
index e8b8e02d..23c964d2 100644
--- a/packages/media-video/obs-studio/obs-studio.exlib
+++ b/packages/media-video/obs-studio/obs-studio.exlib
@@ -1,17 +1,28 @@
# Copyright 2015 Jonathan Dahan <jonathan@jonathan.is>
# Distributed under the terms of the GNU General Public License v2
+OBS_BROWSER_VERSION="53cfefe74a2347e9054212bb4c014766e53ee5f4"
+# https://github.com/obsproject/obs-studio/blob/master/.github/workflows/main.yml#L19
+LINUX_CEF_BUILD_VERSION="4280"
+
require github [ user=obsproject ] cmake freedesktop-desktop gtk-icon-cache
-export_exlib_phases pkg_postinst pkg_postrm
+export_exlib_phases src_prepare pkg_postinst pkg_postrm
SUMMARY="Open source broadcasting software for live streaming and recording"
HOMEPAGE+=" https://obsproject.com"
+DOWNLOADS+="
+ browser-plugin? (
+ https://github.com/obsproject/obs-browser/archive/${OBS_BROWSER_VERSION}.tar.gz -> obs-browser-${OBS_BROWSER_VERSION}.tar.gz
+ https://cdn-fastly.obsproject.com/downloads/cef_binary_${LINUX_CEF_BUILD_VERSION}_linux64.tar.bz2
+ )
+"
LICENCES="GPL-2"
SLOT="0"
MYOPTIONS="
alsa
+ browser-plugin [[ description = [ Support for embedding websites, e.g. for stream alerts ] ]]
fdk-aac [[ description = [ Support for AAC encoding using the Frauenhofer AAC Codec Library ] ]]
jack
pulseaudio
@@ -44,6 +55,25 @@ DEPENDENCIES="
x11-libs/qtsvg:5
x11-libs/qtx11extras:5
alsa? ( sys-sound/alsa-lib )
+ browser-plugin? (
+ dev-libs/at-spi2-atk
+ dev-libs/at-spi2-core
+ dev-libs/atk
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ net-print/cups
+ sys-sound/alsa-lib
+ x11-dri/libdrm
+ x11-dri/mesa
+ x11-libs/cairo
+ x11-libs/pango
+ x11-libs/libXext
+ x11-libs/libXdamage
+ x11-libs/libxkbcommon
+ x11-libs/libXrandr
+ )
fdk-aac? ( media-libs/fdk-aac )
jack? ( media-sound/jack-audio-connection-kit )
pulseaudio? ( media-sound/pulseaudio )
@@ -67,8 +97,8 @@ DEPENDENCIES="
"
CMAKE_SRC_CONFIGURE_PARAMS=(
- -DBROWSER_AVAILABLE_INTERNAL:BOOL=FALSE
- -DBUILD_BROWSER:BOOL=FALSE
+ -DBROWSER_AVAILABLE_INTERNAL:BOOL=TRUE
+ -DCEF_ROOT_DIR:PATH="${WORKBASE}"/cef_binary_${LINUX_CEF_BUILD_VERSION}_linux64
-DCHECK_FOR_SERVICE_UPDATES:BOOL=FALSE
-DCMAKE_DISABLE_FIND_PACKAGE_ImageMagick:BOOL=TRUE
-DDEBUG_FFMPEG_MUX:BOOL=FALSE
@@ -86,6 +116,7 @@ CMAKE_SRC_CONFIGURE_PARAMS=(
)
CMAKE_SRC_CONFIGURE_OPTIONS=(
+ 'browser-plugin BUILD_BROWSER'
'!scripting DISABLE_LUA'
'!scripting DISABLE_PYTHON'
'!speex DISABLE_SPEEXDSP'
@@ -113,6 +144,16 @@ CMAKE_SRC_CONFIGURE_TESTS=(
'-DBUILD_TESTS:BOOL=TRUE -DBUILD_TESTS:BOOL=FALSE'
)
+obs-studio_src_prepare() {
+ cmake_src_prepare
+
+ # obs-browser
+ if option browser-plugin ; then
+ edo rmdir "${CMAKE_SOURCE}"/plugins/obs-browser
+ edo ln -s "${WORKBASE}"/obs-browser-${OBS_BROWSER_VERSION} "${CMAKE_SOURCE}"/plugins/obs-browser
+ fi
+}
+
obs-studio_pkg_postinst() {
freedesktop-desktop_pkg_postinst
gtk-icon-cache_pkg_postinst