1 |
commit: d0333d6e0530ce97129d1abd83012aa2d73285db |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Nov 27 00:08:21 2016 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Nov 27 00:08:21 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=d0333d6e |
7 |
|
8 |
media-video/guvcview: Add most recent version. |
9 |
|
10 |
Issue with musl is missing locale.h, and using __BEGIN/__END_DECLS from cdefs.h |
11 |
|
12 |
media-video/guvcview/Manifest | 5 + |
13 |
media-video/guvcview/files/ffmpeg3.patch | 26 +++++ |
14 |
.../guvcview/files/guvcview-2.0.4-musl.patch | 108 +++++++++++++++++++++ |
15 |
media-video/guvcview/guvcview-2.0.4.ebuild | 62 ++++++++++++ |
16 |
media-video/guvcview/metadata.xml | 36 +++++++ |
17 |
5 files changed, 237 insertions(+) |
18 |
|
19 |
diff --git a/media-video/guvcview/Manifest b/media-video/guvcview/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..b44104b |
22 |
--- /dev/null |
23 |
+++ b/media-video/guvcview/Manifest |
24 |
@@ -0,0 +1,5 @@ |
25 |
+AUX ffmpeg3.patch 1159 SHA256 cdbae0161e8396a4b7dbfc6c15cb18b972c0e90dd3198ae625f5c902baa38055 SHA512 0707e6ff0fa2098b02c58001014d9ddf09b3b9dc9f211d74143c893b0a3cb1bc12cfbb05a05cacf7599689441934a63294d7fbed1a4b4e273aea0058dc41a6ee WHIRLPOOL 2e92cc8f171b755f5a2d7ef21af2cc71d7259cbbe99cef94bac8af747a79be46e5875e86208375b762c3a9b17cbd499ea0b85cbbd47e5897cdaf208086fa7a68 |
26 |
+AUX guvcview-2.0.4-musl.patch 2818 SHA256 393245a83a40e884aa97e6fa1bfb62a780b3148db5d8b39379db486784afcac5 SHA512 de8679382bbd5a98c90ea6291c320d51dd8be8165ead79588ff2bbbd5871721adfdf8a7c2c73af7a6864ebc91d5ea01993e1b33eb9ddbf35688f5d36aed24b6b WHIRLPOOL 2b9fb99ed33518a103d1269ae7a56febaec7e968b53eeac46b20e933f1f2e1a505f02190d88f76b82f0dfa034c2329126a43e906bff43f1c13d931e27f481dfd |
27 |
+DIST guvcview-src-2.0.4.tar.gz 1120666 SHA256 670ef45168a9b58d36ac42f09c498db5e56b76b0be25b0a6dc97528569334fa2 SHA512 9339e9cf7dc5224f1b87bb21e0ad711d9c27f4197d5f758c70edf465eb01c8c9c51542c75d686f0439f9e843a1c14c2f76835e8529b87b35a737fc5ccb01fe0a WHIRLPOOL ff168a9c785f4f165891a4e9f4541bcd1774fbd7b3c98d2259f10b1fe02689f4c1f91b0cdd966ea82905a9a23ad8af40081a80df9389b01640bbfca32f4734df |
28 |
+EBUILD guvcview-2.0.4.ebuild 1390 SHA256 e67d2776188c35c33ba0e07f5209b020994171f8ce28ddac44be764ce8f1574f SHA512 4f16e2fdd446db66c9163c6cd4f241e040f13c326bd8bc1b18be58a8d082e986b599d596ef0ed8c264d14c4659b6b5112f9583e7baa155370f4b16d66a9cc3c7 WHIRLPOOL 48ee0ba2017e180a3b856a55ee737d22a023765242a08380c57e8c50cf37239e7f8636e8775a6d4510d658a2a3cca68c8e5a972d0b823d7c54b14054c635eb37 |
29 |
+MISC metadata.xml 1346 SHA256 7eb2fbd9406adbb6737e70b6c0c834cabcb3dadb2c2ec7c0fcb6873cf8645b6f SHA512 a249f4187af93c938256a3c58d0411e75bb54f34c990d598e78b4b986bf76236c043f7a05d6833f9fd74a4a688cb20d0455c206962e133186d0780b626593d98 WHIRLPOOL 6972d43aeb00ffe28fc6e9d3f9e1eb92d31acb84d710d0571b5067de5339238824c52f7bd1bd309ddfe242c625e6a4b09e64b904330b501bda66a665ef0c4124 |
30 |
|
31 |
diff --git a/media-video/guvcview/files/ffmpeg3.patch b/media-video/guvcview/files/ffmpeg3.patch |
32 |
new file mode 100644 |
33 |
index 0000000..5397d68 |
34 |
--- /dev/null |
35 |
+++ b/media-video/guvcview/files/ffmpeg3.patch |
36 |
@@ -0,0 +1,26 @@ |
37 |
+Index: guvcview-src-2.0.3/gview_v4l2core/jpeg_decoder.c |
38 |
+=================================================================== |
39 |
+--- guvcview-src-2.0.3.orig/gview_v4l2core/jpeg_decoder.c |
40 |
++++ guvcview-src-2.0.3/gview_v4l2core/jpeg_decoder.c |
41 |
+@@ -1436,7 +1436,7 @@ int jpeg_init_decoder(int width, int hei |
42 |
+ exit(-1); |
43 |
+ } |
44 |
+ |
45 |
+- codec_data->context->pix_fmt = PIX_FMT_YUV422P; |
46 |
++ codec_data->context->pix_fmt = AV_PIX_FMT_YUV422P; |
47 |
+ codec_data->context->width = width; |
48 |
+ codec_data->context->height = height; |
49 |
+ //jpeg_ctx->context->dsp_mask = (FF_MM_MMX | FF_MM_MMXEXT | FF_MM_SSE); |
50 |
+Index: guvcview-src-2.0.3/gview_v4l2core/uvc_h264.c |
51 |
+=================================================================== |
52 |
+--- guvcview-src-2.0.3.orig/gview_v4l2core/uvc_h264.c |
53 |
++++ guvcview-src-2.0.3/gview_v4l2core/uvc_h264.c |
54 |
+@@ -970,7 +970,7 @@ int h264_init_decoder(int width, int hei |
55 |
+ } |
56 |
+ |
57 |
+ h264_ctx->context->flags2 |= CODEC_FLAG2_FAST; |
58 |
+- h264_ctx->context->pix_fmt = PIX_FMT_YUV420P; |
59 |
++ h264_ctx->context->pix_fmt = AV_PIX_FMT_YUV420P; |
60 |
+ h264_ctx->context->width = width; |
61 |
+ h264_ctx->context->height = height; |
62 |
+ //h264_ctx->context->dsp_mask = (FF_MM_MMX | FF_MM_MMXEXT | FF_MM_SSE); |
63 |
|
64 |
diff --git a/media-video/guvcview/files/guvcview-2.0.4-musl.patch b/media-video/guvcview/files/guvcview-2.0.4-musl.patch |
65 |
new file mode 100644 |
66 |
index 0000000..1160de7 |
67 |
--- /dev/null |
68 |
+++ b/media-video/guvcview/files/guvcview-2.0.4-musl.patch |
69 |
@@ -0,0 +1,108 @@ |
70 |
+diff -Naur guvcview-src-2.0.4.orig/guvcview/guvcview.c guvcview-src-2.0.4/guvcview/guvcview.c |
71 |
+--- guvcview-src-2.0.4.orig/guvcview/guvcview.c 2016-04-25 08:58:04.000000000 -0700 |
72 |
++++ guvcview-src-2.0.4/guvcview/guvcview.c 2016-08-29 21:38:12.423067646 -0700 |
73 |
+@@ -24,6 +24,7 @@ |
74 |
+ #include <string.h> |
75 |
+ #include <signal.h> |
76 |
+ #include <unistd.h> |
77 |
++#include <locale.h> |
78 |
+ #include <sys/syscall.h> |
79 |
+ #include <sys/stat.h> |
80 |
+ #include <sys/resource.h> |
81 |
+diff -Naur guvcview-src-2.0.4.orig/gview_audio/gviewaudio.h guvcview-src-2.0.4/gview_audio/gviewaudio.h |
82 |
+--- guvcview-src-2.0.4.orig/gview_audio/gviewaudio.h 2016-04-25 08:58:03.000000000 -0700 |
83 |
++++ guvcview-src-2.0.4/gview_audio/gviewaudio.h 2016-08-29 21:38:12.424067647 -0700 |
84 |
+@@ -39,7 +39,9 @@ |
85 |
+ #include <pthread.h> |
86 |
+ |
87 |
+ /*make sure we support c++*/ |
88 |
+-__BEGIN_DECLS |
89 |
++#ifdef __cplusplus |
90 |
++extern "C" { |
91 |
++#endif |
92 |
+ |
93 |
+ /*Audio API*/ |
94 |
+ #define AUDIO_NONE (0) |
95 |
+@@ -375,6 +377,8 @@ |
96 |
+ */ |
97 |
+ void audio_close(audio_context_t *audio_ctx); |
98 |
+ |
99 |
+-__END_DECLS |
100 |
++#ifdef __cplusplus |
101 |
++} |
102 |
++#endif |
103 |
+ |
104 |
+ #endif |
105 |
+diff -Naur guvcview-src-2.0.4.orig/gview_encoder/gviewencoder.h guvcview-src-2.0.4/gview_encoder/gviewencoder.h |
106 |
+--- guvcview-src-2.0.4.orig/gview_encoder/gviewencoder.h 2016-04-25 08:58:06.000000000 -0700 |
107 |
++++ guvcview-src-2.0.4/gview_encoder/gviewencoder.h 2016-08-29 21:38:12.424067647 -0700 |
108 |
+@@ -38,7 +38,9 @@ |
109 |
+ #include <sys/types.h> |
110 |
+ |
111 |
+ /*make sure we support c++*/ |
112 |
+-__BEGIN_DECLS |
113 |
++#ifdef __cplusplus |
114 |
++extern "C" { |
115 |
++#endif |
116 |
+ |
117 |
+ /*encoder modes*/ |
118 |
+ #define ENCODER_MODE_NONE (0) |
119 |
+@@ -717,6 +719,8 @@ |
120 |
+ */ |
121 |
+ int encoder_disk_supervisor(int treshold, const char *path); |
122 |
+ |
123 |
+-__END_DECLS |
124 |
++#ifdef __cplusplus |
125 |
++} |
126 |
++#endif |
127 |
+ |
128 |
+ #endif |
129 |
+diff -Naur guvcview-src-2.0.4.orig/gview_render/gviewrender.h guvcview-src-2.0.4/gview_render/gviewrender.h |
130 |
+--- guvcview-src-2.0.4.orig/gview_render/gviewrender.h 2016-04-25 08:58:06.000000000 -0700 |
131 |
++++ guvcview-src-2.0.4/gview_render/gviewrender.h 2016-08-29 21:38:12.425067649 -0700 |
132 |
+@@ -38,7 +38,9 @@ |
133 |
+ #include <sys/types.h> |
134 |
+ |
135 |
+ /*make sure we support c++*/ |
136 |
+-__BEGIN_DECLS |
137 |
++#ifdef __cplusplus |
138 |
++extern "C" { |
139 |
++#endif |
140 |
+ |
141 |
+ #define RENDER_NONE (0) |
142 |
+ #define RENDER_SDL (1) |
143 |
+@@ -313,6 +315,8 @@ |
144 |
+ */ |
145 |
+ void render_close(); |
146 |
+ |
147 |
+-__END_DECLS |
148 |
++#ifdef __cplusplus |
149 |
++} |
150 |
++#endif |
151 |
+ |
152 |
+ #endif |
153 |
+diff -Naur guvcview-src-2.0.4.orig/gview_v4l2core/gviewv4l2core.h guvcview-src-2.0.4/gview_v4l2core/gviewv4l2core.h |
154 |
+--- guvcview-src-2.0.4.orig/gview_v4l2core/gviewv4l2core.h 2016-04-25 08:58:06.000000000 -0700 |
155 |
++++ guvcview-src-2.0.4/gview_v4l2core/gviewv4l2core.h 2016-08-29 21:38:12.425067649 -0700 |
156 |
+@@ -33,7 +33,9 @@ |
157 |
+ #include <sys/types.h> |
158 |
+ |
159 |
+ /*make sure we support c++*/ |
160 |
+-__BEGIN_DECLS |
161 |
++#ifdef __cplusplus |
162 |
++extern "C" { |
163 |
++#endif |
164 |
+ |
165 |
+ /* |
166 |
+ * LOGITECH Dynamic controls defs |
167 |
+@@ -1423,7 +1425,9 @@ |
168 |
+ */ |
169 |
+ uint64_t v4l2core_time_get_timestamp(); |
170 |
+ |
171 |
+-__END_DECLS |
172 |
++#ifdef __cplusplus |
173 |
++} |
174 |
++#endif |
175 |
+ |
176 |
+ #endif |
177 |
+ |
178 |
|
179 |
diff --git a/media-video/guvcview/guvcview-2.0.4.ebuild b/media-video/guvcview/guvcview-2.0.4.ebuild |
180 |
new file mode 100644 |
181 |
index 0000000..35f9508 |
182 |
--- /dev/null |
183 |
+++ b/media-video/guvcview/guvcview-2.0.4.ebuild |
184 |
@@ -0,0 +1,62 @@ |
185 |
+# Copyright 1999-2016 Gentoo Foundation |
186 |
+# Distributed under the terms of the GNU General Public License v2 |
187 |
+# $Id$ |
188 |
+ |
189 |
+EAPI=5 |
190 |
+inherit autotools eutils flag-o-matic qmake-utils |
191 |
+ |
192 |
+MY_P=${PN}-src-${PV} |
193 |
+ |
194 |
+DESCRIPTION="GTK+ UVC Viewer" |
195 |
+HOMEPAGE="http://guvcview.sourceforge.net/" |
196 |
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
197 |
+ |
198 |
+LICENSE="GPL-3" |
199 |
+SLOT="0" |
200 |
+KEYWORDS="~amd64 ~x86" |
201 |
+IUSE="gsl libav pulseaudio qt5" |
202 |
+ |
203 |
+RDEPEND=">=dev-libs/glib-2.10 |
204 |
+ media-libs/libpng:0= |
205 |
+ media-libs/libsdl2 |
206 |
+ media-libs/libv4l |
207 |
+ >=media-libs/portaudio-19_pre |
208 |
+ !libav? ( >=media-video/ffmpeg-2.8:0= ) |
209 |
+ libav? ( media-video/libav:= ) |
210 |
+ virtual/ffmpeg |
211 |
+ virtual/libusb:1 |
212 |
+ virtual/udev |
213 |
+ pulseaudio? ( >=media-sound/pulseaudio-0.9.15 ) |
214 |
+ gsl? ( >=sci-libs/gsl-1.15 ) |
215 |
+ qt5? ( dev-qt/qtwidgets:5 ) |
216 |
+ !qt5? ( >=x11-libs/gtk+-3.6:3 ) |
217 |
+ !<sys-kernel/linux-headers-3.4-r2" #448260 |
218 |
+DEPEND="${RDEPEND} |
219 |
+ dev-util/intltool |
220 |
+ sys-devel/gettext |
221 |
+ virtual/os-headers |
222 |
+ sys-devel/autoconf-archive |
223 |
+ virtual/pkgconfig" |
224 |
+ |
225 |
+S=${WORKDIR}/${MY_P} |
226 |
+ |
227 |
+src_prepare() { |
228 |
+ epatch "${FILESDIR}/ffmpeg3.patch" |
229 |
+ |
230 |
+ # Fix for MUSL |
231 |
+ epatch "${FILESDIR}/${PN}-2.0.4-musl.patch" |
232 |
+ |
233 |
+ sed -i '/^docdir/,/^$/d' Makefile.am || die |
234 |
+ eautoreconf |
235 |
+} |
236 |
+ |
237 |
+src_configure() { |
238 |
+ export MOC="$(qt5_get_bindir)/moc" |
239 |
+ use qt5 && append-cxxflags -std=c++11 |
240 |
+ econf \ |
241 |
+ --disable-debian-menu \ |
242 |
+ $(use_enable gsl) \ |
243 |
+ $(use_enable pulseaudio pulse) \ |
244 |
+ $(use_enable qt5) \ |
245 |
+ $(use_enable !qt5 gtk3) |
246 |
+} |
247 |
|
248 |
diff --git a/media-video/guvcview/metadata.xml b/media-video/guvcview/metadata.xml |
249 |
new file mode 100644 |
250 |
index 0000000..21e3aff |
251 |
--- /dev/null |
252 |
+++ b/media-video/guvcview/metadata.xml |
253 |
@@ -0,0 +1,36 @@ |
254 |
+<?xml version="1.0" encoding="UTF-8"?> |
255 |
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
256 |
+<catmetadata> |
257 |
+ <longdescription lang="en"> |
258 |
+ The media-video category contains video-related applications. |
259 |
+ </longdescription> |
260 |
+ <longdescription lang="de"> |
261 |
+ Die Kategorie media-video enthält Applikationen rund um das Thema Video. |
262 |
+ </longdescription> |
263 |
+ <longdescription lang="es"> |
264 |
+ La categoría media-video contiene aplicaciones para video. |
265 |
+ </longdescription> |
266 |
+ <longdescription lang="ja"> |
267 |
+ media-videoカテゴリーにはビデオ関連のアプリケーションが含まれています。 |
268 |
+ </longdescription> |
269 |
+ <longdescription lang="nl"> |
270 |
+ De media-video categorie bevat video-applicaties. |
271 |
+ </longdescription> |
272 |
+ <longdescription lang="vi"> |
273 |
+ Nhóm media-video chứa các ứng dụng liên quan đến phim ảnh. |
274 |
+ </longdescription> |
275 |
+ <longdescription lang="sk"> |
276 |
+ Kategória media-video obsahuje aplikácie pre prácu s videomateriálom. |
277 |
+ </longdescription> |
278 |
+ <longdescription lang="it"> |
279 |
+ La categoria media-video contiene applicazioni video. |
280 |
+ </longdescription> |
281 |
+ <longdescription lang="pt"> |
282 |
+ A categoria media-video contém aplicações de vídeo. |
283 |
+ </longdescription> |
284 |
+ <longdescription lang="pl"> |
285 |
+ Kategoria media-video zawiera pakiety związane z odtwarzaniem i |
286 |
+ przetwarzaniem filmów. |
287 |
+ </longdescription> |
288 |
+</catmetadata> |
289 |
+ |