1 |
commit: c894f220d8104aa2b318c9b6e92f83fd62649234 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 2 21:12:55 2016 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 21:51:17 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c894f220 |
7 |
|
8 |
media-libs/gst-plugins-bad: enable vcd and shm plugin bug #363631 |
9 |
|
10 |
Leave gsettings out as it is not ported yet. |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
.../gst-plugins-bad-1.6.2-r1.ebuild | 103 +++++++++++++++++++++ |
15 |
1 file changed, 103 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/gst-plugins-bad/gst-plugins-bad-1.6.2-r1.ebuild b/media-libs/gst-plugins-bad/gst-plugins-bad-1.6.2-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 0000000..d9f8daf |
20 |
--- /dev/null |
21 |
+++ b/media-libs/gst-plugins-bad/gst-plugins-bad-1.6.2-r1.ebuild |
22 |
@@ -0,0 +1,103 @@ |
23 |
+# Copyright 1999-2016 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Id$ |
26 |
+ |
27 |
+EAPI="5" |
28 |
+GST_ORG_MODULE="gst-plugins-bad" |
29 |
+ |
30 |
+inherit eutils flag-o-matic gstreamer virtualx |
31 |
+ |
32 |
+DESCRIPTION="Less plugins for GStreamer" |
33 |
+HOMEPAGE="http://gstreamer.freedesktop.org/" |
34 |
+ |
35 |
+LICENSE="LGPL-2" |
36 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
37 |
+ |
38 |
+IUSE="X egl gles2 gtk +introspection opengl +orc vcd vnc wayland" |
39 |
+REQUIRED_USE=" |
40 |
+ egl? ( !gles2 ) |
41 |
+ gles2? ( !egl !opengl ) |
42 |
+ opengl? ( X ) |
43 |
+ wayland? ( egl ) |
44 |
+" |
45 |
+ |
46 |
+# dtmf plugin moved from bad to good in 1.2 |
47 |
+# X11 is automagic for now, upstream #709530 |
48 |
+RDEPEND=" |
49 |
+ >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] |
50 |
+ >=media-libs/gstreamer-${PV}:${SLOT}[${MULTILIB_USEDEP},introspection?] |
51 |
+ >=media-libs/gst-plugins-base-${PV}:${SLOT}[${MULTILIB_USEDEP},introspection?] |
52 |
+ introspection? ( >=dev-libs/gobject-introspection-1.31.1 ) |
53 |
+ |
54 |
+ egl? ( >=media-libs/mesa-9.1.6[egl,${MULTILIB_USEDEP}] ) |
55 |
+ gles2? ( >=media-libs/mesa-9.1.6[gles2,${MULTILIB_USEDEP}] ) |
56 |
+ opengl? ( |
57 |
+ >=media-libs/mesa-9.1.6[${MULTILIB_USEDEP}] |
58 |
+ virtual/glu[${MULTILIB_USEDEP}] ) |
59 |
+ X? ( x11-libs/libX11[${MULTILIB_USEDEP}] ) |
60 |
+ wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] ) |
61 |
+ |
62 |
+ gtk? ( >=x11-libs/gtk+-3.15:3[X?,wayland?,${MULTILIB_USEDEP}] ) |
63 |
+ orc? ( >=dev-lang/orc-0.4.17[${MULTILIB_USEDEP}] ) |
64 |
+ |
65 |
+ !<media-libs/gst-plugins-good-1.1:${SLOT} |
66 |
+" |
67 |
+DEPEND="${RDEPEND} |
68 |
+ >=dev-util/gtk-doc-am-1.12 |
69 |
+" |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ # FIXME: tests are slower than upstream expects |
73 |
+ sed -e 's:/\* tcase_set_timeout.*:tcase_set_timeout (tc_chain, 5 * 60);:' \ |
74 |
+ -i tests/check/elements/audiomixer.c || die |
75 |
+} |
76 |
+ |
77 |
+multilib_src_configure() { |
78 |
+ local myconf=() |
79 |
+ if use opengl || use gles2 ; then |
80 |
+ # Actually enable the gl element, not just libs |
81 |
+ myconf+=( --enable-gl ) |
82 |
+ fi |
83 |
+ |
84 |
+ # Always enable gsettings (no extra dependency) |
85 |
+ # and shm (need a switch for winnt ?) |
86 |
+ gstreamer_multilib_src_configure \ |
87 |
+ $(multilib_native_use_enable introspection) \ |
88 |
+ $(use_enable egl) \ |
89 |
+ $(use_enable gles2) \ |
90 |
+ $(use_enable gtk gtk3) \ |
91 |
+ $(use_enable opengl) \ |
92 |
+ $(use_enable opengl glx) \ |
93 |
+ $(use_enable orc) \ |
94 |
+ $(use_enable vcd) \ |
95 |
+ $(use_enable vnc librfb) \ |
96 |
+ $(use_enable wayland) \ |
97 |
+ $(use_enable X x11) \ |
98 |
+ --disable-examples \ |
99 |
+ --disable-debug \ |
100 |
+ --disable-cocoa \ |
101 |
+ --disable-wgl \ |
102 |
+ --enable-shm \ |
103 |
+ ${myconf[$@]} |
104 |
+ # not ported |
105 |
+ # --enable-gsettings |
106 |
+ |
107 |
+ if multilib_is_native_abi; then |
108 |
+ local x |
109 |
+ for x in libs plugins; do |
110 |
+ ln -s "${S}"/docs/${x}/html docs/${x}/html || die |
111 |
+ done |
112 |
+ fi |
113 |
+} |
114 |
+ |
115 |
+multilib_src_test() { |
116 |
+ unset DISPLAY |
117 |
+ # FIXME: tests are slower than upstream expects |
118 |
+ Xemake check -j1 |
119 |
+} |
120 |
+ |
121 |
+multilib_src_install_all() { |
122 |
+ DOCS="AUTHORS ChangeLog NEWS README RELEASE" |
123 |
+ einstalldocs |
124 |
+ prune_libtool_files --modules |
125 |
+} |