1 |
commit: ce9ab3f0ca8c58f1d3f3c4b8a5b9c4872ef03a01 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 1 22:31:37 2012 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 1 22:40:13 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=ce9ab3f0 |
7 |
|
8 |
media-plugins/gst-plugins-v4l2: copy from gentoo-x86 |
9 |
|
10 |
--- |
11 |
...st-plugins-v4l2-0.10.31-linux-headers-3.6.patch | 38 ++++++++++++++++++++ |
12 |
.../gst-plugins-v4l2-0.10.31.ebuild | 31 ++++++++++++++++ |
13 |
2 files changed, 69 insertions(+), 0 deletions(-) |
14 |
|
15 |
diff --git a/media-plugins/gst-plugins-v4l2/files/gst-plugins-v4l2-0.10.31-linux-headers-3.6.patch b/media-plugins/gst-plugins-v4l2/files/gst-plugins-v4l2-0.10.31-linux-headers-3.6.patch |
16 |
new file mode 100644 |
17 |
index 0000000..919b19b |
18 |
--- /dev/null |
19 |
+++ b/media-plugins/gst-plugins-v4l2/files/gst-plugins-v4l2-0.10.31-linux-headers-3.6.patch |
20 |
@@ -0,0 +1,38 @@ |
21 |
+From 968a3dac9959c2a6ae4ff619535db15b37446ce4 Mon Sep 17 00:00:00 2001 |
22 |
+From: Matthias Clasen <mclasen@××××××.com> |
23 |
+Date: Thu, 9 Aug 2012 08:35:23 +0100 |
24 |
+Subject: [PATCH] v4l2: fix build with recent kernels, the v4l2_buffer input |
25 |
+ field was removed |
26 |
+ |
27 |
+This was unused apparently and removed in the kernel in commit: |
28 |
+ |
29 |
+ From 2b719d7baf490e24ce7d817c6337b7c87fda84c1 Mon Sep 17 00:00:00 2001 |
30 |
+ From: Sakari Ailus <sakari.ailus@×××.fi> |
31 |
+ Date: Wed, 2 May 2012 09:40:03 -0300 |
32 |
+ Subject: [PATCH] [media] v4l: drop v4l2_buffer.input and V4L2_BUF_FLAG_INPUT |
33 |
+ |
34 |
+ Remove input field in struct v4l2_buffer and flag V4L2_BUF_FLAG_INPUT which |
35 |
+ tells the former is valid. The flag is used by no driver currently. |
36 |
+ |
37 |
+https://bugzilla.gnome.org/show_bug.cgi?id=681491 |
38 |
+ |
39 |
+[Alexandre Rostovtsev <tetromino@g.o>: backport to 0.10.31] |
40 |
+--- |
41 |
+ sys/v4l2/gstv4l2bufferpool.c | 1 - |
42 |
+ 1 file changed, 1 deletion(-) |
43 |
+ |
44 |
+diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c |
45 |
+index b81c6a4..51cc0ce 100644 |
46 |
+--- a/sys/v4l2/gstv4l2bufferpool.c |
47 |
++++ b/sys/v4l2/gstv4l2bufferpool.c |
48 |
+@@ -181,7 +181,6 @@ gst_v4l2_buffer_new (GstV4l2BufferPool * pool, guint index, GstCaps * caps) |
49 |
+ GST_LOG_OBJECT (pool->v4l2elem, " MMAP offset: %u", |
50 |
+ ret->vbuffer.m.offset); |
51 |
+ GST_LOG_OBJECT (pool->v4l2elem, " length: %u", ret->vbuffer.length); |
52 |
+- GST_LOG_OBJECT (pool->v4l2elem, " input: %u", ret->vbuffer.input); |
53 |
+ |
54 |
+ data = (guint8 *) v4l2_mmap (0, ret->vbuffer.length, |
55 |
+ PROT_READ | PROT_WRITE, MAP_SHARED, pool->video_fd, |
56 |
+-- |
57 |
+1.7.12.3 |
58 |
+ |
59 |
|
60 |
diff --git a/media-plugins/gst-plugins-v4l2/gst-plugins-v4l2-0.10.31.ebuild b/media-plugins/gst-plugins-v4l2/gst-plugins-v4l2-0.10.31.ebuild |
61 |
new file mode 100644 |
62 |
index 0000000..6984836 |
63 |
--- /dev/null |
64 |
+++ b/media-plugins/gst-plugins-v4l2/gst-plugins-v4l2-0.10.31.ebuild |
65 |
@@ -0,0 +1,31 @@ |
66 |
+# Copyright 1999-2012 Gentoo Foundation |
67 |
+# Distributed under the terms of the GNU General Public License v2 |
68 |
+# $Header: $ |
69 |
+ |
70 |
+EAPI="5" |
71 |
+ |
72 |
+inherit eutils gst-plugins-good gst-plugins10 |
73 |
+ |
74 |
+DESCRIPION="plugin to allow capture from video4linux2 devices" |
75 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
76 |
+IUSE="udev" |
77 |
+ |
78 |
+RDEPEND=" |
79 |
+ media-libs/libv4l |
80 |
+ >=media-plugins/gst-plugins-xvideo-${PV}:${SLOT} |
81 |
+ udev? ( >=sys-fs/udev-143[gudev] ) |
82 |
+" |
83 |
+DEPEND="${RDEPEND} |
84 |
+ virtual/os-headers" |
85 |
+ |
86 |
+GST_PLUGINS_BUILD="gst_v4l2" |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ epatch "${FILESDIR}/${PN}-0.10.31-linux-headers-3.6.patch" #437012 |
90 |
+} |
91 |
+ |
92 |
+src_configure() { |
93 |
+ gst-plugins10_src_configure \ |
94 |
+ --with-libv4l2 \ |
95 |
+ $(use_with udev gudev) |
96 |
+} |