1 |
commit: fe1fbf319bcb246812c3c3ac9480394c1d5edb5d |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 5 16:20:21 2019 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 5 17:30:19 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe1fbf31 |
7 |
|
8 |
media-tv/kodi: Cleanup old version (Kodi 17) |
9 |
|
10 |
Package-Manager: Portage-2.3.75, Repoman-2.3.17 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
media-tv/kodi/Manifest | 6 - |
14 |
media-tv/kodi/files/generate.sh | 34 -- |
15 |
...adapt-to-deprecated-symbols-and-functions.patch | 401 --------------------- |
16 |
.../kodi-17-fix-audio-with-latest-ffmpeg.patch | 15 - |
17 |
media-tv/kodi/files/kodi-17.6-nmblookup.patch | 25 -- |
18 |
media-tv/kodi/files/kodi-17.6-wrapper.patch | 39 -- |
19 |
media-tv/kodi/files/kodi-cmake-no-java.patch | 56 --- |
20 |
media-tv/kodi/kodi-17.6-r11.ebuild | 277 -------------- |
21 |
media-tv/kodi/metadata.xml | 2 - |
22 |
9 files changed, 855 deletions(-) |
23 |
|
24 |
diff --git a/media-tv/kodi/Manifest b/media-tv/kodi/Manifest |
25 |
index edb5036b3d2..c921311ac0c 100644 |
26 |
--- a/media-tv/kodi/Manifest |
27 |
+++ b/media-tv/kodi/Manifest |
28 |
@@ -1,13 +1,7 @@ |
29 |
-DIST ffmpeg-kodi-3.1.11-Krypton-17.5.tar.gz 11188798 BLAKE2B bb91a89a47f3ea6894f28834b477cc2c2db64590e0202b784182f724e89fb385385218463404076565bedcd41a81797c2f340ce579aee75e09f2c99ae494031d SHA512 b28bb6970c6767213f34e5f4f3e48ad5219a6c668a5264ff7de0a42712cb7393f389ddd88f56785a2dc8089f8231ae5fd05adfa10dbf15ea3e0ad7bc2ccd4d73 |
30 |
DIST ffmpeg-kodi-4.0.3-Leia-18.2.tar.gz 12426917 BLAKE2B 83da9511d7b4ef6a8c813561a061c4fe86712e4424c30c9005500751c6c79f4232910caaf13cd34d2db1867f592b042dd291d6c32a77f80107ce87a3a7db1760 SHA512 b4d4bf16f05b953ba81769446c8fd90246e1919b9ef671fb212008151c83d8445e4123ad37c352aa6243074962832e817749d2de318eb721d5bb5d655fd77ab2 |
31 |
DIST ffmpeg-kodi-4.0.4-Leia-18.4.tar.gz 12430413 BLAKE2B 6de6fde2c16264f851466b46f87c23c34e7d503203f69d47342d46034f153860190d196da51221f866315405c8a33325b2160283333256ee5d5e293336afae99 SHA512 c6dd75dbff7119adeeda246cfb640b5e8d3b4c242ef83e5ba070207b60f0c715c3fe3cb328d87687b70a133f122a03aba990f0e95f3aac7d5dbcee25bec59078 |
32 |
-DIST kodi-17.6-generated-addons.tar.xz 57564 BLAKE2B 9b3000ac23a6aab24b703a2b66016dbf0637ff3d615b89435cba3717acb913a4543bb57aaa9ae59a9493891ba62af06414ef2c0cea3a81e9ec32ea60e209330d SHA512 ee1344e859b2871f9dd3e2f2f75f9c0f9f787ac111a6b9ab8f80af6524a786d51baeb4f247a8c5b35001073be49bf4289d1c63e3114625143f3747aa9b1f4be2 |
33 |
-DIST kodi-17.6.tar.gz 58275293 BLAKE2B 538675b7a3400d9182f957da9bbf609ce5ece502c3a7f4a32e26c802bae9795979554204148e06d1923d8e68ba1f06f9d92bf11416f73cf9431381642ca00639 SHA512 1f1ba91e6129ab423f9ad47b63d7bb75775dbf18638a96413a572aaa790f4f0d738ca35486513e158a7f55d501f78f08dd9d68aabe2fbb80a729c6091b264111 |
34 |
DIST kodi-18.3.tar.gz 51013397 BLAKE2B cce29d481397dddd3c942f83a034bc6d73eafc1be2a50436e1e5611ccf04c27e6110c4b4f99f7f7d1cf8da3e2550209c8bee3db6e98136b8fa9738c4b1fc7e43 SHA512 4e898e28238dcbc67e106c5a0ef88bd6a82f8c0ad00e77e3ddbe2da6181b37d9ca1ba6bda57206223cfa119c5291edb4410d3e773d97b5ab67660e49929437ec |
35 |
DIST kodi-18.4.tar.gz 51027569 BLAKE2B 47e3377abb4a1e5a3c26b1519f45ab9347127467594841ac689b857a3f4163731951d4e1e4960bce5c2af4fa224acf4a3887f42bdc41a603bba4979d3bcbcda8 SHA512 ae08fc29d20387d9352dc1ae4a89da19962a279b89705ff8f7869377281589d44a685cebaa8509d3252ae79215dcdaadb72e9fa752e6d2bce59974bc23276aad |
36 |
DIST libdvdcss-1.4.2-Leia-Beta-5.tar.gz 101068 BLAKE2B 283aa2cec0a2200d3569bc280cb9659e9224a6b3a77db8a35b269cd8caf1337ac9d8b92b806df66f63ef7458a46bd6261f0b8b14678b10e26644a79dcbeea5da SHA512 5185dbdbeb1bd13ea9d8723f1f4ab599d6f3102f5ba1096cd085aa1cda252c045f327c719227bba8e1b742352ade5e335106c8d0c1637a5a6b93ce661620dd7e |
37 |
-DIST libdvdcss-2f12236bc1c92f73c21e973363f79eb300de603f.tar.gz 95395 BLAKE2B fb3973e098201d177309ad7ca50131725eee4bc6f30f425efa5fea406411f6143ba03abd82cd6c91a250419d3e0a29aafcbf981ba015f6e14cd0ceb001222c12 SHA512 12ba7aa653fcb26d5336bf2a8110c924d634cec79f684bbf19dc38ea33f69fb68c22c97f4c09e5ca7c35f95f6c324a6d70ccc2c501a99122a9321cafd33b2cd9 |
38 |
-DIST libdvdnav-43b5f81f5fe30bceae3b7cecf2b0ca57fc930dac.tar.gz 130603 BLAKE2B 0a211fcedb216567bcd929048af01486ff91efbb8d31592fd116676b6ae95de3cd7bfab7cd79853b3d15e96c27e62cce8c79eeb9baee68a1bad4f3fce8a207a0 SHA512 901c6f24afa1d78b6ed78d1ee30daf634ca0bbc0467ef9cc3416bcab4fbc4fda6869ffa051791d85c0b510de748805328627681ef044668a7857299f0035232e |
39 |
DIST libdvdnav-6.0.0-Leia-Alpha-3.tar.gz 137942 BLAKE2B 7573434a0ae8e8ccabf48173f81fcde29074eb138e119a2ae9156cde3c3d8bfd716f5d0e605b97f2dcac21f570781137c8533c5ae306b51e3905822fda318355 SHA512 11c93eaacd156f8fd7dec7c43d366438b201f31ad55b2870463a9e286912b6ada08882319a021fb7992190f87b909a49f2b83e0321cc17aedc29f7fe5898fa72 |
40 |
-DIST libdvdread-17d99db97e7b8f23077b342369d3c22a6250affd.tar.gz 124326 BLAKE2B 37521d50f9983290df5209db417e39ea4f3dcf5c36eafe9f75a8c23689c7302c29c4197e40eebb0f1b35cd16e5264e251a72548a0ce2ec2ba1a3a22c1768adaf SHA512 e59ae0bfdc62698e407e3d70503c6a7c5e308545c9dae7843e25db3b5b62d9b26256be77ef4e884263add6b4abec3438c324bfd5715f6ca2ce7fa5962d43a6c2 |
41 |
DIST libdvdread-6.0.0-Leia-Alpha-3.tar.gz 130649 BLAKE2B 0c206acdaf0776841ab792c74e023af07d9539eb72e03ae164382a31ed950f60e5e15f1d055979d28f1398924471b294d11f064b11b8373353b3962a3777ff3c SHA512 b3419ba0a1a2dd70f1bb6236afdfe1c6e88c9ad4264198b289e3bba9375e077cecf7f89848c7b09debaa445327f3507101f3d157e692f7a7163b2bb52643e1e7 |
42 |
|
43 |
diff --git a/media-tv/kodi/files/generate.sh b/media-tv/kodi/files/generate.sh |
44 |
deleted file mode 100755 |
45 |
index 2e5b67fb90e..00000000000 |
46 |
--- a/media-tv/kodi/files/generate.sh |
47 |
+++ /dev/null |
48 |
@@ -1,34 +0,0 @@ |
49 |
-#!/bin/bash |
50 |
-# Generate the various interface files that normally requires java. |
51 |
-# This makes building the release versions much nicer. |
52 |
- |
53 |
-set -eux |
54 |
- |
55 |
-PV=$1 |
56 |
-PN=kodi |
57 |
-P="${PN}-${PV}" |
58 |
-DISTDIR="/usr/portage/distfiles" |
59 |
-GITDIR="/usr/local/src/kodi/git" |
60 |
- |
61 |
-if [[ ${PV} != "9999" ]] ; then |
62 |
- rm -rf xbmc-*/ |
63 |
- tar xf ${DISTDIR}/${P}.tar.gz |
64 |
- d=$(echo xbmc-*/) |
65 |
-else |
66 |
- stamp=$(date --date="$(git log -n1 --pretty=format:%ci master)" -u +%Y%m%d) |
67 |
- P+="-${stamp}" |
68 |
- cd ${GITDIR} |
69 |
- d=. |
70 |
-fi |
71 |
-#cd ${d} && git init . && git add . && git commit -qmm && cd .. |
72 |
-make -C ${d} -j -f codegenerator.mk |
73 |
-tar="${DISTDIR}/${P}-generated-addons.tar.xz" |
74 |
-tar cf - \ |
75 |
- ${d}/xbmc/interfaces/python/generated/*.cpp \ |
76 |
- ${d}/xbmc/interfaces/json-rpc/ServiceDescription.h \ |
77 |
- | xz > "${tar}" |
78 |
-if [[ ${PV} != "9999" ]] ; then |
79 |
- rm -rf xbmc-*/ |
80 |
-fi |
81 |
- |
82 |
-du -b "${tar}" |
83 |
|
84 |
diff --git a/media-tv/kodi/files/kodi-17-adapt-to-deprecated-symbols-and-functions.patch b/media-tv/kodi/files/kodi-17-adapt-to-deprecated-symbols-and-functions.patch |
85 |
deleted file mode 100644 |
86 |
index 0ec08810db5..00000000000 |
87 |
--- a/media-tv/kodi/files/kodi-17-adapt-to-deprecated-symbols-and-functions.patch |
88 |
+++ /dev/null |
89 |
@@ -1,401 +0,0 @@ |
90 |
-From 19f28e88a5dfed82e9844f69210f7c045f18ca8e Mon Sep 17 00:00:00 2001 |
91 |
-From: Rainer Hochecker <fernetmenta@××××××.de> |
92 |
-Date: Wed, 1 Nov 2017 16:12:13 +0100 |
93 |
-Subject: [PATCH] ffmpeg: drop deprecated symbols and functions |
94 |
- |
95 |
---- |
96 |
- xbmc/cdrip/EncoderFFmpeg.cpp | 4 +- |
97 |
- .../AudioEngine/Encoders/AEEncoderFFmpeg.h | 2 +- |
98 |
- .../AudioEngine/Engines/ActiveAE/ActiveAE.cpp | 2 +- |
99 |
- .../Engines/ActiveAE/ActiveAEFilter.cpp | 6 +-- |
100 |
- .../DVDCodecs/Audio/DVDAudioCodecFFmpeg.cpp | 6 +-- |
101 |
- .../Overlay/DVDOverlayCodecFFmpeg.cpp | 2 +- |
102 |
- .../DVDCodecs/Video/DVDVideoCodec.h | 1 + |
103 |
- .../DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp | 39 +++++-------------- |
104 |
- .../DVDCodecs/Video/DVDVideoPPFFmpeg.cpp | 5 +-- |
105 |
- .../VideoPlayer/DVDCodecs/Video/VAAPI.cpp | 4 +- |
106 |
- .../DVDDemuxers/DVDDemuxClient.cpp | 6 +-- |
107 |
- .../DVDDemuxers/DVDDemuxFFmpeg.cpp | 6 +-- |
108 |
- .../VideoPlayer/DVDDemuxers/DVDDemuxUtils.cpp | 4 +- |
109 |
- xbmc/cores/VideoPlayer/VideoPlayerVideo.cpp | 1 - |
110 |
- xbmc/guilib/FFmpegImage.cpp | 4 +- |
111 |
- xbmc/utils/BitstreamConverter.cpp | 12 +++--- |
112 |
- 16 files changed, 40 insertions(+), 64 deletions(-) |
113 |
- |
114 |
-Index: kodi-17.6+dfsg1/xbmc/cdrip/EncoderFFmpeg.cpp |
115 |
-=================================================================== |
116 |
---- kodi-17.6+dfsg1.orig/xbmc/cdrip/EncoderFFmpeg.cpp |
117 |
-+++ kodi-17.6+dfsg1/xbmc/cdrip/EncoderFFmpeg.cpp |
118 |
-@@ -119,8 +119,8 @@ |
119 |
- |
120 |
- if(m_Format->oformat->flags & AVFMT_GLOBALHEADER) |
121 |
- { |
122 |
-- m_CodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER; |
123 |
-- m_Format->flags |= CODEC_FLAG_GLOBAL_HEADER; |
124 |
-+ m_CodecCtx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; |
125 |
-+ m_Format->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; |
126 |
- } |
127 |
- |
128 |
- switch(m_iInBitsPerSample) |
129 |
-Index: kodi-17.6+dfsg1/xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.h |
130 |
-=================================================================== |
131 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.h |
132 |
-+++ kodi-17.6+dfsg1/xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.h |
133 |
-@@ -56,7 +56,7 @@ |
134 |
- SwrContext *m_SwrCtx; |
135 |
- CAEChannelInfo m_Layout; |
136 |
- AVPacket m_Pkt; |
137 |
-- uint8_t m_Buffer[8 + FF_MIN_BUFFER_SIZE]; |
138 |
-+ uint8_t m_Buffer[8 + AV_INPUT_BUFFER_MIN_SIZE]; |
139 |
- int m_BufferSize; |
140 |
- int m_OutputSize; |
141 |
- double m_OutputRatio; |
142 |
-Index: kodi-17.6+dfsg1/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp |
143 |
-=================================================================== |
144 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp |
145 |
-+++ kodi-17.6+dfsg1/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp |
146 |
-@@ -2955,7 +2955,7 @@ |
147 |
- int fileSize = sound->GetFileSize(); |
148 |
- |
149 |
- fmt_ctx = avformat_alloc_context(); |
150 |
-- unsigned char* buffer = (unsigned char*)av_malloc(SOUNDBUFFER_SIZE+FF_INPUT_BUFFER_PADDING_SIZE); |
151 |
-+ unsigned char* buffer = (unsigned char*)av_malloc(SOUNDBUFFER_SIZE+AV_INPUT_BUFFER_PADDING_SIZE); |
152 |
- io_ctx = avio_alloc_context(buffer, SOUNDBUFFER_SIZE, 0, |
153 |
- sound, CActiveAESound::Read, NULL, CActiveAESound::Seek); |
154 |
- io_ctx->max_packet_size = sound->GetChunkSize(); |
155 |
-Index: kodi-17.6+dfsg1/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEFilter.cpp |
156 |
-=================================================================== |
157 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEFilter.cpp |
158 |
-+++ kodi-17.6+dfsg1/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEFilter.cpp |
159 |
-@@ -91,8 +91,8 @@ |
160 |
- return false; |
161 |
- } |
162 |
- |
163 |
-- AVFilter* srcFilter = avfilter_get_by_name("abuffer"); |
164 |
-- AVFilter* outFilter = avfilter_get_by_name("abuffersink"); |
165 |
-+ const AVFilter* srcFilter = avfilter_get_by_name("abuffer"); |
166 |
-+ const AVFilter* outFilter = avfilter_get_by_name("abuffersink"); |
167 |
- |
168 |
- std::string args = StringUtils::Format("time_base=1/%d:sample_rate=%d:sample_fmt=%s:channel_layout=0x%" PRIx64, |
169 |
- m_sampleRate, |
170 |
-@@ -121,7 +121,7 @@ |
171 |
- |
172 |
- bool CActiveAEFilter::CreateAtempoFilter() |
173 |
- { |
174 |
-- AVFilter *atempo; |
175 |
-+ const AVFilter *atempo; |
176 |
- |
177 |
- atempo = avfilter_get_by_name("atempo"); |
178 |
- m_pFilterCtxAtempo = avfilter_graph_alloc_filter(m_pFilterGraph, atempo, "atempo"); |
179 |
-Index: kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Audio/DVDAudioCodecFFmpeg.cpp |
180 |
-=================================================================== |
181 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/VideoPlayer/DVDCodecs/Audio/DVDAudioCodecFFmpeg.cpp |
182 |
-+++ kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Audio/DVDAudioCodecFFmpeg.cpp |
183 |
-@@ -82,8 +82,8 @@ |
184 |
- m_pCodecContext->debug = 0; |
185 |
- m_pCodecContext->workaround_bugs = 1; |
186 |
- |
187 |
-- if (pCodec->capabilities & CODEC_CAP_TRUNCATED) |
188 |
-- m_pCodecContext->flags |= CODEC_FLAG_TRUNCATED; |
189 |
-+ if (pCodec->capabilities & AV_CODEC_CAP_TRUNCATED) |
190 |
-+ m_pCodecContext->flags |= AV_CODEC_FLAG_TRUNCATED; |
191 |
- |
192 |
- m_matrixEncoding = AV_MATRIX_ENCODING_NONE; |
193 |
- m_channels = 0; |
194 |
-@@ -98,7 +98,7 @@ |
195 |
- |
196 |
- if( hints.extradata && hints.extrasize > 0 ) |
197 |
- { |
198 |
-- m_pCodecContext->extradata = (uint8_t*)av_mallocz(hints.extrasize + FF_INPUT_BUFFER_PADDING_SIZE); |
199 |
-+ m_pCodecContext->extradata = (uint8_t*)av_mallocz(hints.extrasize + AV_INPUT_BUFFER_PADDING_SIZE); |
200 |
- if(m_pCodecContext->extradata) |
201 |
- { |
202 |
- m_pCodecContext->extradata_size = hints.extrasize; |
203 |
-Index: kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp |
204 |
-=================================================================== |
205 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/VideoPlayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp |
206 |
-+++ kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp |
207 |
-@@ -73,7 +73,7 @@ |
208 |
- if( hints.extradata && hints.extrasize > 0 ) |
209 |
- { |
210 |
- m_pCodecContext->extradata_size = hints.extrasize; |
211 |
-- m_pCodecContext->extradata = (uint8_t*)av_mallocz(hints.extrasize + FF_INPUT_BUFFER_PADDING_SIZE); |
212 |
-+ m_pCodecContext->extradata = (uint8_t*)av_mallocz(hints.extrasize + AV_INPUT_BUFFER_PADDING_SIZE); |
213 |
- memcpy(m_pCodecContext->extradata, hints.extradata, hints.extrasize); |
214 |
- |
215 |
- // start parsing of extra data - create a copy to be safe and make it zero-terminating to avoid access violations! |
216 |
-Index: kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodec.h |
217 |
-=================================================================== |
218 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodec.h |
219 |
-+++ kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodec.h |
220 |
-@@ -118,6 +118,7 @@ |
221 |
- int8_t* qp_table; //< Quantization parameters, primarily used by filters |
222 |
- int qstride; |
223 |
- int qscale_type; |
224 |
-+ int pict_type; |
225 |
- |
226 |
- unsigned int iWidth; |
227 |
- unsigned int iHeight; |
228 |
-Index: kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp |
229 |
-=================================================================== |
230 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp |
231 |
-+++ kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp |
232 |
-@@ -171,7 +171,7 @@ |
233 |
- ctx->SetHardware(NULL); |
234 |
- avctx->get_buffer2 = avcodec_default_get_buffer2; |
235 |
- avctx->slice_flags = 0; |
236 |
-- avctx->hwaccel_context = 0; |
237 |
-+ av_buffer_unref(&avctx->hw_frames_ctx); |
238 |
- } |
239 |
- |
240 |
- const AVPixelFormat * cur = fmt; |
241 |
-@@ -382,16 +382,6 @@ |
242 |
- else |
243 |
- m_decoderState = STATE_SW_SINGLE; |
244 |
- |
245 |
--#if defined(TARGET_DARWIN_IOS) |
246 |
-- // ffmpeg with enabled neon will crash and burn if this is enabled |
247 |
-- m_pCodecContext->flags &= CODEC_FLAG_EMU_EDGE; |
248 |
--#else |
249 |
-- if (pCodec->id != AV_CODEC_ID_H264 && pCodec->capabilities & CODEC_CAP_DR1 |
250 |
-- && pCodec->id != AV_CODEC_ID_VP8 |
251 |
-- ) |
252 |
-- m_pCodecContext->flags |= CODEC_FLAG_EMU_EDGE; |
253 |
--#endif |
254 |
-- |
255 |
- // if we don't do this, then some codecs seem to fail. |
256 |
- m_pCodecContext->coded_height = hints.height; |
257 |
- m_pCodecContext->coded_width = hints.width; |
258 |
-@@ -400,7 +390,7 @@ |
259 |
- if( hints.extradata && hints.extrasize > 0 ) |
260 |
- { |
261 |
- m_pCodecContext->extradata_size = hints.extrasize; |
262 |
-- m_pCodecContext->extradata = (uint8_t*)av_mallocz(hints.extrasize + FF_INPUT_BUFFER_PADDING_SIZE); |
263 |
-+ m_pCodecContext->extradata = (uint8_t*)av_mallocz(hints.extrasize + AV_INPUT_BUFFER_PADDING_SIZE); |
264 |
- memcpy(m_pCodecContext->extradata, hints.extradata, hints.extrasize); |
265 |
- } |
266 |
- |
267 |
-@@ -791,6 +781,7 @@ |
268 |
- m_droppedFrames = 0; |
269 |
- m_iLastKeyframe = m_pCodecContext->has_b_frames; |
270 |
- avcodec_flush_buffers(m_pCodecContext); |
271 |
-+ av_frame_unref(m_pFrame); |
272 |
- |
273 |
- if (m_pHardware) |
274 |
- m_pHardware->Reset(); |
275 |
-@@ -883,22 +874,10 @@ |
276 |
- pDvdVideoPicture->color_range = 0; |
277 |
- |
278 |
- int qscale_type; |
279 |
-- pDvdVideoPicture->qp_table = av_frame_get_qp_table(m_pFrame, &pDvdVideoPicture->qstride, &qscale_type); |
280 |
-- |
281 |
-- switch (qscale_type) |
282 |
-- { |
283 |
-- case FF_QSCALE_TYPE_MPEG1: |
284 |
-- pDvdVideoPicture->qscale_type = DVP_QSCALE_MPEG1; |
285 |
-- break; |
286 |
-- case FF_QSCALE_TYPE_MPEG2: |
287 |
-- pDvdVideoPicture->qscale_type = DVP_QSCALE_MPEG2; |
288 |
-- break; |
289 |
-- case FF_QSCALE_TYPE_H264: |
290 |
-- pDvdVideoPicture->qscale_type = DVP_QSCALE_H264; |
291 |
-- break; |
292 |
-- default: |
293 |
-- pDvdVideoPicture->qscale_type = DVP_QSCALE_UNKNOWN; |
294 |
-- } |
295 |
-+ pDvdVideoPicture->qp_table = av_frame_get_qp_table(m_pFrame, |
296 |
-+ &pDvdVideoPicture->qstride, |
297 |
-+ &pDvdVideoPicture->qscale_type); |
298 |
-+ pDvdVideoPicture->pict_type = m_pFrame->pict_type; |
299 |
- |
300 |
- if (pDvdVideoPicture->iRepeatPicture) |
301 |
- pDvdVideoPicture->dts = DVD_NOPTS_VALUE; |
302 |
-@@ -989,8 +968,8 @@ |
303 |
- return -1; |
304 |
- } |
305 |
- |
306 |
-- AVFilter* srcFilter = avfilter_get_by_name("buffer"); |
307 |
-- AVFilter* outFilter = avfilter_get_by_name("buffersink"); // should be last filter in the graph for now |
308 |
-+ const AVFilter* srcFilter = avfilter_get_by_name("buffer"); |
309 |
-+ const AVFilter* outFilter = avfilter_get_by_name("buffersink"); // should be last filter in the graph for now |
310 |
- |
311 |
- std::string args = StringUtils::Format("%d:%d:%d:%d:%d:%d:%d", |
312 |
- m_pCodecContext->width, |
313 |
-Index: kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoPPFFmpeg.cpp |
314 |
-=================================================================== |
315 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoPPFFmpeg.cpp |
316 |
-+++ kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoPPFFmpeg.cpp |
317 |
-@@ -132,15 +132,12 @@ |
318 |
- } |
319 |
- } |
320 |
- |
321 |
-- int pict_type = (m_pSource->qscale_type != DVP_QSCALE_MPEG1) ? |
322 |
-- PP_PICT_TYPE_QP2 : 0; |
323 |
-- |
324 |
- pp_postprocess((const uint8_t**)m_pSource->data, m_pSource->iLineSize, |
325 |
- m_pTarget->data, m_pTarget->iLineSize, |
326 |
- m_pSource->iWidth, m_pSource->iHeight, |
327 |
- m_pSource->qp_table, m_pSource->qstride, |
328 |
- m_pMode, m_pContext, |
329 |
-- pict_type); //m_pSource->iFrameType); |
330 |
-+ m_pSource->pict_type | m_pSource->qscale_type ? PP_PICT_TYPE_QP2 : 0); |
331 |
- |
332 |
- //Copy frame information over to target, but make sure it is set as allocated should decoder have forgotten |
333 |
- m_pTarget->iFlags = m_pSource->iFlags | DVP_FLAG_ALLOCATED; |
334 |
-Index: kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp |
335 |
-=================================================================== |
336 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp |
337 |
-+++ kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp |
338 |
-@@ -3090,8 +3090,8 @@ |
339 |
- return false; |
340 |
- } |
341 |
- |
342 |
-- AVFilter* srcFilter = avfilter_get_by_name("buffer"); |
343 |
-- AVFilter* outFilter = avfilter_get_by_name("buffersink"); |
344 |
-+ const AVFilter* srcFilter = avfilter_get_by_name("buffer"); |
345 |
-+ const AVFilter* outFilter = avfilter_get_by_name("buffersink"); |
346 |
- |
347 |
- std::string args = StringUtils::Format("%d:%d:%d:%d:%d:%d:%d", |
348 |
- m_config.vidWidth, |
349 |
-Index: kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxClient.cpp |
350 |
-=================================================================== |
351 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxClient.cpp |
352 |
-+++ kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxClient.cpp |
353 |
-@@ -25,7 +25,7 @@ |
354 |
- #include "settings/Settings.h" |
355 |
- #include "../DVDClock.h" |
356 |
- |
357 |
--#define FF_MAX_EXTRADATA_SIZE ((1 << 28) - FF_INPUT_BUFFER_PADDING_SIZE) |
358 |
-+#define FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_INPUT_BUFFER_PADDING_SIZE) |
359 |
- |
360 |
- |
361 |
- class CDemuxStreamClientInternal |
362 |
-@@ -179,9 +179,9 @@ |
363 |
- st->changes++; |
364 |
- st->disabled = false; |
365 |
- st->ExtraSize = len; |
366 |
-- st->ExtraData = new uint8_t[len+FF_INPUT_BUFFER_PADDING_SIZE]; |
367 |
-+ st->ExtraData = new uint8_t[len+AV_INPUT_BUFFER_PADDING_SIZE]; |
368 |
- memcpy(st->ExtraData, pkt->pData, len); |
369 |
-- memset((uint8_t*)st->ExtraData + len, 0 , FF_INPUT_BUFFER_PADDING_SIZE); |
370 |
-+ memset((uint8_t*)st->ExtraData + len, 0 , AV_INPUT_BUFFER_PADDING_SIZE); |
371 |
- stream->m_parser_split = false; |
372 |
- } |
373 |
- } |
374 |
-Index: kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp |
375 |
-=================================================================== |
376 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp |
377 |
-+++ kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp |
378 |
-@@ -78,7 +78,7 @@ |
379 |
- {} |
380 |
- }; |
381 |
- |
382 |
--#define FF_MAX_EXTRADATA_SIZE ((1 << 28) - FF_INPUT_BUFFER_PADDING_SIZE) |
383 |
-+#define FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_INPUT_BUFFER_PADDING_SIZE) |
384 |
- |
385 |
- std::string CDemuxStreamAudioFFmpeg::GetStreamName() |
386 |
- { |
387 |
-@@ -1881,12 +1881,12 @@ |
388 |
- // Found extradata, fill it in. This will cause |
389 |
- // a new stream to be created and used. |
390 |
- st->codec->extradata_size = i; |
391 |
-- st->codec->extradata = (uint8_t*)av_malloc(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); |
392 |
-+ st->codec->extradata = (uint8_t*)av_malloc(st->codec->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); |
393 |
- if (st->codec->extradata) |
394 |
- { |
395 |
- CLog::Log(LOGDEBUG, "CDVDDemuxFFmpeg::Read() fetching extradata, extradata_size(%d)", st->codec->extradata_size); |
396 |
- memcpy(st->codec->extradata, pkt->data, st->codec->extradata_size); |
397 |
-- memset(st->codec->extradata + i, 0, FF_INPUT_BUFFER_PADDING_SIZE); |
398 |
-+ memset(st->codec->extradata + i, 0, AV_INPUT_BUFFER_PADDING_SIZE); |
399 |
- } |
400 |
- else |
401 |
- { |
402 |
-Index: kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxUtils.cpp |
403 |
-=================================================================== |
404 |
---- kodi-17.6+dfsg1.orig/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxUtils.cpp |
405 |
-+++ kodi-17.6+dfsg1/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxUtils.cpp |
406 |
-@@ -68,7 +68,7 @@ |
407 |
- * Note, if the first 23 bits of the additional bytes are not 0 then damaged |
408 |
- * MPEG bitstreams could cause overread and segfault |
409 |
- */ |
410 |
-- pPacket->pData =(uint8_t*)_aligned_malloc(iDataSize + FF_INPUT_BUFFER_PADDING_SIZE, 16); |
411 |
-+ pPacket->pData =(uint8_t*)_aligned_malloc(iDataSize + AV_INPUT_BUFFER_PADDING_SIZE, 16); |
412 |
- if (!pPacket->pData) |
413 |
- { |
414 |
- FreeDemuxPacket(pPacket); |
415 |
-@@ -76,7 +76,7 @@ |
416 |
- } |
417 |
- |
418 |
- // reset the last 8 bytes to 0; |
419 |
-- memset(pPacket->pData + iDataSize, 0, FF_INPUT_BUFFER_PADDING_SIZE); |
420 |
-+ memset(pPacket->pData + iDataSize, 0, AV_INPUT_BUFFER_PADDING_SIZE); |
421 |
- } |
422 |
- |
423 |
- // setup defaults |
424 |
-Index: kodi-17.6+dfsg1/xbmc/guilib/FFmpegImage.cpp |
425 |
-=================================================================== |
426 |
---- kodi-17.6+dfsg1.orig/xbmc/guilib/FFmpegImage.cpp |
427 |
-+++ kodi-17.6+dfsg1/xbmc/guilib/FFmpegImage.cpp |
428 |
-@@ -551,7 +551,7 @@ |
429 |
- tdm.avOutctx->time_base.num = 1; |
430 |
- tdm.avOutctx->time_base.den = 1; |
431 |
- tdm.avOutctx->pix_fmt = jpg_output ? AV_PIX_FMT_YUVJ420P : AV_PIX_FMT_RGBA; |
432 |
-- tdm.avOutctx->flags = CODEC_FLAG_QSCALE; |
433 |
-+ tdm.avOutctx->flags = AV_CODEC_FLAG_QSCALE; |
434 |
- tdm.avOutctx->mb_lmin = tdm.avOutctx->qmin * FF_QP2LAMBDA; |
435 |
- tdm.avOutctx->mb_lmax = tdm.avOutctx->qmax * FF_QP2LAMBDA; |
436 |
- tdm.avOutctx->global_quality = tdm.avOutctx->qmin * FF_QP2LAMBDA; |
437 |
-Index: kodi-17.6+dfsg1/xbmc/utils/BitstreamConverter.cpp |
438 |
-=================================================================== |
439 |
---- kodi-17.6+dfsg1.orig/xbmc/utils/BitstreamConverter.cpp |
440 |
-+++ kodi-17.6+dfsg1/xbmc/utils/BitstreamConverter.cpp |
441 |
-@@ -686,13 +686,13 @@ |
442 |
- unit_size = extradata[0] << 8 | extradata[1]; |
443 |
- total_size += unit_size + 4; |
444 |
- |
445 |
-- if (total_size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE || |
446 |
-+ if (total_size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE || |
447 |
- (extradata + 2 + unit_size) > ((uint8_t*)in_extradata + in_extrasize)) |
448 |
- { |
449 |
- av_free(out); |
450 |
- return false; |
451 |
- } |
452 |
-- tmp = av_realloc(out, total_size + FF_INPUT_BUFFER_PADDING_SIZE); |
453 |
-+ tmp = av_realloc(out, total_size + AV_INPUT_BUFFER_PADDING_SIZE); |
454 |
- if (!tmp) |
455 |
- { |
456 |
- av_free(out); |
457 |
-@@ -713,7 +713,7 @@ |
458 |
- } |
459 |
- |
460 |
- if (out) |
461 |
-- memset(out + total_size, 0, FF_INPUT_BUFFER_PADDING_SIZE); |
462 |
-+ memset(out + total_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); |
463 |
- |
464 |
- if (!sps_seen) |
465 |
- CLog::Log(LOGDEBUG, "SPS NALU missing or invalid. The resulting stream may not play"); |
466 |
-@@ -776,13 +776,13 @@ |
467 |
- } |
468 |
- total_size += unit_size + 4; |
469 |
- |
470 |
-- if (total_size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE || |
471 |
-+ if (total_size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE || |
472 |
- (extradata + unit_size) > ((uint8_t*)in_extradata + in_extrasize)) |
473 |
- { |
474 |
- av_free(out); |
475 |
- return false; |
476 |
- } |
477 |
-- tmp = av_realloc(out, total_size + FF_INPUT_BUFFER_PADDING_SIZE); |
478 |
-+ tmp = av_realloc(out, total_size + AV_INPUT_BUFFER_PADDING_SIZE); |
479 |
- if (!tmp) |
480 |
- { |
481 |
- av_free(out); |
482 |
-@@ -796,7 +796,7 @@ |
483 |
- } |
484 |
- |
485 |
- if (out) |
486 |
-- memset(out + total_size, 0, FF_INPUT_BUFFER_PADDING_SIZE); |
487 |
-+ memset(out + total_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); |
488 |
- |
489 |
- if (!sps_seen) |
490 |
- CLog::Log(LOGDEBUG, "SPS NALU missing or invalid. The resulting stream may not play"); |
491 |
|
492 |
diff --git a/media-tv/kodi/files/kodi-17-fix-audio-with-latest-ffmpeg.patch b/media-tv/kodi/files/kodi-17-fix-audio-with-latest-ffmpeg.patch |
493 |
deleted file mode 100644 |
494 |
index 5f5e613bed2..00000000000 |
495 |
--- a/media-tv/kodi/files/kodi-17-fix-audio-with-latest-ffmpeg.patch |
496 |
+++ /dev/null |
497 |
@@ -1,15 +0,0 @@ |
498 |
-From: Stefan Hachmann <stefan@×××××××××××.de> |
499 |
-To: 881536@×××××××××××.org |
500 |
-Subject: Re: Bug#881536: ffmpeg: Breaks sound in kodi |
501 |
- |
502 |
---- a/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp |
503 |
-+++ b/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp |
504 |
-@@ -486,7 +486,7 @@ |
505 |
- // guess next pts |
506 |
- m_audioClock += audioframe.duration; |
507 |
- |
508 |
-- int ret = m_pAudioCodec->Decode(nullptr, 0, DVD_NOPTS_VALUE, DVD_NOPTS_VALUE); |
509 |
-+ int ret = 0; |
510 |
- if (ret < 0) |
511 |
- { |
512 |
- CLog::Log(LOGERROR, "CVideoPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet (%d)", ret); |
513 |
|
514 |
diff --git a/media-tv/kodi/files/kodi-17.6-nmblookup.patch b/media-tv/kodi/files/kodi-17.6-nmblookup.patch |
515 |
deleted file mode 100644 |
516 |
index 29737f980ec..00000000000 |
517 |
--- a/media-tv/kodi/files/kodi-17.6-nmblookup.patch |
518 |
+++ /dev/null |
519 |
@@ -1,25 +0,0 @@ |
520 |
-From ba2cb820f32994482a1918bd16bd0a548bb394ac Mon Sep 17 00:00:00 2001 |
521 |
-From: Craig Andrews <candrews@××××××××××××.com> |
522 |
-Date: Tue, 12 Jun 2018 12:28:41 -0400 |
523 |
-Subject: [PATCH] [dns-cache] Only use nmblookup if HAS_FILESYSTEM_SMB |
524 |
- |
525 |
-nmblookup is part of SmbClient so only use it if SmbClient is present. |
526 |
- |
527 |
-Fixes https://trac.kodi.tv/ticket/17916 |
528 |
---- |
529 |
- xbmc/network/DNSNameCache.cpp | 2 +- |
530 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
531 |
- |
532 |
-diff --git a/xbmc/network/DNSNameCache.cpp b/xbmc/network/DNSNameCache.cpp |
533 |
-index e993c536bf41..b30c60baf738 100644 |
534 |
---- a/xbmc/network/DNSNameCache.cpp |
535 |
-+++ b/xbmc/network/DNSNameCache.cpp |
536 |
-@@ -54,7 +54,7 @@ bool CDNSNameCache::Lookup(const std::string& strHostName, std::string& strIpAdd |
537 |
- if(g_DNSCache.GetCached(strHostName, strIpAddress)) |
538 |
- return true; |
539 |
- |
540 |
--#ifndef TARGET_WINDOWS |
541 |
-+#if !defined(TARGET_WINDOWS) && defined(HAS_FILESYSTEM_SMB) |
542 |
- // perform netbios lookup (win32 is handling this via gethostbyname) |
543 |
- char nmb_ip[100]; |
544 |
- char line[200]; |
545 |
|
546 |
diff --git a/media-tv/kodi/files/kodi-17.6-wrapper.patch b/media-tv/kodi/files/kodi-17.6-wrapper.patch |
547 |
deleted file mode 100644 |
548 |
index dc3e9887da9..00000000000 |
549 |
--- a/media-tv/kodi/files/kodi-17.6-wrapper.patch |
550 |
+++ /dev/null |
551 |
@@ -1,39 +0,0 @@ |
552 |
-From bbc7a53911f1ef8a4a24b76d88c5b0e5899e082f Mon Sep 17 00:00:00 2001 |
553 |
-From: Michael Cronenworth <mike@××××××.com> |
554 |
-Date: Fri, 16 Mar 2018 13:48:34 -0500 |
555 |
-Subject: [PATCH] DllLoader: Update variable to use standard va_list type |
556 |
- |
557 |
-The _G_ types were ancient, internal-only types defined in _G_config.h |
558 |
-and are now deprecated. |
559 |
- |
560 |
-https://sourceware.org/ml/libc-announce/2018/msg00000.html |
561 |
-https://sourceware.org/git/?p=glibc.git;a=commit;h=48a8f8328122ab8d06b7333cb87be46feeaf7cca |
562 |
- |
563 |
-Signed-off-by: Michael Cronenworth <mike@××××××.com> |
564 |
---- |
565 |
- xbmc/cores/DllLoader/exports/wrapper.c | 5 +---- |
566 |
- 1 file changed, 1 insertion(+), 4 deletions(-) |
567 |
- |
568 |
-diff --git a/xbmc/cores/DllLoader/exports/wrapper.c b/xbmc/cores/DllLoader/exports/wrapper.c |
569 |
-index 1980bfe65cac..7c7d4ac6131d 100644 |
570 |
---- a/xbmc/cores/DllLoader/exports/wrapper.c |
571 |
-+++ b/xbmc/cores/DllLoader/exports/wrapper.c |
572 |
-@@ -45,9 +45,6 @@ typedef int64_t off64_t; |
573 |
- typedef off64_t __off64_t; |
574 |
- typedef fpos_t fpos64_t; |
575 |
- #define stat64 stat |
576 |
--#if defined(TARGET_DARWIN) || defined(TARGET_ANDROID) |
577 |
--#define _G_va_list va_list |
578 |
--#endif |
579 |
- #endif |
580 |
- |
581 |
- #ifdef TARGET_POSIX |
582 |
-@@ -485,7 +482,7 @@ int __wrap___printf_chk(int flag, const char *format, ...) |
583 |
- return res; |
584 |
- } |
585 |
- |
586 |
--int __wrap___vfprintf_chk(FILE* stream, int flag, const char *format, _G_va_list ap) |
587 |
-+int __wrap___vfprintf_chk(FILE* stream, int flag, const char *format, va_list ap) |
588 |
- { |
589 |
- return dll_vfprintf(stream, format, ap); |
590 |
- } |
591 |
|
592 |
diff --git a/media-tv/kodi/files/kodi-cmake-no-java.patch b/media-tv/kodi/files/kodi-cmake-no-java.patch |
593 |
deleted file mode 100644 |
594 |
index 2d965ab351e..00000000000 |
595 |
--- a/media-tv/kodi/files/kodi-cmake-no-java.patch |
596 |
+++ /dev/null |
597 |
@@ -1,56 +0,0 @@ |
598 |
-diff --git a/xbmc/interfaces/swig/CMakeLists.txt b/xbmc/interfaces/swig/CMakeLists.txt |
599 |
-index 6e676159eb..d45a2ecbab 100644 |
600 |
---- a/xbmc/interfaces/swig/CMakeLists.txt |
601 |
-+++ b/xbmc/interfaces/swig/CMakeLists.txt |
602 |
-@@ -1,43 +1,21 @@ |
603 |
- function(generate_file file) |
604 |
-- set(classpath ${GROOVY_DIR}/groovy-all-${GROOVY_VER}.jar |
605 |
-- ${GROOVY_DIR}/commons-lang-${COMMONS_VER}.jar |
606 |
-- ${CORE_SOURCE_DIR}/tools/codegenerator |
607 |
-- ${CMAKE_CURRENT_SOURCE_DIR}/../python) |
608 |
-- if(NOT CORE_SYSTEM_NAME STREQUAL windows) |
609 |
-- set(devnull "/dev/null") |
610 |
-- string(REPLACE ";" ":" classpath "${classpath}") |
611 |
-- else() |
612 |
-- set(devnull "nul") |
613 |
-- endif() |
614 |
-- |
615 |
-- set(CPP_FILE ${file}.cpp) |
616 |
-- add_custom_command(OUTPUT ${CPP_FILE} |
617 |
-- COMMAND ${SWIG_EXECUTABLE} |
618 |
-- ARGS -w401 -c++ -o ${file}.xml -xml -I${CORE_SOURCE_DIR}/xbmc -xmllang python ${CMAKE_CURRENT_SOURCE_DIR}/../swig/${file} |
619 |
-- COMMAND ${Java_JAVA_EXECUTABLE} |
620 |
-- ARGS -cp "${classpath}" groovy.ui.GroovyMain ${CORE_SOURCE_DIR}/tools/codegenerator/Generator.groovy ${file}.xml ${CMAKE_CURRENT_SOURCE_DIR}/../python/PythonSwig.cpp.template ${file}.cpp > ${devnull} |
621 |
-- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../swig/${file}) |
622 |
-+ set(CPP_FILE ${CORE_SOURCE_DIR}/xbmc/interfaces/python/generated/${file}.cpp) |
623 |
- set(SOURCES ${SOURCES} "${CPP_FILE}" PARENT_SCOPE) |
624 |
- endfunction() |
625 |
- |
626 |
--find_package(Java COMPONENTS Runtime REQUIRED) |
627 |
- find_package(SWIG REQUIRED) |
628 |
- |
629 |
- # The generated bindings |
630 |
--set(INPUTS AddonModuleXbmcaddon.i |
631 |
-- AddonModuleXbmcgui.i |
632 |
-- AddonModuleXbmc.i |
633 |
-- AddonModuleXbmcplugin.i |
634 |
-- AddonModuleXbmcvfs.i |
635 |
-- AddonModuleXbmcwsgi.i) |
636 |
-- |
637 |
--set(GROOVY_DIR ${CORE_SOURCE_DIR}/tools/codegenerator/groovy) |
638 |
--set(GROOVY_VER 2.4.4) |
639 |
--set(COMMONS_VER 2.6) |
640 |
-+set(INPUTS AddonModuleXbmcaddon |
641 |
-+ AddonModuleXbmcgui |
642 |
-+ AddonModuleXbmc |
643 |
-+ AddonModuleXbmcplugin |
644 |
-+ AddonModuleXbmcvfs |
645 |
-+ AddonModuleXbmcwsgi) |
646 |
- |
647 |
- foreach(INPUT IN LISTS INPUTS) |
648 |
- generate_file(${INPUT}) |
649 |
-- list(APPEND GEN_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${INPUT}.cpp) |
650 |
-+ list(APPEND GEN_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${INPUT}.i.cpp) |
651 |
- endforeach() |
652 |
- |
653 |
- add_library(python_binding STATIC ${SOURCES}) |
654 |
|
655 |
diff --git a/media-tv/kodi/kodi-17.6-r11.ebuild b/media-tv/kodi/kodi-17.6-r11.ebuild |
656 |
deleted file mode 100644 |
657 |
index 30817ba59e8..00000000000 |
658 |
--- a/media-tv/kodi/kodi-17.6-r11.ebuild |
659 |
+++ /dev/null |
660 |
@@ -1,277 +0,0 @@ |
661 |
-# Copyright 1999-2019 Gentoo Authors |
662 |
-# Distributed under the terms of the GNU General Public License v2 |
663 |
- |
664 |
-EAPI=6 |
665 |
- |
666 |
-# Does not work with py3 here |
667 |
-PYTHON_COMPAT=( python2_7 ) |
668 |
-PYTHON_REQ_USE="sqlite" |
669 |
- |
670 |
-inherit autotools cmake-utils eutils linux-info pax-utils python-single-r1 versionator |
671 |
- |
672 |
-LIBDVDCSS_COMMIT="2f12236bc1c92f73c21e973363f79eb300de603f" |
673 |
-LIBDVDREAD_COMMIT="17d99db97e7b8f23077b342369d3c22a6250affd" |
674 |
-LIBDVDNAV_COMMIT="43b5f81f5fe30bceae3b7cecf2b0ca57fc930dac" |
675 |
-FFMPEG_VERSION="3.1.11" |
676 |
-FFMPEG_KODI_VERSION="17.5" |
677 |
-CODENAME="Krypton" |
678 |
-PATCHES=( |
679 |
- "${FILESDIR}/${P}-nmblookup.patch" |
680 |
- "${FILESDIR}/${P}-wrapper.patch" |
681 |
- "${FILESDIR}/${PN}-17-adapt-to-deprecated-symbols-and-functions.patch" |
682 |
- "${FILESDIR}/${PN}-17-fix-audio-with-latest-ffmpeg.patch" |
683 |
-) |
684 |
-SRC_URI="https://github.com/xbmc/libdvdcss/archive/${LIBDVDCSS_COMMIT}.tar.gz -> libdvdcss-${LIBDVDCSS_COMMIT}.tar.gz |
685 |
- https://github.com/xbmc/libdvdread/archive/${LIBDVDREAD_COMMIT}.tar.gz -> libdvdread-${LIBDVDREAD_COMMIT}.tar.gz |
686 |
- https://github.com/xbmc/libdvdnav/archive/${LIBDVDNAV_COMMIT}.tar.gz -> libdvdnav-${LIBDVDNAV_COMMIT}.tar.gz |
687 |
- !system-ffmpeg? ( https://github.com/xbmc/FFmpeg/archive/${FFMPEG_VERSION}-${CODENAME}-${FFMPEG_KODI_VERSION}.tar.gz -> ffmpeg-${PN}-${FFMPEG_VERSION}-${CODENAME}-${FFMPEG_KODI_VERSION}.tar.gz )" |
688 |
- |
689 |
-DESCRIPTION="A free and open source media-player and entertainment hub" |
690 |
-HOMEPAGE="https://kodi.tv/ https://kodi.wiki/" |
691 |
- |
692 |
-LICENSE="GPL-2" |
693 |
-SLOT="0" |
694 |
-# use flag is called libusb so that it doesn't fool people in thinking that |
695 |
-# it is _required_ for USB support. Otherwise they'll disable udev and |
696 |
-# that's going to be worse. |
697 |
-IUSE="airplay alsa bluetooth bluray caps cec +css dbus debug dvd gles lcms libressl libusb lirc mariadb mysql nfs nonfree +opengl pulseaudio samba sftp systemd +system-ffmpeg test +udev udisks upnp upower vaapi vdpau webserver +xslt zeroconf" |
698 |
-REQUIRED_USE=" |
699 |
- ${PYTHON_REQUIRED_USE} |
700 |
- || ( gles opengl ) |
701 |
- ?? ( mariadb mysql ) |
702 |
- udev? ( !libusb ) |
703 |
- udisks? ( dbus ) |
704 |
- upower? ( dbus ) |
705 |
-" |
706 |
- |
707 |
-COMMON_DEPEND="${PYTHON_DEPS} |
708 |
- airplay? ( |
709 |
- app-pda/libplist |
710 |
- net-libs/shairplay |
711 |
- ) |
712 |
- alsa? ( media-libs/alsa-lib ) |
713 |
- bluetooth? ( net-wireless/bluez ) |
714 |
- bluray? ( >=media-libs/libbluray-0.7.0 ) |
715 |
- caps? ( sys-libs/libcap ) |
716 |
- dbus? ( sys-apps/dbus ) |
717 |
- dev-db/sqlite |
718 |
- dev-libs/expat |
719 |
- dev-libs/fribidi |
720 |
- cec? ( >=dev-libs/libcec-4.0 ) |
721 |
- dev-libs/libpcre[cxx] |
722 |
- dev-libs/libxml2 |
723 |
- >=dev-libs/lzo-2.04 |
724 |
- dev-libs/tinyxml[stl] |
725 |
- >=dev-libs/yajl-2 |
726 |
- dev-python/pillow[${PYTHON_USEDEP}] |
727 |
- dev-libs/libcdio |
728 |
- gles? ( media-libs/mesa[gles2] ) |
729 |
- lcms? ( media-libs/lcms:2 ) |
730 |
- libusb? ( virtual/libusb:1 ) |
731 |
- virtual/ttf-fonts |
732 |
- media-libs/fontconfig |
733 |
- media-libs/freetype |
734 |
- >=media-libs/libass-0.13.4 |
735 |
- media-libs/mesa[egl,X(+)] |
736 |
- >=media-libs/taglib-1.11.1 |
737 |
- system-ffmpeg? ( |
738 |
- >=media-video/ffmpeg-${FFMPEG_VERSION}:=[encode,openssl,postproc] |
739 |
- ) |
740 |
- mysql? ( dev-db/mysql-connector-c:= ) |
741 |
- mariadb? ( dev-db/mariadb-connector-c:=[mysqlcompat] ) |
742 |
- >=net-misc/curl-7.51.0 |
743 |
- nfs? ( net-fs/libnfs:= ) |
744 |
- opengl? ( media-libs/glu ) |
745 |
- !libressl? ( >=dev-libs/openssl-1.0.2j:0= ) |
746 |
- libressl? ( dev-libs/libressl:0= ) |
747 |
- pulseaudio? ( media-sound/pulseaudio ) |
748 |
- samba? ( >=net-fs/samba-3.4.6[smbclient(+)] ) |
749 |
- sftp? ( net-libs/libssh[sftp] ) |
750 |
- sys-libs/zlib |
751 |
- udev? ( virtual/udev ) |
752 |
- vaapi? ( x11-libs/libva:=[opengl] ) |
753 |
- vdpau? ( |
754 |
- || ( >=x11-libs/libvdpau-1.1 >=x11-drivers/nvidia-drivers-180.51 ) |
755 |
- system-ffmpeg? ( media-video/ffmpeg[vdpau] ) |
756 |
- ) |
757 |
- webserver? ( >=net-libs/libmicrohttpd-0.9.50[messages] ) |
758 |
- xslt? ( dev-libs/libxslt ) |
759 |
- zeroconf? ( net-dns/avahi[dbus] ) |
760 |
-" |
761 |
-RDEPEND="${COMMON_DEPEND} |
762 |
- lirc? ( |
763 |
- || ( app-misc/lirc app-misc/inputlircd ) |
764 |
- ) |
765 |
- !media-tv/xbmc |
766 |
- udisks? ( sys-fs/udisks:0 ) |
767 |
- upower? ( sys-power/upower )" |
768 |
- |
769 |
-DEPEND="${COMMON_DEPEND} |
770 |
- app-arch/bzip2 |
771 |
- app-arch/unzip |
772 |
- app-arch/xz-utils |
773 |
- app-arch/zip |
774 |
- dev-lang/swig |
775 |
- dev-libs/crossguid |
776 |
- dev-util/cmake |
777 |
- dev-util/gperf |
778 |
- media-libs/giflib |
779 |
- >=media-libs/libjpeg-turbo-1.5.1:= |
780 |
- >=media-libs/libpng-1.6.26:0= |
781 |
- test? ( dev-cpp/gtest ) |
782 |
- virtual/pkgconfig |
783 |
- x86? ( dev-lang/nasm ) |
784 |
-" |
785 |
-case ${PV} in |
786 |
-9999) |
787 |
- EGIT_REPO_URI="https://github.com/xbmc/xbmc.git" |
788 |
- inherit git-r3 |
789 |
- # Force java for latest git version to avoid having to hand maintain the |
790 |
- # generated addons package. #488118 |
791 |
- DEPEND+=" |
792 |
- virtual/jre |
793 |
- " |
794 |
- ;; |
795 |
-*) |
796 |
- MY_PV=${PV/_p/_r} |
797 |
- MY_PV=${MY_PV/_alpha/a} |
798 |
- MY_PV=${MY_PV/_beta/b} |
799 |
- MY_PV=${MY_PV/_rc/rc} |
800 |
- MY_P="${PN}-${MY_PV}" |
801 |
- SRC_URI+=" https://github.com/xbmc/xbmc/archive/${MY_PV}-${CODENAME}.tar.gz -> ${MY_P}.tar.gz |
802 |
- !java? ( https://github.com/candrews/gentoo-kodi/raw/master/${MY_P}-generated-addons.tar.xz )" |
803 |
- KEYWORDS="amd64 x86" |
804 |
- IUSE+=" java" |
805 |
- DEPEND+=" |
806 |
- java? ( virtual/jre ) |
807 |
- " |
808 |
- |
809 |
- S=${WORKDIR}/xbmc-${MY_PV}-${CODENAME} |
810 |
- ;; |
811 |
-esac |
812 |
- |
813 |
-CONFIG_CHECK="~IP_MULTICAST" |
814 |
-ERROR_IP_MULTICAST=" |
815 |
-In some cases Kodi needs to access multicast addresses. |
816 |
-Please consider enabling IP_MULTICAST under Networking options. |
817 |
-" |
818 |
- |
819 |
-CMAKE_USE_DIR=${S}/project/cmake/ |
820 |
- |
821 |
-pkg_setup() { |
822 |
- check_extra_config |
823 |
- python-single-r1_pkg_setup |
824 |
-} |
825 |
- |
826 |
-src_prepare() { |
827 |
- if in_iuse java && use !java; then |
828 |
- eapply "${FILESDIR}"/${PN}-cmake-no-java.patch |
829 |
- fi |
830 |
- cmake-utils_src_prepare |
831 |
- |
832 |
- # avoid long delays when powerkit isn't running #348580 |
833 |
- sed -i \ |
834 |
- -e '/dbus_connection_send_with_reply_and_block/s:-1:3000:' \ |
835 |
- xbmc/linux/*.cpp || die |
836 |
- |
837 |
- # Prepare tools and libs witch are configured with autotools during compile time |
838 |
- AUTOTOOLS_DIRS=( |
839 |
- "${S}"/lib/cpluff |
840 |
- "${S}"/tools/depends/native/TexturePacker/src |
841 |
- "${S}"/tools/depends/native/JsonSchemaBuilder/src |
842 |
- ) |
843 |
- |
844 |
- local d |
845 |
- for d in "${AUTOTOOLS_DIRS[@]}" ; do |
846 |
- pushd ${d} >/dev/null || die |
847 |
- AT_NOELIBTOOLIZE="yes" AT_TOPLEVEL_EAUTORECONF="yes" eautoreconf |
848 |
- popd >/dev/null || die |
849 |
- done |
850 |
- elibtoolize |
851 |
- |
852 |
- # Prevent autoreconf rerun |
853 |
- sed -e 's/autoreconf -vif/echo "autoreconf already done in src_prepare()"/' -i \ |
854 |
- "${S}"/project/cmake/modules/FindCpluff.cmake \ |
855 |
- "${S}"/tools/depends/native/TexturePacker/src/autogen.sh \ |
856 |
- "${S}"/tools/depends/native/JsonSchemaBuilder/src/autogen.sh \ |
857 |
- || die |
858 |
-} |
859 |
- |
860 |
-src_configure() { |
861 |
- local mycmakeargs=( |
862 |
- -Ddocdir="${EPREFIX}/usr/share/doc/${PF}" |
863 |
- -DENABLE_LDGOLD=OFF # https://bugs.gentoo.org/show_bug.cgi?id=606124 |
864 |
- -DENABLE_ALSA=$(usex alsa) |
865 |
- -DENABLE_AIRTUNES=$(usex airplay) |
866 |
- -DENABLE_AVAHI=$(usex zeroconf) |
867 |
- -DENABLE_BLUETOOTH=$(usex bluetooth) |
868 |
- -DENABLE_BLURAY=$(usex bluray) |
869 |
- -DENABLE_CCACHE=OFF |
870 |
- -DENABLE_CEC=$(usex cec) |
871 |
- -DENABLE_DBUS=$(usex dbus) |
872 |
- -DENABLE_DVDCSS=$(usex css) |
873 |
- -DENABLE_INTERNAL_CROSSGUID=OFF |
874 |
- -DENABLE_INTERNAL_FFMPEG="$(usex !system-ffmpeg)" |
875 |
- -DENABLE_CAP=$(usex caps) |
876 |
- -DENABLE_LCMS2=$(usex lcms) |
877 |
- -DENABLE_LIRC=$(usex lirc) |
878 |
- -DENABLE_MICROHTTPD=$(usex webserver) |
879 |
- -DENABLE_NFS=$(usex nfs) |
880 |
- -DENABLE_NONFREE=$(usex nonfree) |
881 |
- -DENABLE_OPENGLES=$(usex gles) |
882 |
- -DENABLE_OPENGL=$(usex opengl) |
883 |
- -DENABLE_OPENSSL=ON |
884 |
- -DENABLE_OPTICAL=$(usex dvd) |
885 |
- -DENABLE_PLIST=$(usex airplay) |
886 |
- -DENABLE_PULSEAUDIO=$(usex pulseaudio) |
887 |
- -DENABLE_SMBCLIENT=$(usex samba) |
888 |
- -DENABLE_SSH=$(usex sftp) |
889 |
- -DENABLE_UDEV=$(usex udev) |
890 |
- -DENABLE_UPNP=$(usex upnp) |
891 |
- -DENABLE_VAAPI=$(usex vaapi) |
892 |
- -DENABLE_VDPAU=$(usex vdpau) |
893 |
- -DENABLE_X11=ON |
894 |
- -DENABLE_XSLT=$(usex xslt) |
895 |
- -Dlibdvdread_URL="${DISTDIR}/libdvdread-${LIBDVDREAD_COMMIT}.tar.gz" |
896 |
- -Dlibdvdnav_URL="${DISTDIR}/libdvdnav-${LIBDVDNAV_COMMIT}.tar.gz" |
897 |
- -Dlibdvdcss_URL="${DISTDIR}/libdvdcss-${LIBDVDCSS_COMMIT}.tar.gz" |
898 |
- ) |
899 |
- |
900 |
- if use mysql || use mariadb ; then |
901 |
- mycmakeargs+=( -DENABLE_MYSQLCLIENT="yes" ) |
902 |
- else |
903 |
- mycmakeargs+=( -DENABLE_MYSQLCLIENT="no" ) |
904 |
- fi |
905 |
- |
906 |
- use libusb && mycmakeargs+=( -DENABLE_LIBUSB=$(usex libusb) ) |
907 |
- |
908 |
- if use system-ffmpeg; then |
909 |
- mycmakeargs+=( -DWITH_FFMPEG="yes" ) |
910 |
- else |
911 |
- mycmakeargs+=( -DFFMPEG_URL="${DISTDIR}/ffmpeg-${PN}-${FFMPEG_VERSION}-${CODENAME}-${FFMPEG_KODI_VERSION}.tar.gz" ) |
912 |
- fi |
913 |
- |
914 |
- cmake-utils_src_configure |
915 |
-} |
916 |
- |
917 |
-src_compile() { |
918 |
- cmake-utils_src_compile all |
919 |
- use test && emake -C "${BUILD_DIR}" kodi-test |
920 |
-} |
921 |
- |
922 |
-src_test() { |
923 |
- emake -C "${BUILD_DIR}" test |
924 |
-} |
925 |
- |
926 |
-src_install() { |
927 |
- cmake-utils_src_install |
928 |
- |
929 |
- pax-mark Em "${ED%/}"/usr/$(get_libdir)/${PN}/${PN}.bin |
930 |
- |
931 |
- rm "${ED%/}"/usr/share/doc/*/{LICENSE.GPL,copying.txt}* || die |
932 |
- |
933 |
- newicon media/icon48x48.png kodi.png |
934 |
- |
935 |
- python_domodule tools/EventClients/lib/python/xbmcclient.py |
936 |
- python_newscript "tools/EventClients/Clients/Kodi Send/kodi-send.py" kodi-send |
937 |
-} |
938 |
|
939 |
diff --git a/media-tv/kodi/metadata.xml b/media-tv/kodi/metadata.xml |
940 |
index 2ddce679368..269b8bfc2c4 100644 |
941 |
--- a/media-tv/kodi/metadata.xml |
942 |
+++ b/media-tv/kodi/metadata.xml |
943 |
@@ -14,10 +14,8 @@ |
944 |
<flag name="lirc">Enable support for controlling Totem with a remote control using <pkg>app-misc/lirc</pkg></flag> |
945 |
<flag name="mariadb">Add MariaDB support</flag> |
946 |
<flag name="nfs">Enable NFS client support</flag> |
947 |
- <flag name="nonfree">Enable non-free components</flag> |
948 |
<flag name="dvd">Enable optical (CD/DVD drive) support</flag> |
949 |
<flag name="raspberry-pi">Enable support for the Raspberry Pi</flag> |
950 |
- <flag name="sftp">Support browsing files over SFTP</flag> |
951 |
<flag name="system-ffmpeg">Use system ffmpeg instead of the bundled one</flag> |
952 |
<flag name="libusb">Use <pkg>virtual/libusb</pkg> for usb device hotplug support. This flag should only be enabled if you're running a non-Linux kernel or you don't want to use <pkg>sys-fs/udev</pkg>.</flag> |
953 |
<flag name="udev">Use <pkg>sys-fs/udev</pkg> rules to handle devices' permissions and hotplug support. Unless you know what you're doing do not disable this flag on Linux kernels. This is provided as an option for completeness.</flag> |