1 |
commit: 0c4313ebbd797037714522812190d458c540e382 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 31 08:55:36 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 31 08:55:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c4313eb |
7 |
|
8 |
media-plugins/gst-plugins-vaapi: bump to 1.14.2 for upstream bug fixes |
9 |
|
10 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
11 |
|
12 |
media-plugins/gst-plugins-vaapi/Manifest | 1 + |
13 |
.../gst-plugins-vaapi-1.14.2.ebuild | 110 +++++++++++++++++++++ |
14 |
2 files changed, 111 insertions(+) |
15 |
|
16 |
diff --git a/media-plugins/gst-plugins-vaapi/Manifest b/media-plugins/gst-plugins-vaapi/Manifest |
17 |
index e655a459e13..ad4930e0655 100644 |
18 |
--- a/media-plugins/gst-plugins-vaapi/Manifest |
19 |
+++ b/media-plugins/gst-plugins-vaapi/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST gstreamer-vaapi-1.12.4.tar.xz 998844 BLAKE2B e37d6f66054e46e421ffbd4c27362bba0fb2ad57bfccb4891ba85573dec18ca304654336768a519c202bda0e829b80ab75a5708ddfc1dc9751774b4ef783a16d SHA512 2251395f77be8d17837f4b0d38a2271155a5fbd57560fac9334660abb34a4f609dda8d9714bfa8f64395a85d3fa336f7ad1b8e8e7490b5288843fbe3d1dbd7f5 |
22 |
DIST gstreamer-vaapi-1.14.1.tar.xz 1064992 BLAKE2B bae42e3cafc6d1e5799a8ef795f9e1f6a6ac60b6878aea1aed81550fd7e408c5104b5ea89d6e5f7535ac8d21fe5f14fccf061e15eb68a7c1c60c29ad4a4deabb SHA512 f1eecb61cb92439d93a47ac162a5cda8a456dbb205594f378e8adf98c45e4cd59553ccfd3bbcf1c6a568c6af5e7834bbfb0ea17610f0c7e7c9e268a4eeb5b020 |
23 |
+DIST gstreamer-vaapi-1.14.2.tar.xz 1068872 BLAKE2B 835eb394d81b4de671703b2ff05b3bf57d2d09bc15d01c865c1c74cf6aad61071149c1f78f693b47b81d4c28f580d5fd6b004a99c26972ac67e5dca13abc8dfa SHA512 7297dc04c116cab5cb066efc2dc34f9510927fadf696475c14ca3b3a3befe8c0ed5c63c9a4039f1f268e79a967c89a34d74048da92198f05833315f90d503202 |
24 |
|
25 |
diff --git a/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.14.2.ebuild b/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.14.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..181114b5eb8 |
28 |
--- /dev/null |
29 |
+++ b/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.14.2.ebuild |
30 |
@@ -0,0 +1,110 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit multilib-minimal |
37 |
+ |
38 |
+MY_PN="gstreamer-vaapi" |
39 |
+DESCRIPTION="Hardware accelerated video decoding through VA-API plugin for GStreamer" |
40 |
+HOMEPAGE="https://cgit.freedesktop.org/gstreamer/gstreamer-vaapi" |
41 |
+SRC_URI="https://gstreamer.freedesktop.org/src/${MY_PN}/${MY_PN}-${PV}.tar.xz" |
42 |
+ |
43 |
+LICENSE="LGPL-2.1+" |
44 |
+SLOT="1.0" |
45 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
46 |
+IUSE="+drm +egl gles2 +opengl wayland +X" # Keep default enabled IUSE in sync with gst-plugins-base and libva |
47 |
+ |
48 |
+# gst-vaapi configure is based around GL platform mainly, unlike gst-plugins-bad that goes by GL API mainly; for less surprises, |
49 |
+# we design gst-vaapi ebuild in terms of GL API as main choice as well, meaning that USE opengl and/or gles2 is required to |
50 |
+# enable opengl support at all and choices get chained from there. |
51 |
+# One or multiple video output are required: drm, x11, glx, egl and/or wayland; |
52 |
+# but GL API is our main trigger, thus USE=egl should be ineffective if neither gles2 or opengl is enabled; |
53 |
+# So "|| ( drm egl opengl wayland X )" would be wrong, because egl isn't built with USE="egl -opengl -gles2", ending up with no video outputs. |
54 |
+# As we ensure at least one working GL output with other REQUIRED_USE, we can put gles2/opengl in REQUIRED_USE instead of egl, solving the issue. |
55 |
+# gles2 API only supported windowing system (on linux) is EGL, so require it |
56 |
+# opengl API only supported windowing systems (on linux) are EGL and GLX, so require one of them (glx is enabled with USE="opengl X") |
57 |
+REQUIRED_USE=" |
58 |
+ || ( drm gles2 opengl wayland X ) |
59 |
+ gles2? ( egl ) |
60 |
+ opengl? ( || ( egl X ) ) |
61 |
+" |
62 |
+ |
63 |
+# glx doesn't require libva-glx (libva[opengl]) afaics, only by tests/test-display.c |
64 |
+# USE flag behavior: |
65 |
+# 'drm' enables vaapi drm support |
66 |
+# 'egl' enables EGL platform support (but only if also 'opengl||gles2') |
67 |
+# - 'egl' is exposed as a USE flag mainly to get EGL support instead of or in addition to GLX support with desktop GL while keeping it optional for pure GLX cases; |
68 |
+# it's always required with USE=gles2, thus USE="gles2 opengl X" will require and build desktop GL EGL platform support as well on top of GLX, which doesn't add extra deps at that point. |
69 |
+# 'gles2' enables GLESv2 or GLESv3 based GL API support |
70 |
+# 'opengl' enables desktop OpenGL based GL API support |
71 |
+# 'wayland' enables non-GL Wayland support; wayland EGL support when combined with 'egl' (but only if also 'opengl||gles2') |
72 |
+# 'X' enables non-GL X support; GLX support when combined with 'opengl' |
73 |
+# gst-plugins-bad still needed for codecparsers (GL libraries moved to -base); checked for 1.14 (recheck for 1.16) |
74 |
+GST_REQ="${PV}" |
75 |
+GL_DEPS=" |
76 |
+ >=media-libs/gst-plugins-base-${GST_REQ}:${SLOT}[egl?,gles2?,opengl?,wayland?,X?] |
77 |
+ media-libs/mesa[gles2?,egl?,${MULTILIB_USEDEP}] |
78 |
+" |
79 |
+RDEPEND=" |
80 |
+ >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}] |
81 |
+ >=media-libs/gstreamer-${GST_REQ}:${SLOT}[${MULTILIB_USEDEP}] |
82 |
+ >=media-libs/gst-plugins-base-${GST_REQ}:${SLOT}[${MULTILIB_USEDEP}] |
83 |
+ >=media-libs/gst-plugins-bad-${GST_REQ}:${SLOT}[${MULTILIB_USEDEP}] |
84 |
+ >=x11-libs/libva-1.4.0:=[drm?,wayland?,X?,${MULTILIB_USEDEP}] |
85 |
+ drm? ( |
86 |
+ >=virtual/libudev-208:=[${MULTILIB_USEDEP}] |
87 |
+ >=x11-libs/libdrm-2.4.46[${MULTILIB_USEDEP}] |
88 |
+ ) |
89 |
+ gles2? ( ${GL_DEPS} ) |
90 |
+ opengl? ( ${GL_DEPS} ) |
91 |
+ wayland? ( >=dev-libs/wayland-1.0.6[${MULTILIB_USEDEP}] ) |
92 |
+ X? ( |
93 |
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
94 |
+ >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] |
95 |
+ x11-libs/libXrender[${MULTILIB_USEDEP}] ) |
96 |
+" |
97 |
+DEPEND="${RDEPEND} |
98 |
+ >=dev-util/gtk-doc-am-1.12 |
99 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
100 |
+" |
101 |
+ |
102 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
103 |
+ |
104 |
+multilib_src_configure() { |
105 |
+ local myconf=() |
106 |
+ if use opengl || use gles2; then |
107 |
+ myconf+=( |
108 |
+ $(use_enable egl) |
109 |
+ --with-glapi=$(usex opengl 'gl,' '')$(usex gles2 'gles2,gles3' '') # It's fine to have extra commas passed |
110 |
+ ) |
111 |
+ else |
112 |
+ myconf+=( |
113 |
+ --disable-egl |
114 |
+ --without-glapi |
115 |
+ ) |
116 |
+ fi |
117 |
+ |
118 |
+ if use opengl && use X; then |
119 |
+ myconf+=( --enable-glx ) |
120 |
+ else |
121 |
+ myconf+=( --disable-glx ) |
122 |
+ fi |
123 |
+ |
124 |
+ ECONF_SOURCE=${S} \ |
125 |
+ econf \ |
126 |
+ --disable-static \ |
127 |
+ --disable-debug \ |
128 |
+ --disable-examples \ |
129 |
+ --enable-encoders \ |
130 |
+ $(use_enable drm) \ |
131 |
+ $(use_enable X x11) \ |
132 |
+ $(use_enable wayland) \ |
133 |
+ --without-gtk \ |
134 |
+ "${myconf[@]}" |
135 |
+} |
136 |
+ |
137 |
+multilib_src_install_all() { |
138 |
+ einstalldocs |
139 |
+ find "${ED}" -name '*.la' -delete || die |
140 |
+} |