Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/webcamoid/files/, media-video/webcamoid/
Date: Sun, 27 Dec 2020 09:29:15
Message-Id: 1609061342.f830d5261fdcf57d1b3437d21c9072550dd94209.asturm@gentoo
1 commit: f830d5261fdcf57d1b3437d21c9072550dd94209
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 27 01:37:14 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 27 09:29:02 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f830d526
7
8 media-video/webcamoid: Drop 8.1.0-r1
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-video/webcamoid/Manifest | 1 -
14 .../webcamoid/files/webcamoid-8.1.0-ffmpeg-4.patch | 169 ---------------------
15 media-video/webcamoid/webcamoid-8.1.0-r1.ebuild | 99 ------------
16 3 files changed, 269 deletions(-)
17
18 diff --git a/media-video/webcamoid/Manifest b/media-video/webcamoid/Manifest
19 index fbfc6eadc45..e7fd9d46106 100644
20 --- a/media-video/webcamoid/Manifest
21 +++ b/media-video/webcamoid/Manifest
22 @@ -1,2 +1 @@
23 -DIST webcamoid-8.1.0.tar.gz 10062681 BLAKE2B e9501ace9ba42abdae4be4e9e689329b02796198fe2610ef3a404535d389a6aa7a7e540148548dd63ea6ba78c9b650b30f5497396e49b37d7ab06ca8708ad056 SHA512 6db53ed29288889c05955967d961b53fa0e4171aeed12cd1557829c26bb2e2031804319fcead4c5b888a695cfd84f531a27f992be56c38366076ff2945ec2dbb
24 DIST webcamoid-8.7.1.tar.gz 8900338 BLAKE2B f379811cf9e44e67caa80c301c2774f13c686fa4721b5adc85dcd803ea97edb07073e53575c7dae8dab4ebfa0a9ee4f3691511cc7ddd6b55f84ae2cc77cd3c52 SHA512 b9a4b1dd4c863ab126e304eabce47c025ec0e3eb85a5b42035d26caa004399bde733913c0a5598ada3deb01673bd42ea54c9d2b06d300608582e63dda75d9bf6
25
26 diff --git a/media-video/webcamoid/files/webcamoid-8.1.0-ffmpeg-4.patch b/media-video/webcamoid/files/webcamoid-8.1.0-ffmpeg-4.patch
27 deleted file mode 100644
28 index 005d45255d3..00000000000
29 --- a/media-video/webcamoid/files/webcamoid-8.1.0-ffmpeg-4.patch
30 +++ /dev/null
31 @@ -1,169 +0,0 @@
32 -Description: Patch to build with FFmpeg 4.0
33 - https://github.com/webcamoid/webcamoid/pull/119/
34 - commits/52fbf8376085aded2d87397be58cda6e209d3bb7
35 -Author: https://github.com/webcamoid/webcamoid/commits?author=jbeich
36 -Reviewed-By: Herbert Parentes Fortes Neto <hpfn@××××××.org>
37 -Last-Update: 2018-07-21
38 -Index: webcamoid/libAvKys/Plugins/MultiSink/src/ffmpeg/src/abstractstream.cpp
39 -===================================================================
40 ---- webcamoid.orig/libAvKys/Plugins/MultiSink/src/ffmpeg/src/abstractstream.cpp
41 -+++ webcamoid/libAvKys/Plugins/MultiSink/src/ffmpeg/src/abstractstream.cpp
42 -@@ -62,7 +62,7 @@ AbstractStream::AbstractStream(const AVF
43 -
44 - // Some formats want stream headers to be separate.
45 - if (formatContext->oformat->flags & AVFMT_GLOBALHEADER)
46 -- this->m_codecContext->flags |= CODEC_FLAG_GLOBAL_HEADER;
47 -+ this->m_codecContext->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
48 -
49 - this->m_codecContext->strict_std_compliance = CODEC_COMPLIANCE;
50 -
51 -Index: webcamoid/libAvKys/Plugins/MultiSink/src/ffmpeg/src/abstractstream.h
52 -===================================================================
53 ---- webcamoid.orig/libAvKys/Plugins/MultiSink/src/ffmpeg/src/abstractstream.h
54 -+++ webcamoid/libAvKys/Plugins/MultiSink/src/ffmpeg/src/abstractstream.h
55 -@@ -29,6 +29,15 @@ extern "C"
56 - {
57 - #include <libavformat/avformat.h>
58 - #include <libavcodec/avcodec.h>
59 -+ #ifndef AV_CODEC_CAP_EXPERIMENTAL
60 -+ #define AV_CODEC_CAP_EXPERIMENTAL CODEC_CAP_EXPERIMENTAL
61 -+ #endif
62 -+ #ifndef AV_CODEC_CAP_VARIABLE_FRAME_SIZE
63 -+ #define AV_CODEC_CAP_VARIABLE_FRAME_SIZE CODEC_CAP_VARIABLE_FRAME_SIZE
64 -+ #endif
65 -+ #ifndef AV_CODEC_FLAG_GLOBAL_HEADER
66 -+ #define AV_CODEC_FLAG_GLOBAL_HEADER CODEC_FLAG_GLOBAL_HEADER
67 -+ #endif
68 - }
69 -
70 - #define CODEC_COMPLIANCE FF_COMPLIANCE_VERY_STRICT
71 -Index: webcamoid/libAvKys/Plugins/MultiSink/src/ffmpeg/src/audiostream.cpp
72 -===================================================================
73 ---- webcamoid.orig/libAvKys/Plugins/MultiSink/src/ffmpeg/src/audiostream.cpp
74 -+++ webcamoid/libAvKys/Plugins/MultiSink/src/ffmpeg/src/audiostream.cpp
75 -@@ -267,7 +267,7 @@ void AudioStream::convertPacket(const Ak
76 - this->deleteFrame(&this->m_frame);
77 - this->m_frame = oFrame;
78 -
79 -- if (codecContext->codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE
80 -+ if (codecContext->codec->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE
81 - || oFrame->nb_samples >= codecContext->frame_size) {
82 - this->m_frameReady.wakeAll();
83 - }
84 -@@ -280,7 +280,7 @@ int AudioStream::encodeData(AVFrame *fra
85 - auto codecContext = this->codecContext();
86 -
87 - if (!frame
88 -- && codecContext->codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE)
89 -+ && codecContext->codec->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE)
90 - return AVERROR_EOF;
91 -
92 - if (frame) {
93 -@@ -366,7 +366,7 @@ AVFrame *AudioStream::dequeueFrame()
94 - this->m_frameMutex.lock();
95 -
96 - if (!this->m_frame
97 -- || (!(codecContext->codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE)
98 -+ || (!(codecContext->codec->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE)
99 - && this->m_frame->nb_samples < codecContext->frame_size)) {
100 - if (!this->m_frameReady.wait(&this->m_frameMutex, THREAD_WAIT_LIMIT)) {
101 - this->m_frameMutex.unlock();
102 -@@ -377,7 +377,7 @@ AVFrame *AudioStream::dequeueFrame()
103 -
104 - AVFrame *oFrame = nullptr;
105 -
106 -- if (codecContext->codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE
107 -+ if (codecContext->codec->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE
108 - || this->m_frame->nb_samples == codecContext->frame_size) {
109 - oFrame = this->m_frame;
110 - this->m_frame = nullptr;
111 -Index: webcamoid/libAvKys/Plugins/MultiSink/src/ffmpeg/src/videostream.cpp
112 -===================================================================
113 ---- webcamoid.orig/libAvKys/Plugins/MultiSink/src/ffmpeg/src/videostream.cpp
114 -+++ webcamoid/libAvKys/Plugins/MultiSink/src/ffmpeg/src/videostream.cpp
115 -@@ -273,8 +273,10 @@ int VideoStream::encodeData(AVFrame *fra
116 - {
117 - auto formatContext = this->formatContext();
118 -
119 -+#ifdef AVFMT_RAWPICTURE
120 - if (!frame && formatContext->oformat->flags & AVFMT_RAWPICTURE)
121 - return AVERROR_EOF;
122 -+#endif
123 -
124 - auto codecContext = this->codecContext();
125 -
126 -@@ -300,6 +302,7 @@ int VideoStream::encodeData(AVFrame *fra
127 -
128 - auto stream = this->stream();
129 -
130 -+#ifdef AVFMT_RAWPICTURE
131 - if (formatContext->oformat->flags & AVFMT_RAWPICTURE) {
132 - // Raw video case - directly store the picture in the packet
133 - AVPacket pkt;
134 -@@ -315,6 +318,7 @@ int VideoStream::encodeData(AVFrame *fra
135 -
136 - return 0;
137 - }
138 -+#endif
139 -
140 - // encode the image
141 - #ifdef HAVE_SENDRECV
142 -Index: webcamoid/libAvKys/Plugins/MultiSrc/src/ffmpeg/src/abstractstream.cpp
143 -===================================================================
144 ---- webcamoid.orig/libAvKys/Plugins/MultiSrc/src/ffmpeg/src/abstractstream.cpp
145 -+++ webcamoid/libAvKys/Plugins/MultiSrc/src/ffmpeg/src/abstractstream.cpp
146 -@@ -96,8 +96,10 @@ AbstractStream::AbstractStream(const AVF
147 - this->m_codecContext->idct_algo = FF_IDCT_AUTO;
148 - this->m_codecContext->error_concealment = FF_EC_GUESS_MVS | FF_EC_DEBLOCK;
149 -
150 -+#ifdef CODEC_FLAG_EMU_EDGE
151 - if (this->m_codec->capabilities & CODEC_CAP_DR1)
152 - this->m_codecContext->flags |= CODEC_FLAG_EMU_EDGE;
153 -+#endif
154 -
155 - av_dict_set(&this->m_codecOptions, "refcounted_frames", "0", 0);
156 - }
157 -Index: webcamoid/libAvKys/Plugins/VideoCapture/src/ffmpeg/src/convertvideoffmpeg.cpp
158 -===================================================================
159 ---- webcamoid.orig/libAvKys/Plugins/VideoCapture/src/ffmpeg/src/convertvideoffmpeg.cpp
160 -+++ webcamoid/libAvKys/Plugins/VideoCapture/src/ffmpeg/src/convertvideoffmpeg.cpp
161 -@@ -19,6 +19,10 @@
162 -
163 - #include <QMetaEnum>
164 -
165 -+#ifndef AV_CODEC_FLAG_TRUNCATED
166 -+#define AV_CODEC_FLAG_TRUNCATED CODEC_FLAG_TRUNCATED
167 -+#endif
168 -+
169 - #include "convertvideoffmpeg.h"
170 -
171 - #define THREAD_WAIT_LIMIT 500
172 -@@ -219,11 +223,13 @@ bool ConvertVideoFFmpeg::init(const AkCa
173 - if (!this->m_codecContext)
174 - return false;
175 -
176 -- if (codec->capabilities & CODEC_CAP_TRUNCATED)
177 -- this->m_codecContext->flags |= CODEC_FLAG_TRUNCATED;
178 -+ if (codec->capabilities & AV_CODEC_CAP_TRUNCATED)
179 -+ this->m_codecContext->flags |= AV_CODEC_FLAG_TRUNCATED;
180 -
181 -+#ifdef CODEC_FLAG_EMU_EDGE
182 - if (codec->capabilities & CODEC_CAP_DR1)
183 - this->m_codecContext->flags |= CODEC_FLAG_EMU_EDGE;
184 -+#endif
185 -
186 - this->m_codecContext->pix_fmt = rawToFF->value(fourcc, AV_PIX_FMT_NONE);
187 - this->m_codecContext->width = caps.property("width").toInt();
188 -Index: webcamoid/libAvKys/Plugins/MultiSink/src/ffmpeg/src/mediawriterffmpeg.cpp
189 -===================================================================
190 ---- webcamoid.orig/libAvKys/Plugins/MultiSink/src/ffmpeg/src/mediawriterffmpeg.cpp
191 -+++ webcamoid/libAvKys/Plugins/MultiSink/src/ffmpeg/src/mediawriterffmpeg.cpp
192 -@@ -251,7 +251,7 @@ class MediaWriterFFmpegGlobal
193 - AVCodec *codec = nullptr;
194 -
195 - while ((codec = av_codec_next(codec))) {
196 -- if (codec->capabilities & CODEC_CAP_EXPERIMENTAL
197 -+ if (codec->capabilities & AV_CODEC_CAP_EXPERIMENTAL
198 - && CODEC_COMPLIANCE > FF_COMPLIANCE_EXPERIMENTAL)
199 - continue;
200 -
201
202 diff --git a/media-video/webcamoid/webcamoid-8.1.0-r1.ebuild b/media-video/webcamoid/webcamoid-8.1.0-r1.ebuild
203 deleted file mode 100644
204 index 27a60e4ee26..00000000000
205 --- a/media-video/webcamoid/webcamoid-8.1.0-r1.ebuild
206 +++ /dev/null
207 @@ -1,99 +0,0 @@
208 -# Copyright 1999-2020 Gentoo Authors
209 -# Distributed under the terms of the GNU General Public License v2
210 -
211 -EAPI=7
212 -
213 -PLOCALES="ca de el es et fr gl it ja kab ko nl pt ru uk zh_CN zh_TW"
214 -inherit l10n qmake-utils
215 -
216 -DESCRIPTION="A full featured webcam capture application"
217 -HOMEPAGE="https://webcamoid.github.io"
218 -SRC_URI="https://github.com/webcamoid/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
219 -
220 -LICENSE="GPL-3"
221 -SLOT="0"
222 -KEYWORDS="~amd64 ~x86"
223 -
224 -IUSE_AVKYS=( alsa coreaudio ffmpeg gstreamer jack libuvc oss pulseaudio qtaudio v4lutils videoeffects )
225 -IUSE="${IUSE_AVKYS[@]} debug headers v4l"
226 -
227 -REQUIRED_USE="v4lutils? ( v4l )"
228 -
229 -RDEPEND="
230 - dev-qt/qtconcurrent:5
231 - dev-qt/qtcore:5
232 - dev-qt/qtdeclarative:5
233 - dev-qt/qtgui:5
234 - dev-qt/qtnetwork:5
235 - dev-qt/qtopengl:5
236 - dev-qt/qtquickcontrols:5
237 - dev-qt/qtsvg:5
238 - dev-qt/qtwidgets:5
239 - ffmpeg? ( media-video/ffmpeg:= )
240 - gstreamer? ( >=media-libs/gstreamer-1.6.0 )
241 - jack? ( virtual/jack )
242 - libuvc? ( media-libs/libuvc )
243 - pulseaudio? ( media-sound/pulseaudio )
244 - qtaudio? ( dev-qt/qtmultimedia:5 )
245 - v4l? ( media-libs/libv4l )
246 -"
247 -DEPEND="${RDEPEND}
248 - >=sys-kernel/linux-headers-3.6
249 -"
250 -BDEPEND="
251 - dev-qt/linguist-tools:5
252 - virtual/pkgconfig
253 -"
254 -
255 -PATCHES=( "${FILESDIR}/${P}-ffmpeg-4.patch" )
256 -
257 -src_prepare() {
258 - local tsdir="${S}/StandAlone/share/ts"
259 - local mylrelease="$(qt5_get_bindir)"/lrelease
260 -
261 - prepare_locale() {
262 - "${mylrelease}" "${tsdir}/${1}.ts" || die "preparing ${1} locale failed"
263 - }
264 -
265 - rm_locale() {
266 - sed -i \
267 - -e '/.*share\/ts\/'${1}'\.qm.*/d' \
268 - StandAlone/translations.qrc || die
269 - }
270 -
271 - rm ${tsdir}/*.qm
272 -
273 - l10n_find_plocales_changes "${tsdir}" "" '.ts'
274 - l10n_for_each_locale_do prepare_locale
275 - l10n_for_each_disabled_locale_do rm_locale
276 -
277 - default
278 -}
279 -
280 -src_configure() {
281 - local myqmakeargs=(
282 - "CONFIG+=debug"
283 - "PREFIX=/usr"
284 - "BUILDDOCS=0"
285 - "INSTALLDEVHEADERS=$(usex headers 1 0)"
286 - "INSTALLQMLDIR=$(qt5_get_libdir)/qt5/qml"
287 - "LIBDIR=/usr/$(get_libdir)"
288 - "NOAVFOUNDATION=1"
289 - "NODSHOW=1"
290 - "NOVCAMWIN=1"
291 - "NOWASAPI=1"
292 - )
293 -
294 - use v4l || myqmakeargs+=( "NOV4L2=1" )
295 -
296 - for x in ${IUSE_AVKYS[@]}; do
297 - use ${x} || myqmakeargs+=( "NO${x^^}=1" )
298 - done
299 -
300 - eqmake5 ${myqmakeargs[@]}
301 -}
302 -
303 -src_install() {
304 - emake INSTALL_ROOT="${D}" install
305 - einstalldocs
306 -}