logo

overlay

My own overlay for experimentations, use with caution, no support is provided
commit: be84e9e049934a20af930fd63445c95994488b6e
parent: a023a13413bc9a91bdd060529b6a92575fc097aa
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 13 Jun 2020 11:47:48 +0200

x11-libs/gtk+: Add support for media backends

Diffstat:

Mx11-libs/gtk+/gtk+-3.98.5.ebuild19++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/x11-libs/gtk+/gtk+-3.98.5.ebuild b/x11-libs/gtk+/gtk+-3.98.5.ebuild @@ -11,7 +11,7 @@ HOMEPAGE="https://www.gtk.org/" LICENSE="LGPL-2+" SLOT="4" -IUSE="broadway colord cups cloudprint cloudproviders examples gtk-doc +introspection test vim-syntax wayland +X xinerama tracker3 vulkan profiler" +IUSE="broadway colord cups cloudprint cloudproviders examples ffmpeg +gstreamer gtk-doc +introspection test vim-syntax wayland +X xinerama tracker3 vulkan profiler" REQUIRED_USE=" || ( wayland X ) xinerama? ( X ) @@ -31,6 +31,7 @@ BDEPEND=" dev-libs/libxslt " +# gstreamer-player-1.0.pc => media-libs/gst-plugins-bad DEPEND=" >=dev-libs/glib-2.63.1:2[${MULTILIB_USEDEP}] >=x11-libs/pango-1.45.0[introspection?,${MULTILIB_USEDEP}] @@ -69,6 +70,10 @@ DEPEND=" cloudproviders? ( dev-libs/libcloudproviders ) profiler? ( dev-util/sysprof-capture ) + ffmpeg? ( media-video/ffmpeg:= ) + + gstreamer? ( >=media-libs/gst-plugins-bad-1.12.3 ) + cups? ( net-print/cups ) cloudprint? ( net-libs/rest:0.7 @@ -87,8 +92,6 @@ multilib_src_configure() { $(meson_use wayland wayland-backend) $(meson_use broadway broadway-backend) - -Dmedia="none" - -Dvulkan=$(usex vulkan) -Dxinerama=$(usex xinerama) $(meson_use cloudproviders) @@ -99,6 +102,16 @@ multilib_src_configure() { -Dcolord=$(usex colord) ) + if use ffmpeg && use gstreamer; then + emesonargs+=( -Dmedia=ffmpeg,gstreamer ) + elif use ffmpeg; then + emesonargs+=( -Dmedia=ffmpeg ) + elif use gstreamer; then + emesonargs+=( -Dmedia=gstreamer ) + else + emesonargs+=( -Dmedia=none ) + fi + meson_src_configure }