1 |
commit: e006ff5f2d5950fff2e4891614fddbe29696d998 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 24 15:15:02 2015 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 24 19:12:27 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e006ff5f |
7 |
|
8 |
media-libs/clutter-gst: make udev support optional |
9 |
|
10 |
It was forced on because upstream had it automagic. Patch submitted and |
11 |
accepted upstream. Also add X USE flag and make it synchronized with |
12 |
clutter since there is conditional code being built depending on whether |
13 |
clutter has X11 support or not ending up in clutter-gst linking to |
14 |
libX11. |
15 |
|
16 |
.../clutter-gst/clutter-gst-3.0.14-r1.ebuild | 71 ++++++++++++++++++++++ |
17 |
.../files/clutter-gst-3.0.14-automagic-udev.patch | 50 +++++++++++++++ |
18 |
2 files changed, 121 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/clutter-gst/clutter-gst-3.0.14-r1.ebuild b/media-libs/clutter-gst/clutter-gst-3.0.14-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 0000000..3110373 |
23 |
--- /dev/null |
24 |
+++ b/media-libs/clutter-gst/clutter-gst-3.0.14-r1.ebuild |
25 |
@@ -0,0 +1,71 @@ |
26 |
+# Copyright 1999-2015 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+# $Id$ |
29 |
+ |
30 |
+EAPI="5" |
31 |
+GCONF_DEBUG="yes" |
32 |
+GNOME2_LA_PUNT="yes" |
33 |
+PYTHON_COMPAT=( python2_7 ) |
34 |
+ |
35 |
+inherit autotools eutils gnome2 python-any-r1 |
36 |
+ |
37 |
+HOMEPAGE="https://blogs.gnome.org/clutter/" |
38 |
+DESCRIPTION="GStreamer integration library for Clutter" |
39 |
+ |
40 |
+LICENSE="LGPL-2.1+" |
41 |
+SLOT="3.0" |
42 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
43 |
+IUSE="X examples +introspection udev" |
44 |
+ |
45 |
+# >=cogl-1.18 provides cogl-2.0-experimental |
46 |
+COMMON_DEPEND=" |
47 |
+ >=dev-libs/glib-2.20:2 |
48 |
+ >=media-libs/clutter-1.20:1.0=[X=,introspection?] |
49 |
+ >=media-libs/cogl-1.18:1.0=[introspection?] |
50 |
+ >=media-libs/gstreamer-1.4:1.0[introspection?] |
51 |
+ >=media-libs/gst-plugins-bad-1.4:1.0 |
52 |
+ >=media-libs/gst-plugins-base-1.4:1.0[introspection?] |
53 |
+ introspection? ( >=dev-libs/gobject-introspection-0.6.8:= ) |
54 |
+ udev? ( virtual/libgudev ) |
55 |
+" |
56 |
+# uses goom from gst-plugins-good |
57 |
+RDEPEND="${COMMON_DEPEND} |
58 |
+ >=media-libs/gst-plugins-good-1.4:1.0 |
59 |
+ !udev? ( media-plugins/gst-plugins-v4l2 ) |
60 |
+" |
61 |
+DEPEND="${COMMON_DEPEND} |
62 |
+ ${PYTHON_DEPS} |
63 |
+ >=dev-util/gtk-doc-am-1.11 |
64 |
+ virtual/pkgconfig |
65 |
+" |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ # Make udev support controllable |
69 |
+ epatch "${FILESDIR}"/${PN}-3.0.14-automagic-udev.patch |
70 |
+ |
71 |
+ eautoreconf |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ # --enable-gl-texture-upload is experimental |
76 |
+ gnome2_src_configure \ |
77 |
+ --disable-maintainer-flags \ |
78 |
+ $(use_enable introspection) \ |
79 |
+ $(use_with udev) |
80 |
+} |
81 |
+ |
82 |
+src_compile() { |
83 |
+ # Clutter tries to access dri without userpriv, upstream bug #661873 |
84 |
+ # Massive failure of a hack, see bug 360219, bug 360073, bug 363917 |
85 |
+ unset DISPLAY |
86 |
+ gnome2_src_compile |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ gnome2_src_install |
91 |
+ |
92 |
+ if use examples; then |
93 |
+ insinto /usr/share/doc/"${PF}"/examples |
94 |
+ doins examples/{*.c,*.png,README} |
95 |
+ fi |
96 |
+} |
97 |
|
98 |
diff --git a/media-libs/clutter-gst/files/clutter-gst-3.0.14-automagic-udev.patch b/media-libs/clutter-gst/files/clutter-gst-3.0.14-automagic-udev.patch |
99 |
new file mode 100644 |
100 |
index 0000000..106ceb5 |
101 |
--- /dev/null |
102 |
+++ b/media-libs/clutter-gst/files/clutter-gst-3.0.14-automagic-udev.patch |
103 |
@@ -0,0 +1,50 @@ |
104 |
+From ce92707eba5153c7ba0ee107f887480f2db494f2 Mon Sep 17 00:00:00 2001 |
105 |
+From: Gilles Dartiguelongue <eva@g.o> |
106 |
+Date: Tue, 24 Nov 2015 11:32:37 +0100 |
107 |
+Subject: [PATCH] Make libgudev dependency controllable by configure switch |
108 |
+ |
109 |
+--- |
110 |
+ configure.ac | 27 ++++++++++++++++++++------- |
111 |
+ 1 file changed, 20 insertions(+), 7 deletions(-) |
112 |
+ |
113 |
+diff --git a/configure.ac b/configure.ac |
114 |
+index 67dede9..e8f4887 100644 |
115 |
+--- a/configure.ac |
116 |
++++ b/configure.ac |
117 |
+@@ -209,13 +209,26 @@ AS_IF([test "x$have_cogl_osx" = xyes], |
118 |
+ AC_SUBST([GL_LDFLAGS]) |
119 |
+ ]) |
120 |
+ |
121 |
+-PKG_CHECK_MODULES(GUDEV, |
122 |
+- [gudev-1.0], |
123 |
+- [ |
124 |
+- have_gudev=yes |
125 |
+- AC_DEFINE([HAVE_GUDEV], [1], |
126 |
+- ["Defined if gudev is available"]) |
127 |
+- ],[ have_gudev=no ]) |
128 |
++AC_ARG_WITH([udev], |
129 |
++ [AS_HELP_STRING([--with-udev], |
130 |
++ [Enable camera listing through libgudev]), |
131 |
++ [], [with_udev=auto]) |
132 |
++ ]) |
133 |
++ |
134 |
++AS_IF([test "$with_udev" != "no"], |
135 |
++ [ |
136 |
++ PKG_CHECK_MODULES(GUDEV, |
137 |
++ [gudev-1.0], |
138 |
++ [ |
139 |
++ have_gudev=yes |
140 |
++ AC_DEFINE([HAVE_GUDEV], [1], |
141 |
++ ["Defined if gudev is available"]) |
142 |
++ ],[ |
143 |
++ AS_IF([test "$with_udev" = "yes"], |
144 |
++ [AC_MSG_ERROR([Could not find libgudev])], |
145 |
++ [have_gudev=no]) |
146 |
++ ]) |
147 |
++ ]) |
148 |
+ |
149 |
+ dnl ======================================================================== |
150 |
+ dnl Experimental support for hardware accelerated decoders. |
151 |
+-- |
152 |
+2.6.3 |
153 |
+ |