From a6d6f182fb2bd1682cd044bc236176ae444055e9 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Sat, 16 Jun 2018 02:01:57 +0300 Subject: [PATCH] media-plugins/gst-plugins-gtk: GStreamer video sink rendering on a GtkWidget This was previously part of gst-plugins-bad via USE=gtk, but has been promoted to gst-plugins-good upstream and the new version is packaged properly as a split package, which also nicely keeps away the opengl flags sync mess from gst-plugins-good main package (very few packages use gtksink to date). Due to the code being part of gst-plugins-bad before, its KEYWORDS is copied for faster migration of consumers away from gst-plugins-bad[gtk] to the new package. Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- media-plugins/gst-plugins-gtk/Manifest | 1 + .../gst-plugins-gtk-1.14.1.ebuild | 31 +++++++++++++++++++ media-plugins/gst-plugins-gtk/metadata.xml | 20 ++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 media-plugins/gst-plugins-gtk/Manifest create mode 100644 media-plugins/gst-plugins-gtk/gst-plugins-gtk-1.14.1.ebuild create mode 100644 media-plugins/gst-plugins-gtk/metadata.xml diff --git a/media-plugins/gst-plugins-gtk/Manifest b/media-plugins/gst-plugins-gtk/Manifest new file mode 100644 index 0000000000000..d062a22bd847d --- /dev/null +++ b/media-plugins/gst-plugins-gtk/Manifest @@ -0,0 +1 @@ +DIST gst-plugins-good-1.14.1.tar.xz 3776168 BLAKE2B 5b17ac49d5bae423ee887f1516ba8bfb542acb17e3f304f489dddbaa728761ee51a08e67bd10a9981f53b5b8424d8013d1723fcbbf6e06d34a39548868d34f85 SHA512 b52d3214f2d32f263637cb9f0838284483e15b8d20bf36d64c349e99b481095734a4dd2c2421176540dfe5129ecc1acc101b89cc898b4773f0f736e8e962b070 diff --git a/media-plugins/gst-plugins-gtk/gst-plugins-gtk-1.14.1.ebuild b/media-plugins/gst-plugins-gtk/gst-plugins-gtk-1.14.1.ebuild new file mode 100644 index 0000000000000..c4b5c5af5433a --- /dev/null +++ b/media-plugins/gst-plugins-gtk/gst-plugins-gtk-1.14.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GST_ORG_MODULE=gst-plugins-good + +inherit gstreamer + +DESCRIPTION="Video sink plugin for GStreamer that renders to a GtkWidget" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="+egl gles2 +opengl wayland +X" # Keep default IUSE mirrored with gst-plugins-base +# egl, wayland and X only matters if gst-plugins-bad is build with USE=opengl and/or USE=gles2 +# We mirror egl/gles2/opengl/wayland/X due to automagic detection from gstreamer-gl.pc variables; +# we don't care about matching egl/wayland/X if both opengl and gles2 are disabled here and on +# gst-plugins-base, but no way to express that. + +# We only need gtk+ matching backend flags when GL is enabled +GL_DEPS=" + >=x11-libs/gtk+-3.15:3[X?,wayland?,${MULTILIB_USEDEP}] +" +RDEPEND=" + >=media-libs/gst-plugins-base-${PV}:${SLOT}[${MULTILIB_USEDEP},egl=,gles2=,opengl=,wayland=,X=] + >=x11-libs/gtk+-3.15:3[${MULTILIB_USEDEP}] + gles2? ( ${GL_DEPS} ) + opengl? ( ${GL_DEPS} ) + + ! + + + + gstreamer@gentoo.org + GStreamer package maintainers + + + Enable EGL platform usage + Enable gtkglsink OpenGL sink based on GLESv2 API + Enable gtkglsink OpenGL sink based on desktop OpenGL API + + + GStreamer plugin for rendering video into a GtkWidget. + + Includes the following elements: + * gtksink - A video sink that renders to a GtkWidget + * gtkglsink - A video sink that renders to a GtkWidget using OpenGL (built only with USE=opengl or USE=gles2) + +