1 |
commit: 5ff4622caac393a50aec2be2d1b3e96a76c27c68 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 30 09:49:30 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 30 09:49:30 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ff4622c |
7 |
|
8 |
media-libs/gst-plugins-base: bump to 1.14.2 for upstream bug fixes |
9 |
|
10 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
11 |
|
12 |
media-libs/gst-plugins-base/Manifest | 1 + |
13 |
.../gst-plugins-base-1.14.2.ebuild | 180 +++++++++++++++++++++ |
14 |
2 files changed, 181 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/gst-plugins-base/Manifest b/media-libs/gst-plugins-base/Manifest |
17 |
index a1e6c99001e..ae29113787e 100644 |
18 |
--- a/media-libs/gst-plugins-base/Manifest |
19 |
+++ b/media-libs/gst-plugins-base/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST gst-plugins-base-0.10.36.tar.xz 2364108 BLAKE2B a71ef5d5c7462d60937602681c060e85ed086a753b7ef354dad48354d6c3741d809f2c0c6a321ef9ac60fb12d24ec65e1baa63e51211134d2a5e03aae16f73d2 SHA512 ea77778e073515df58229a641b4363df31f0b80204a5a43a8feb31f0b03a5a4b9b79d6e07e1615c773a59927a9b649f1b1d782def1120d581d09a090be8363b8 |
22 |
DIST gst-plugins-base-1.12.4.tar.xz 3119468 BLAKE2B d5ac157618a25c8f0323d1922d5b26b0b5c49f56cb75df3ceeadd0566f873be1a06c863a1da6afff40901fbbbeb1ec6cd6ef4614309ca7f7ff988c0fa9040a10 SHA512 89a6e92cd294612cf1406eb156416ab4606643f6b43637e64a18f6f28ab789ca8d4cf1308434ed85e5fc679c79cc3ca115db48f37e0065a6ab3cdfdbaaad9f53 |
23 |
DIST gst-plugins-base-1.14.1.tar.xz 3689184 BLAKE2B 17abcab2c84b113180de55d6c781ae11feec66c215febfffefe4a22353c56e82a585647688e2078603b6c3ece6f26afa99969091a72886880a2f8549dd9cb379 SHA512 bca9db8780fe24c19a2c4eae9a16dc0856cb38077580e4344bd4f7fa9a7a03079b92556ff35475a574f624a5a721d80ef925790670e4cc809361ed01108a141e |
24 |
+DIST gst-plugins-base-1.14.2.tar.xz 3693856 BLAKE2B 7ed05718bfd1dcb15e05e5a2c8758ad409c4ad7f331146363f264aaf7123c8a14c1db81f482710d1069d33e5281087f66e2e38504e39b214befba73ffdd9295c SHA512 35e7eb5c42fe265d38c433575f88d3306f15ff927a989eb375ed5399cbf92af2e9bf553d6eee349dc13673540cee00e1f879595f25e58c188ea443d8a969682f |
25 |
|
26 |
diff --git a/media-libs/gst-plugins-base/gst-plugins-base-1.14.2.ebuild b/media-libs/gst-plugins-base/gst-plugins-base-1.14.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..0fe6a462492 |
29 |
--- /dev/null |
30 |
+++ b/media-libs/gst-plugins-base/gst-plugins-base-1.14.2.ebuild |
31 |
@@ -0,0 +1,180 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+GST_ORG_MODULE="gst-plugins-base" |
37 |
+ |
38 |
+inherit flag-o-matic gstreamer |
39 |
+ |
40 |
+DESCRIPTION="Basepack of plugins for gstreamer" |
41 |
+HOMEPAGE="https://gstreamer.freedesktop.org/" |
42 |
+ |
43 |
+LICENSE="GPL-2+ LGPL-2+" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
45 |
+ |
46 |
+# For OpenGL we have three separate concepts, with a list of possibilities in each: |
47 |
+# * opengl APIs - opengl and/or gles2; USE=opengl and USE=gles2 enable these accordingly; if neither is enabled, OpenGL helper library and elements are not built at all and all the other options aren't relevant |
48 |
+# * opengl platforms - glx and/or egl; also cgl, wgl, eagl for non-linux; USE="X opengl" enables glx platform; USE="egl" enables egl platform. Rest is up for relevant prefix teams. |
49 |
+# * opengl windowing system - x11, wayland, win32, cocoa, android, viv_fb, gbm and/or dispmanx; USE=X enables x11 (but for WSI it's automagic - FIXME), USE=wayland enables wayland, USE=gbm enables gbm (automagic upstream - FIXME); rest is up for relevant prefix/arch teams/contributors to test and provide patches |
50 |
+# With the following limitations: |
51 |
+# * If opengl and/or gles2 is enabled, a platform has to be enabled - x11 or egl in our case, but x11 (glx) is acceptable only with opengl |
52 |
+# * If opengl and/or gles2 is enabled, a windowing system has to be enabled - x11, wayland or gbm in our case |
53 |
+# * glx platform requires opengl API |
54 |
+# * wayland, gbm and most other non-glx WSIs require egl platform |
55 |
+# Additionally there is optional dmabuf support with egl for additional dmabuf based upload/download/eglimage options; |
56 |
+# and optional graphene usage for gltransformation and glvideoflip elements and more GLSL Uniforms support in glshader; |
57 |
+# and libpng/jpeg are required for gloverlay element; |
58 |
+ |
59 |
+# Keep default IUSE options for relevant ones mirrored with gst-plugins-gtk and gst-plugins-bad |
60 |
+IUSE="alsa +egl gbm gles2 +introspection ivorbis +ogg +opengl +orc +pango theora +vorbis wayland +X" |
61 |
+GL_REQUIRED_USE=" |
62 |
+ || ( gbm wayland X ) |
63 |
+ wayland? ( egl ) |
64 |
+ gbm? ( egl ) |
65 |
+" |
66 |
+REQUIRED_USE=" |
67 |
+ ivorbis? ( ogg ) |
68 |
+ theora? ( ogg ) |
69 |
+ vorbis? ( ogg ) |
70 |
+ opengl? ( || ( egl X ) ${GL_REQUIRED_USE} ) |
71 |
+ gles2? ( egl ${GL_REQUIRED_USE} ) |
72 |
+" |
73 |
+ |
74 |
+# Dependencies needed by opengl library and plugin (enabled via USE gles2 and/or opengl) |
75 |
+# dmabuf automagic from libdrm headers (drm_fourcc.h) and EGL, so ensure it with USE=egl (platform independent header used only, thus no MULTILIB_USEDEP); provides dmabuf based upload/download/eglimage options |
76 |
+GL_DEPS=" |
77 |
+ >=media-libs/mesa-9.0[egl?,gbm?,gles2?,wayland?,${MULTILIB_USEDEP}] |
78 |
+ egl? ( |
79 |
+ x11-libs/libdrm |
80 |
+ ) |
81 |
+ gbm? ( |
82 |
+ >=dev-libs/libgudev-147[${MULTILIB_USEDEP}] |
83 |
+ >=x11-libs/libdrm-2.4.55[${MULTILIB_USEDEP}] |
84 |
+ ) |
85 |
+ wayland? ( |
86 |
+ dev-libs/wayland[${MULTILIB_USEDEP}] |
87 |
+ ) |
88 |
+ |
89 |
+ media-libs/libpng:0[${MULTILIB_USEDEP}] |
90 |
+ virtual/jpeg:0[${MULTILIB_USEDEP}] |
91 |
+" # graphene for optional gltransformation and glvideoflip elements and more GLSL Uniforms support in glshader; libpng/jpeg for gloverlay element |
92 |
+# >=media-libs/graphene-1.4.0[${MULTILIB_USEDEP}] |
93 |
+ |
94 |
+RDEPEND=" |
95 |
+ app-text/iso-codes |
96 |
+ >=dev-libs/glib-2.40.0:2[${MULTILIB_USEDEP}] |
97 |
+ >=media-libs/gstreamer-${PV}:1.0[introspection?,${MULTILIB_USEDEP}] |
98 |
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
99 |
+ alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
100 |
+ introspection? ( >=dev-libs/gobject-introspection-1.31.1:= ) |
101 |
+ ivorbis? ( >=media-libs/tremor-0_pre20130223[${MULTILIB_USEDEP}] ) |
102 |
+ ogg? ( >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] ) |
103 |
+ orc? ( >=dev-lang/orc-0.4.24[${MULTILIB_USEDEP}] ) |
104 |
+ pango? ( >=x11-libs/pango-1.36.3[${MULTILIB_USEDEP}] ) |
105 |
+ theora? ( >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] ) |
106 |
+ vorbis? ( >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] ) |
107 |
+ X? ( |
108 |
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
109 |
+ >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
110 |
+ >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
111 |
+ ) |
112 |
+ |
113 |
+ gles2? ( ${GL_DEPS} ) |
114 |
+ opengl? ( ${GL_DEPS} ) |
115 |
+ |
116 |
+ !<media-libs/gst-plugins-bad-1.13.1:1.0 |
117 |
+" |
118 |
+DEPEND="${RDEPEND} |
119 |
+ >=dev-util/gtk-doc-am-1.12 |
120 |
+ X? ( x11-base/xorg-proto ) |
121 |
+" |
122 |
+ |
123 |
+src_prepare() { |
124 |
+ # Disable GL tests for now; prone to fail with EGL_NOT_INITIALIZED, etc |
125 |
+ sed -i -e '/^@USE_GL_TRUE@/d' tests/check/Makefile.in |
126 |
+ default |
127 |
+} |
128 |
+ |
129 |
+multilib_src_configure() { |
130 |
+ filter-flags -mno-sse -mno-sse2 -mno-sse4.1 #610340 |
131 |
+ |
132 |
+ local myconf=() |
133 |
+ # FIXME: Automagic gbm and x11 wsi |
134 |
+ if use opengl || use gles2; then |
135 |
+ myconf+=( |
136 |
+ --enable-gl |
137 |
+ $(use_enable egl) |
138 |
+ $(use_enable gles2) |
139 |
+ $(use_enable opengl) |
140 |
+ $(use_enable wayland) |
141 |
+ $(use_enable X x11) |
142 |
+ ) |
143 |
+ else |
144 |
+ myconf+=( |
145 |
+ --disable-gl |
146 |
+ --disable-egl |
147 |
+ --disable-gles2 |
148 |
+ --disable-opengl |
149 |
+ --disable-wayland |
150 |
+ --disable-x11 |
151 |
+ ) |
152 |
+ fi |
153 |
+ |
154 |
+ if use opengl && use X; then |
155 |
+ # GLX requires desktop OpenGL and X |
156 |
+ myconf+=( --enable-glx ) |
157 |
+ else |
158 |
+ myconf+=( --disable-glx ) |
159 |
+ fi |
160 |
+ |
161 |
+ myconf+=( |
162 |
+ --disable-cocoa |
163 |
+ --disable-dispmanx |
164 |
+ --disable-wgl |
165 |
+ ) |
166 |
+ |
167 |
+ gstreamer_multilib_src_configure \ |
168 |
+ $(use_enable alsa) \ |
169 |
+ $(multilib_native_use_enable introspection) \ |
170 |
+ $(use_enable ivorbis) \ |
171 |
+ $(use_enable ogg) \ |
172 |
+ $(use_enable orc) \ |
173 |
+ $(use_enable pango) \ |
174 |
+ $(use_enable theora) \ |
175 |
+ $(use_enable vorbis) \ |
176 |
+ $(use_enable X x) \ |
177 |
+ $(use_enable X xshm) \ |
178 |
+ $(use_enable X xvideo) \ |
179 |
+ --enable-iso-codes \ |
180 |
+ --enable-zlib \ |
181 |
+ --disable-debug \ |
182 |
+ --disable-examples \ |
183 |
+ --disable-static \ |
184 |
+ "${myconf[@]}" |
185 |
+ |
186 |
+ # bug #366931, flag-o-matic for the whole thing is overkill |
187 |
+ if [[ ${CHOST} == *86-*-darwin* ]] ; then |
188 |
+ sed -i \ |
189 |
+ -e '/FLAGS = /s|-O[23]|-O1|g' \ |
190 |
+ gst/audioconvert/Makefile \ |
191 |
+ gst/volume/Makefile || die |
192 |
+ fi |
193 |
+ |
194 |
+ if multilib_is_native_abi; then |
195 |
+ local x |
196 |
+ for x in libs plugins; do |
197 |
+ ln -s "${S}"/docs/${x}/html docs/${x}/html || die |
198 |
+ done |
199 |
+ fi |
200 |
+} |
201 |
+ |
202 |
+multilib_src_install_all() { |
203 |
+ DOCS="AUTHORS NEWS README RELEASE" |
204 |
+ einstalldocs |
205 |
+ find "${ED}" -name '*.la' -delete || die |
206 |
+} |
207 |
+ |
208 |
+multilib_src_test() { |
209 |
+ unset GSETTINGS_BACKEND |
210 |
+ emake check |
211 |
+} |