From 3d1d175bc274a98ebd7e9da5d8718005d30bc236 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 18 Dec 2017 00:09:18 +0300 Subject: gstreamer vaapi plugin --- .../gst-plugins-vaapi/gst-plugins-vaapi-scm.ebuild | 68 ++++++++++++++++++++++ media-plugins/gst-plugins-vaapi/metadata.xml | 12 ++++ 2 files changed, 80 insertions(+) create mode 100644 media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-scm.ebuild create mode 100644 media-plugins/gst-plugins-vaapi/metadata.xml (limited to 'media-plugins') diff --git a/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-scm.ebuild b/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-scm.ebuild new file mode 100644 index 0000000..d9026b1 --- /dev/null +++ b/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-scm.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils multilib-minimal git-r3 + +#MY_PN="gstreamer-vaapi" +DESCRIPTION="Hardware accelerated video decoding through VA-API plugin for GStreamer" +HOMEPAGE="https://cgit.freedesktop.org/gstreamer/gstreamer-vaapi" +#SRC_URI="https://gstreamer.freedesktop.org/src/${MY_PN}/${MY_PN}-${PV}.tar.xz" +EGIT_REPO_URI="git://anongit.freedesktop.org/gstreamer/gstreamer-vaapi" + +LICENSE="LGPL-2.1" +SLOT="1.0" +KEYWORDS="" + +IUSE="+drm egl opengl wayland +X" +REQUIRED_USE="|| ( drm opengl wayland X )" + +RDEPEND=" + >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}] + =media-libs/gstreamer-scm:${SLOT}[${MULTILIB_USEDEP}] + =media-libs/gst-plugins-base-scm:${SLOT}[${MULTILIB_USEDEP}] + =media-libs/gst-plugins-bad-scm:${SLOT}[opengl?,${MULTILIB_USEDEP}] + >=x11-libs/libva-1.4.0:=[drm?,X?,opengl?,wayland?,${MULTILIB_USEDEP}] + drm? ( + >=virtual/libudev-208:=[${MULTILIB_USEDEP}] + >=x11-libs/libdrm-2.4.46[${MULTILIB_USEDEP}] ) + egl? ( + >=media-libs/gst-plugins-bad-1.12.0:${SLOT}[opengl,${MULTILIB_USEDEP}] ) + opengl? ( + >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] + >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] ) + wayland? ( >=dev-libs/wayland-1.0.6[${MULTILIB_USEDEP}] ) + X? ( + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] + >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.12 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] +" + +#S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + ./autogen.sh + make distclean +} + + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + econf \ + --disable-static \ + $(use_enable drm) \ + $(use_enable egl) \ + $(use_enable opengl glx) \ + $(use_enable wayland) \ + $(use_enable X x11) +} + +multilib_src_install_all() { + einstalldocs + prune_libtool_files --modules +} diff --git a/media-plugins/gst-plugins-vaapi/metadata.xml b/media-plugins/gst-plugins-vaapi/metadata.xml new file mode 100644 index 0000000..be2c01c --- /dev/null +++ b/media-plugins/gst-plugins-vaapi/metadata.xml @@ -0,0 +1,12 @@ + + + + + gstreamer@gentoo.org + GStreamer package maintainers + + + Enable DRM renderer + Enable EGL support + + -- cgit v1.2.3