1 |
commit: d4ef818a779bdc728998928832c4606a8a5fbe8d |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 26 22:54:51 2018 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 26 22:54:51 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4ef818a |
7 |
|
8 |
net-libs/opal: remove last rited package |
9 |
|
10 |
net-libs/opal/Manifest | 2 - |
11 |
net-libs/opal/files/opal-3.10.10-ffmpeg2-1.patch | 396 --------------------- |
12 |
.../opal-3.10.9-disable-h323-workaround.patch | 13 - |
13 |
.../files/opal-3.10.9-java-ruby-swig-fix.patch | 29 -- |
14 |
net-libs/opal/metadata.xml | 39 -- |
15 |
net-libs/opal/opal-3.10.11-r1.ebuild | 252 ------------- |
16 |
6 files changed, 731 deletions(-) |
17 |
|
18 |
diff --git a/net-libs/opal/Manifest b/net-libs/opal/Manifest |
19 |
deleted file mode 100644 |
20 |
index 5505ed7fc31..00000000000 |
21 |
--- a/net-libs/opal/Manifest |
22 |
+++ /dev/null |
23 |
@@ -1,2 +0,0 @@ |
24 |
-DIST opal-3.10.11-htmldoc.tar.bz2 2944338 BLAKE2B 3e686809a217c13718e3e777a5c11b92b1405d5421b882abc50a3e231db28d72099e7383fa23bf130cc5fa2bf123412702248054cfa7be14dcbc999fd3bd1248 SHA512 6075487344d4cfa5c2e2219376e3eccd98028475eac6f89d20d24d611a8806a27eb354ce8e77e16c620c8cb3d398b9502082f3fe8f67763d3f67feea835819b5 |
25 |
-DIST opal-3.10.11.tar.bz2 8590616 BLAKE2B 1ea56285315e879d85190db4e2b2fa814cf0fc7825db80547d1fde978f6d24a8e2cd853575a4c13dbfc7d8dada422a90ab95512a367a87de6d13889a6d8f8ca4 SHA512 970745375e7ebb29178ce9d0bc29254e69dd952e5f754038979a8613489a26f0fb68d63ec2709ffa1964e50fe9cfde874489f683a451d83e7a075d62d9228fa1 |
26 |
|
27 |
diff --git a/net-libs/opal/files/opal-3.10.10-ffmpeg2-1.patch b/net-libs/opal/files/opal-3.10.10-ffmpeg2-1.patch |
28 |
deleted file mode 100644 |
29 |
index 6b58ac28f3d..00000000000 |
30 |
--- a/net-libs/opal/files/opal-3.10.10-ffmpeg2-1.patch |
31 |
+++ /dev/null |
32 |
@@ -1,396 +0,0 @@ |
33 |
-Submitted By: Igor Živković <contact@××××××××××××××××××.hr> |
34 |
-Date: 2013-10-08 |
35 |
-Initial Package Version: 3.10.10 |
36 |
-Upstream Status: Unknown |
37 |
-Origin: Gentoo |
38 |
-Description: Fixes building against FFmpeg version >= 2.0.0 |
39 |
- |
40 |
-diff -Naur opal-3.10.10.orig/plugins/video/common/dyna.cxx opal-3.10.10/plugins/video/common/dyna.cxx |
41 |
---- opal-3.10.10.orig/plugins/video/common/dyna.cxx 2013-02-20 03:18:05.000000000 +0100 |
42 |
-+++ opal-3.10.10/plugins/video/common/dyna.cxx 2013-10-08 12:57:25.058873513 +0200 |
43 |
-@@ -210,7 +210,7 @@ |
44 |
- #endif |
45 |
- |
46 |
- |
47 |
--FFMPEGLibrary::FFMPEGLibrary(CodecID codec) |
48 |
-+FFMPEGLibrary::FFMPEGLibrary(AVCodecID codec) |
49 |
- { |
50 |
- m_codec = codec; |
51 |
- if (m_codec==CODEC_ID_H264) |
52 |
-@@ -348,12 +348,12 @@ |
53 |
- return true; |
54 |
- } |
55 |
- |
56 |
--AVCodec *FFMPEGLibrary::AvcodecFindEncoder(enum CodecID id) |
57 |
-+AVCodec *FFMPEGLibrary::AvcodecFindEncoder(enum AVCodecID id) |
58 |
- { |
59 |
- return Favcodec_find_encoder(id); |
60 |
- } |
61 |
- |
62 |
--AVCodec *FFMPEGLibrary::AvcodecFindDecoder(enum CodecID id) |
63 |
-+AVCodec *FFMPEGLibrary::AvcodecFindDecoder(enum AVCodecID id) |
64 |
- { |
65 |
- WaitAndSignal m(processLock); |
66 |
- |
67 |
-diff -Naur opal-3.10.10.orig/plugins/video/common/dyna.h opal-3.10.10/plugins/video/common/dyna.h |
68 |
---- opal-3.10.10.orig/plugins/video/common/dyna.h 2013-02-20 03:18:05.000000000 +0100 |
69 |
-+++ opal-3.10.10/plugins/video/common/dyna.h 2013-10-08 12:57:25.058873513 +0200 |
70 |
-@@ -88,13 +88,13 @@ |
71 |
- class FFMPEGLibrary |
72 |
- { |
73 |
- public: |
74 |
-- FFMPEGLibrary(CodecID codec); |
75 |
-+ FFMPEGLibrary(AVCodecID codec); |
76 |
- ~FFMPEGLibrary(); |
77 |
- |
78 |
- bool Load(); |
79 |
- |
80 |
-- AVCodec *AvcodecFindEncoder(enum CodecID id); |
81 |
-- AVCodec *AvcodecFindDecoder(enum CodecID id); |
82 |
-+ AVCodec *AvcodecFindEncoder(enum AVCodecID id); |
83 |
-+ AVCodec *AvcodecFindDecoder(enum AVCodecID id); |
84 |
- AVCodecContext *AvcodecAllocContext(void); |
85 |
- AVFrame *AvcodecAllocFrame(void); |
86 |
- int AvcodecOpen(AVCodecContext *ctx, AVCodec *codec); |
87 |
-@@ -117,15 +117,15 @@ |
88 |
- DynaLink m_libAvcodec; |
89 |
- DynaLink m_libAvutil; |
90 |
- |
91 |
-- CodecID m_codec; |
92 |
-+ AVCodecID m_codec; |
93 |
- char m_codecString[32]; |
94 |
- |
95 |
- void (*Favcodec_init)(void); |
96 |
- void (*Fav_init_packet)(AVPacket *pkt); |
97 |
- |
98 |
- void (*Favcodec_register_all)(void); |
99 |
-- AVCodec *(*Favcodec_find_encoder)(enum CodecID id); |
100 |
-- AVCodec *(*Favcodec_find_decoder)(enum CodecID id); |
101 |
-+ AVCodec *(*Favcodec_find_encoder)(enum AVCodecID id); |
102 |
-+ AVCodec *(*Favcodec_find_decoder)(enum AVCodecID id); |
103 |
- AVCodecContext *(*Favcodec_alloc_context)(void); |
104 |
- AVFrame *(*Favcodec_alloc_frame)(void); |
105 |
- int (*Favcodec_open)(AVCodecContext *ctx, AVCodec *codec); |
106 |
-diff -Naur opal-3.10.10.orig/plugins/video/common/ffmpeg/libavcodec/avcodec.h opal-3.10.10/plugins/video/common/ffmpeg/libavcodec/avcodec.h |
107 |
---- opal-3.10.10.orig/plugins/video/common/ffmpeg/libavcodec/avcodec.h 2013-02-20 03:18:04.000000000 +0100 |
108 |
-+++ opal-3.10.10/plugins/video/common/ffmpeg/libavcodec/avcodec.h 2013-10-08 12:57:25.060873488 +0200 |
109 |
-@@ -101,7 +101,7 @@ |
110 |
- * 1. no value of a existing codec ID changes (that would break ABI), |
111 |
- * 2. it is as close as possible to similar codecs. |
112 |
- */ |
113 |
--enum CodecID { |
114 |
-+enum AVCodecID { |
115 |
- CODEC_ID_NONE, |
116 |
- |
117 |
- /* video codecs */ |
118 |
-@@ -1390,7 +1390,7 @@ |
119 |
- |
120 |
- char codec_name[32]; |
121 |
- enum AVMediaType codec_type; /* see AVMEDIA_TYPE_xxx */ |
122 |
-- enum CodecID codec_id; /* see CODEC_ID_xxx */ |
123 |
-+ enum AVCodecID codec_id; /* see CODEC_ID_xxx */ |
124 |
- |
125 |
- /** |
126 |
- * fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A'). |
127 |
-@@ -2843,7 +2843,7 @@ |
128 |
- */ |
129 |
- const char *name; |
130 |
- enum AVMediaType type; |
131 |
-- enum CodecID id; |
132 |
-+ enum AVCodecID id; |
133 |
- int priv_data_size; |
134 |
- int (*init)(AVCodecContext *); |
135 |
- int (*encode)(AVCodecContext *, uint8_t *buf, int buf_size, void *data); |
136 |
-@@ -2898,7 +2898,7 @@ |
137 |
- * |
138 |
- * See CODEC_ID_xxx |
139 |
- */ |
140 |
-- enum CodecID id; |
141 |
-+ enum AVCodecID id; |
142 |
- |
143 |
- /** |
144 |
- * Supported pixel format. |
145 |
-@@ -3402,10 +3402,10 @@ |
146 |
- /** |
147 |
- * Find a registered encoder with a matching codec ID. |
148 |
- * |
149 |
-- * @param id CodecID of the requested encoder |
150 |
-+ * @param id AVCodecID of the requested encoder |
151 |
- * @return An encoder if one was found, NULL otherwise. |
152 |
- */ |
153 |
--AVCodec *avcodec_find_encoder(enum CodecID id); |
154 |
-+AVCodec *avcodec_find_encoder(enum AVCodecID id); |
155 |
- |
156 |
- /** |
157 |
- * Find a registered encoder with the specified name. |
158 |
-@@ -3418,10 +3418,10 @@ |
159 |
- /** |
160 |
- * Find a registered decoder with a matching codec ID. |
161 |
- * |
162 |
-- * @param id CodecID of the requested decoder |
163 |
-+ * @param id AVCodecID of the requested decoder |
164 |
- * @return A decoder if one was found, NULL otherwise. |
165 |
- */ |
166 |
--AVCodec *avcodec_find_decoder(enum CodecID id); |
167 |
-+AVCodec *avcodec_find_decoder(enum AVCodecID id); |
168 |
- |
169 |
- /** |
170 |
- * Find a registered decoder with the specified name. |
171 |
-@@ -3822,7 +3822,7 @@ |
172 |
- * @param[in] codec_id the codec |
173 |
- * @return Number of bits per sample or zero if unknown for the given codec. |
174 |
- */ |
175 |
--int av_get_bits_per_sample(enum CodecID codec_id); |
176 |
-+int av_get_bits_per_sample(enum AVCodecID codec_id); |
177 |
- |
178 |
- #if FF_API_OLD_SAMPLE_FMT |
179 |
- /** |
180 |
-diff -Naur opal-3.10.10.orig/plugins/video/H.263-1998/h263-1998.cxx opal-3.10.10/plugins/video/H.263-1998/h263-1998.cxx |
181 |
---- opal-3.10.10.orig/plugins/video/H.263-1998/h263-1998.cxx 2013-02-20 03:18:03.000000000 +0100 |
182 |
-+++ opal-3.10.10/plugins/video/H.263-1998/h263-1998.cxx 2013-10-08 12:57:25.061873475 +0200 |
183 |
-@@ -48,6 +48,10 @@ |
184 |
- #endif |
185 |
- |
186 |
- #include "h263-1998.h" |
187 |
-+extern "C" |
188 |
-+{ |
189 |
-+#include <libavutil/opt.h> |
190 |
-+} |
191 |
- #include <limits> |
192 |
- #include <iomanip> |
193 |
- #include <stdio.h> |
194 |
-@@ -203,7 +207,7 @@ |
195 |
- PTRACE(4, m_prefix, "Encoder closed"); |
196 |
- } |
197 |
- |
198 |
--bool H263_Base_EncoderContext::Init(CodecID codecId) |
199 |
-+bool H263_Base_EncoderContext::Init(AVCodecID codecId) |
200 |
- { |
201 |
- PTRACE(5, m_prefix, "Opening encoder"); |
202 |
- |
203 |
-@@ -317,9 +321,9 @@ |
204 |
- // Level 2+ |
205 |
- // works with eyeBeam, signaled via non-standard "D" |
206 |
- if (atoi(value) == 1) |
207 |
-- m_context->flags |= CODEC_FLAG_H263P_UMV; |
208 |
-+ av_opt_set_int(m_context->priv_data, "umv", 1, 0); |
209 |
- else |
210 |
-- m_context->flags &= ~CODEC_FLAG_H263P_UMV; |
211 |
-+ av_opt_set_int(m_context->priv_data, "umv", 0, 0); |
212 |
- return; |
213 |
- } |
214 |
- |
215 |
-@@ -328,9 +332,9 @@ |
216 |
- // Annex F: Advanced Prediction Mode |
217 |
- // does not work with eyeBeam |
218 |
- if (atoi(value) == 1) |
219 |
-- m_context->flags |= CODEC_FLAG_OBMC; |
220 |
-+ av_opt_set_int(m_context->priv_data, "obmc", 1, 0); |
221 |
- else |
222 |
-- m_context->flags &= ~CODEC_FLAG_OBMC; |
223 |
-+ av_opt_set_int(m_context->priv_data, "obmc", 0, 0); |
224 |
- return; |
225 |
- } |
226 |
- #endif |
227 |
-@@ -360,9 +364,9 @@ |
228 |
- // Annex K: Slice Structure |
229 |
- // does not work with eyeBeam |
230 |
- if (atoi(value) != 0) |
231 |
-- m_context->flags |= CODEC_FLAG_H263P_SLICE_STRUCT; |
232 |
-+ av_opt_set_int(m_context->priv_data, "structured_slices", 1, 0); |
233 |
- else |
234 |
-- m_context->flags &= ~CODEC_FLAG_H263P_SLICE_STRUCT; |
235 |
-+ av_opt_set_int(m_context->priv_data, "structured_slices", 0, 0); |
236 |
- return; |
237 |
- } |
238 |
- |
239 |
-@@ -370,9 +374,9 @@ |
240 |
- // Annex S: Alternative INTER VLC mode |
241 |
- // does not work with eyeBeam |
242 |
- if (atoi(value) == 1) |
243 |
-- m_context->flags |= CODEC_FLAG_H263P_AIV; |
244 |
-+ av_opt_set_int(m_context->priv_data, "aiv", 1, 0); |
245 |
- else |
246 |
-- m_context->flags &= ~CODEC_FLAG_H263P_AIV; |
247 |
-+ av_opt_set_int(m_context->priv_data, "aiv", 0, 0); |
248 |
- return; |
249 |
- } |
250 |
- |
251 |
-@@ -450,15 +454,6 @@ |
252 |
- PTRACE(5, m_prefix, "qmax set to " << m_context->qmax); |
253 |
- PTRACE(5, m_prefix, "payload size set to " << m_context->rtp_payload_size); |
254 |
- |
255 |
-- #define CODEC_TRACER_FLAG(tracer, flag) \ |
256 |
-- PTRACE(4, m_prefix, #flag " is " << ((m_context->flags & flag) ? "enabled" : "disabled")); |
257 |
-- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_H263P_UMV); |
258 |
-- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_OBMC); |
259 |
-- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_AC_PRED); |
260 |
-- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_H263P_SLICE_STRUCT) |
261 |
-- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_LOOP_FILTER); |
262 |
-- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_H263P_AIV); |
263 |
-- |
264 |
- return FFMPEGLibraryInstance.AvcodecOpen(m_context, m_codec) == 0; |
265 |
- } |
266 |
- |
267 |
-@@ -521,7 +516,7 @@ |
268 |
- |
269 |
- // Need to copy to local buffer to guarantee 16 byte alignment |
270 |
- memcpy(m_inputFrame->data[0], OPAL_VIDEO_FRAME_DATA_PTR(header), header->width*header->height*3/2); |
271 |
-- m_inputFrame->pict_type = (flags & PluginCodec_CoderForceIFrame) ? FF_I_TYPE : AV_PICTURE_TYPE_NONE; |
272 |
-+ m_inputFrame->pict_type = (flags & PluginCodec_CoderForceIFrame) ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_NONE; |
273 |
- |
274 |
- /* |
275 |
- m_inputFrame->pts = (int64_t)srcRTP.GetTimestamp()*m_context->time_base.den/m_context->time_base.num/VIDEO_CLOCKRATE; |
276 |
-@@ -603,13 +598,13 @@ |
277 |
- m_context->rtp_callback = &H263_RFC2190_EncoderContext::RTPCallBack; |
278 |
- m_context->opaque = this; // used to separate out packets from different encode threads |
279 |
- |
280 |
-- m_context->flags &= ~CODEC_FLAG_H263P_UMV; |
281 |
-+ av_opt_set_int(m_context->priv_data, "umv", 0, 0); |
282 |
- m_context->flags &= ~CODEC_FLAG_4MV; |
283 |
- #if LIBAVCODEC_RTP_MODE |
284 |
- m_context->flags &= ~CODEC_FLAG_H263P_AIC; |
285 |
- #endif |
286 |
-- m_context->flags &= ~CODEC_FLAG_H263P_AIV; |
287 |
-- m_context->flags &= ~CODEC_FLAG_H263P_SLICE_STRUCT; |
288 |
-+ av_opt_set_int(m_context->priv_data, "aiv", 0, 0); |
289 |
-+ av_opt_set_int(m_context->priv_data, "structured_slices", 0, 0); |
290 |
- |
291 |
- return true; |
292 |
- } |
293 |
-diff -Naur opal-3.10.10.orig/plugins/video/H.263-1998/h263-1998.h opal-3.10.10/plugins/video/H.263-1998/h263-1998.h |
294 |
---- opal-3.10.10.orig/plugins/video/H.263-1998/h263-1998.h 2013-02-20 03:18:03.000000000 +0100 |
295 |
-+++ opal-3.10.10/plugins/video/H.263-1998/h263-1998.h 2013-10-08 12:57:25.062873463 +0200 |
296 |
-@@ -115,7 +115,7 @@ |
297 |
- virtual ~H263_Base_EncoderContext(); |
298 |
- |
299 |
- virtual bool Init() = 0; |
300 |
-- virtual bool Init(CodecID codecId); |
301 |
-+ virtual bool Init(AVCodecID codecId); |
302 |
- |
303 |
- virtual bool SetOptions(const char * const * options); |
304 |
- virtual void SetOption(const char * option, const char * value); |
305 |
-diff -Naur opal-3.10.10.orig/plugins/video/H.263-1998/Makefile.in opal-3.10.10/plugins/video/H.263-1998/Makefile.in |
306 |
---- opal-3.10.10.orig/plugins/video/H.263-1998/Makefile.in 2013-02-20 03:18:03.000000000 +0100 |
307 |
-+++ opal-3.10.10/plugins/video/H.263-1998/Makefile.in 2013-10-08 12:57:25.062873463 +0200 |
308 |
-@@ -35,7 +35,7 @@ |
309 |
- $(COMMONDIR)/dyna.cxx |
310 |
- |
311 |
- CFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) |
312 |
--LIBS += @DL_LIBS@ |
313 |
-+LIBS += @DL_LIBS@ @LIBAVUTIL_LIBS@ |
314 |
- |
315 |
- HAVE_LIBAVCODEC_RTP_MODE=@HAVE_LIBAVCODEC_RTP_MODE@ |
316 |
- ifeq ($(HAVE_LIBAVCODEC_RTP_MODE),yes) |
317 |
-diff -Naur opal-3.10.10.orig/plugins/video/H.264/gpl/h264_helper.cxx opal-3.10.10/plugins/video/H.264/gpl/h264_helper.cxx |
318 |
---- opal-3.10.10.orig/plugins/video/H.264/gpl/h264_helper.cxx 2013-02-20 03:18:02.000000000 +0100 |
319 |
-+++ opal-3.10.10/plugins/video/H.264/gpl/h264_helper.cxx 2013-10-08 12:57:25.062873463 +0200 |
320 |
-@@ -27,6 +27,7 @@ |
321 |
- #include <fstream> |
322 |
- #include <stdlib.h> |
323 |
- #include <sys/stat.h> |
324 |
-+#include <unistd.h> |
325 |
- |
326 |
- #ifdef HAVE_UNISTD_H |
327 |
- #include <unistd.h> |
328 |
-diff -Naur opal-3.10.10.orig/plugins/video/H.264/h264-x264.cxx opal-3.10.10/plugins/video/H.264/h264-x264.cxx |
329 |
---- opal-3.10.10.orig/plugins/video/H.264/h264-x264.cxx 2013-02-20 03:18:02.000000000 +0100 |
330 |
-+++ opal-3.10.10/plugins/video/H.264/h264-x264.cxx 2013-10-08 12:57:25.063873450 +0200 |
331 |
-@@ -40,6 +40,9 @@ |
332 |
- #include "plugin-config.h" |
333 |
- #endif |
334 |
- |
335 |
-+#define FF_IDCT_H264 11 |
336 |
-+#define CODEC_FLAG2_SKIP_RD 0x00004000 |
337 |
-+ |
338 |
- #include <codec/opalplugin.hpp> |
339 |
- |
340 |
- #include "../common/ffmpeg.h" |
341 |
-@@ -1071,13 +1074,10 @@ |
342 |
- return false; |
343 |
- |
344 |
- m_context->workaround_bugs = FF_BUG_AUTODETECT; |
345 |
-- m_context->error_recognition = FF_ER_AGGRESSIVE; |
346 |
- m_context->idct_algo = FF_IDCT_H264; |
347 |
- m_context->error_concealment = FF_EC_GUESS_MVS | FF_EC_DEBLOCK; |
348 |
- m_context->flags = CODEC_FLAG_INPUT_PRESERVED | CODEC_FLAG_EMU_EDGE; |
349 |
-- m_context->flags2 = CODEC_FLAG2_BRDO | |
350 |
-- CODEC_FLAG2_MEMC_ONLY | |
351 |
-- CODEC_FLAG2_DROP_FRAME_TIMECODE | |
352 |
-+ m_context->flags2 = CODEC_FLAG2_DROP_FRAME_TIMECODE | |
353 |
- CODEC_FLAG2_SKIP_RD | |
354 |
- CODEC_FLAG2_CHUNKS; |
355 |
- |
356 |
-diff -Naur opal-3.10.10.orig/plugins/video/H.264/shared/x264wrap.cxx opal-3.10.10/plugins/video/H.264/shared/x264wrap.cxx |
357 |
---- opal-3.10.10.orig/plugins/video/H.264/shared/x264wrap.cxx 2013-02-20 03:18:02.000000000 +0100 |
358 |
-+++ opal-3.10.10/plugins/video/H.264/shared/x264wrap.cxx 2013-10-08 12:57:25.064873438 +0200 |
359 |
-@@ -33,6 +33,7 @@ |
360 |
- |
361 |
- #include <codec/opalplugin.hpp> |
362 |
- #include <stdio.h> |
363 |
-+#include <unistd.h> |
364 |
- |
365 |
- #ifdef HAVE_UNISTD_H |
366 |
- #include <unistd.h> |
367 |
-diff -Naur opal-3.10.10.orig/plugins/video/MPEG4-ffmpeg/Makefile.in opal-3.10.10/plugins/video/MPEG4-ffmpeg/Makefile.in |
368 |
---- opal-3.10.10.orig/plugins/video/MPEG4-ffmpeg/Makefile.in 2013-02-20 03:18:07.000000000 +0100 |
369 |
-+++ opal-3.10.10/plugins/video/MPEG4-ffmpeg/Makefile.in 2013-10-08 12:57:25.064873438 +0200 |
370 |
-@@ -31,7 +31,7 @@ |
371 |
- SRCS := mpeg4.cxx $(COMMONDIR)/dyna.cxx |
372 |
- |
373 |
- CFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) |
374 |
--LIBS += @DL_LIBS@ |
375 |
-+LIBS += @DL_LIBS@ @LIBAVUTIL_LIBS@ |
376 |
- |
377 |
- # Add LIBAVCODEC_SOURCE_DIR to the include path so we can #include <libavcodec/...h> |
378 |
- # Also add libavutil, so ffmpeg headers can #include "log.h". |
379 |
-diff -Naur opal-3.10.10.orig/plugins/video/MPEG4-ffmpeg/mpeg4.cxx opal-3.10.10/plugins/video/MPEG4-ffmpeg/mpeg4.cxx |
380 |
---- opal-3.10.10.orig/plugins/video/MPEG4-ffmpeg/mpeg4.cxx 2013-02-20 03:18:07.000000000 +0100 |
381 |
-+++ opal-3.10.10/plugins/video/MPEG4-ffmpeg/mpeg4.cxx 2013-10-08 12:57:25.065873425 +0200 |
382 |
-@@ -103,6 +103,7 @@ |
383 |
- |
384 |
- #else /* LIBAVCODEC_HAVE_SOURCE_DIR */ |
385 |
- #include "../common/ffmpeg.h" |
386 |
-+#include <libavutil/opt.h> |
387 |
- #endif /* LIBAVCODEC_HAVE_SOURCE_DIR */ |
388 |
- } |
389 |
- |
390 |
-@@ -589,17 +590,17 @@ |
391 |
- m_avpicture->quality = m_videoQMin; |
392 |
- |
393 |
- #ifdef USE_ORIG |
394 |
-- m_avcontext->flags |= CODEC_FLAG_PART; // data partitioning |
395 |
-+ av_opt_set_int(m_avcontext->priv_data, "data_partitionin", 1, 0); |
396 |
- m_avcontext->flags |= CODEC_FLAG_4MV; // 4 motion vectors |
397 |
- #else |
398 |
- m_avcontext->max_b_frames=0; /*don't use b frames*/ |
399 |
- m_avcontext->flags|=CODEC_FLAG_AC_PRED; |
400 |
-- m_avcontext->flags|=CODEC_FLAG_H263P_UMV; |
401 |
-+ av_opt_set_int(m_avcontext->priv_data, "umv", 1, 0); |
402 |
- /*c->flags|=CODEC_FLAG_QPEL;*/ /*don't enable this one: this forces profile_level to advanced simple profile */ |
403 |
- m_avcontext->flags|=CODEC_FLAG_4MV; |
404 |
- m_avcontext->flags|=CODEC_FLAG_GMC; |
405 |
- m_avcontext->flags|=CODEC_FLAG_LOOP_FILTER; |
406 |
-- m_avcontext->flags|=CODEC_FLAG_H263P_SLICE_STRUCT; |
407 |
-+ av_opt_set_int(m_avcontext->priv_data, "structured_slices", 1, 0); |
408 |
- #endif |
409 |
- m_avcontext->opaque = this; // for use in RTP callback |
410 |
- } |
411 |
-@@ -804,7 +805,7 @@ |
412 |
- // Should the next frame be an I-Frame? |
413 |
- if ((flags & PluginCodec_CoderForceIFrame) || (m_frameNum == 0)) |
414 |
- { |
415 |
-- m_avpicture->pict_type = FF_I_TYPE; |
416 |
-+ m_avpicture->pict_type = AV_PICTURE_TYPE_I; |
417 |
- } |
418 |
- else // No IFrame requested, let avcodec decide what to do |
419 |
- { |
420 |
-@@ -1325,7 +1326,7 @@ |
421 |
- |
422 |
- void MPEG4DecoderContext::SetStaticDecodingParams() { |
423 |
- m_avcontext->flags |= CODEC_FLAG_4MV; |
424 |
-- m_avcontext->flags |= CODEC_FLAG_PART; |
425 |
-+ av_opt_set_int(m_avcontext->priv_data, "data_partitionin", 1, 0); |
426 |
- m_avcontext->workaround_bugs = 0; // no workaround for buggy implementations |
427 |
- } |
428 |
- |
429 |
|
430 |
diff --git a/net-libs/opal/files/opal-3.10.9-disable-h323-workaround.patch b/net-libs/opal/files/opal-3.10.9-disable-h323-workaround.patch |
431 |
deleted file mode 100644 |
432 |
index 3d1761566ed..00000000000 |
433 |
--- a/net-libs/opal/files/opal-3.10.9-disable-h323-workaround.patch |
434 |
+++ /dev/null |
435 |
@@ -1,13 +0,0 @@ |
436 |
-# Sent to upstream on 2012-10-23 |
437 |
-# By Jesus Rivero <neurogeek@g.o> |
438 |
-diff -uNr opal-3.10.8.orig/include/h323/h323.h opal-3.10.8/include/h323/h323.h |
439 |
---- opal-3.10.8.orig/include/h323/h323.h 2012-10-22 07:50:37.000000000 -0400 |
440 |
-+++ opal-3.10.8/include/h323/h323.h 2012-10-23 14:10:37.000000000 -0400 |
441 |
-@@ -40,6 +40,7 @@ |
442 |
- #include <h323/h323con.h> |
443 |
- #include <h323/gkclient.h> |
444 |
- #include <opal/buildopts.h> |
445 |
-+#include <ptlib.h> |
446 |
- |
447 |
- PString OpalGetVersion(); |
448 |
- unsigned OpalGetMajorVersion(); |
449 |
|
450 |
diff --git a/net-libs/opal/files/opal-3.10.9-java-ruby-swig-fix.patch b/net-libs/opal/files/opal-3.10.9-java-ruby-swig-fix.patch |
451 |
deleted file mode 100644 |
452 |
index 65708635a34..00000000000 |
453 |
--- a/net-libs/opal/files/opal-3.10.9-java-ruby-swig-fix.patch |
454 |
+++ /dev/null |
455 |
@@ -1,29 +0,0 @@ |
456 |
-diff -uNr opal-3.10.9.orig/Makefile.in opal-3.10.9/Makefile.in |
457 |
---- opal-3.10.9.orig/Makefile.in 2012-12-03 11:09:17.000000000 -0500 |
458 |
-+++ opal-3.10.9/Makefile.in 2012-12-03 11:09:35.000000000 -0500 |
459 |
-@@ -371,9 +371,9 @@ |
460 |
- ifeq ($(OPAL_JAVA), yes) |
461 |
- |
462 |
- JAVA_SRCDIR = $(OPAL_SRCDIR)/java |
463 |
--JAVA_WRAPPER = $(JAVA_SRCDIR)/java_swig_wrapper.c |
464 |
-+JAVA_WRAPPER = $(JAVA_SRCDIR)/java_swig_wrapper.cxx |
465 |
- |
466 |
--VPATH_C += $(JAVA_SRCDIR) |
467 |
-+VPATH_CXX += $(JAVA_SRCDIR) |
468 |
- SOURCES += $(JAVA_WRAPPER) |
469 |
- |
470 |
- endif |
471 |
-@@ -384,10 +384,10 @@ |
472 |
- |
473 |
- ifeq ($(OPAL_RUBY), yes) |
474 |
- |
475 |
--RUBY_SRCDIR = $(OPAL_SRCDIR)/ruby |
476 |
--RUBY_WRAPPER = $(JAVA_SRCDIR)/ruby_swig_wrapper.c |
477 |
-+RUBY_SRCDIR = $(OPAL_SRCDIR)/Ruby |
478 |
-+RUBY_WRAPPER = $(JAVA_SRCDIR)/ruby_swig_wrapper.cxx |
479 |
- |
480 |
--VPATH_C += $(RUBY_SRCDIR) |
481 |
-+VPATH_CXX += $(RUBY_SRCDIR) |
482 |
- SOURCES += $(RUBY_WRAPPER) |
483 |
- |
484 |
- endif |
485 |
|
486 |
diff --git a/net-libs/opal/metadata.xml b/net-libs/opal/metadata.xml |
487 |
deleted file mode 100644 |
488 |
index 237de984898..00000000000 |
489 |
--- a/net-libs/opal/metadata.xml |
490 |
+++ /dev/null |
491 |
@@ -1,39 +0,0 @@ |
492 |
-<?xml version="1.0" encoding="UTF-8"?> |
493 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
494 |
-<pkgmetadata> |
495 |
- <!-- maintainer-needed --> |
496 |
- <use> |
497 |
- <flag name="celt">Enable CELT ultra-low delay audio codec</flag> |
498 |
- <flag name="dtmf">Enable DTMF encoding/decoding support</flag> |
499 |
- <flag name="fax">Enable T.38 FAX protocol</flag> |
500 |
- <flag name="h224">Enable H.224 real time control protocol</flag> |
501 |
- <flag name="h281">Enable H.281 Far-End Camera Control protocol</flag> |
502 |
- <flag name="h323">Enable H.323 protocol</flag> |
503 |
- <flag name="iax">Enable Inter-Asterisk eXchange protocol</flag> |
504 |
- <flag name="ivr">Enable Interactive Voice Response</flag> |
505 |
- <flag name="ilbc">Enable iLBC (RFC 3951) speech codec</flag> |
506 |
- <flag name="lid">Enable Line Interface Device</flag> |
507 |
- <flag name="plugins">Enable plugins support</flag> |
508 |
- <flag name="sbc">Enable the Bluetooth low-complexity, SubBand Codec |
509 |
- </flag> |
510 |
- <flag name="sip">Enable Session Initiation Protocol</flag> |
511 |
- <flag name="sipim">Enable SIP Instant Messages session</flag> |
512 |
- <flag name="srtp">Enable Secure Real-time Transport Protocol</flag> |
513 |
- <flag name="stats">Enable statistic reporting</flag> |
514 |
- <flag name="swig">Use swig to generate bindings</flag> |
515 |
- <flag name="video">Enable video support</flag> |
516 |
- <flag name="vpb">Enable Voicetronics VPB card support</flag> |
517 |
- <flag name="vxml">Enable VXML support</flag> |
518 |
- <flag name="wav">Enable WAVFILE support</flag> |
519 |
- <flag name="x264-static">Install x264 plugin statically linked with x264 |
520 |
- </flag> |
521 |
- <!-- unused atm |
522 |
- <flag name="g711plc">Enable G711 Packet Loss Concealment</flag> |
523 |
- <flag name="msrp">Enable Message Session Relay Protocol</flag> |
524 |
- <flag name="rfc4103">Enable RTP Payload for Text Conversation</flag> |
525 |
- --> |
526 |
- </use> |
527 |
- <upstream> |
528 |
- <remote-id type="sourceforge">opalvoip</remote-id> |
529 |
- </upstream> |
530 |
-</pkgmetadata> |
531 |
|
532 |
diff --git a/net-libs/opal/opal-3.10.11-r1.ebuild b/net-libs/opal/opal-3.10.11-r1.ebuild |
533 |
deleted file mode 100644 |
534 |
index eb050807232..00000000000 |
535 |
--- a/net-libs/opal/opal-3.10.11-r1.ebuild |
536 |
+++ /dev/null |
537 |
@@ -1,252 +0,0 @@ |
538 |
-# Copyright 1999-2017 Gentoo Foundation |
539 |
-# Distributed under the terms of the GNU General Public License v2 |
540 |
- |
541 |
-EAPI=6 |
542 |
-inherit autotools toolchain-funcs java-pkg-opt-2 flag-o-matic |
543 |
- |
544 |
-DESCRIPTION="C++ class library normalising numerous telephony protocols" |
545 |
-HOMEPAGE="http://www.opalvoip.org/" |
546 |
-SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2 |
547 |
- doc? ( mirror://sourceforge/opalvoip/${P}-htmldoc.tar.bz2 )" |
548 |
- |
549 |
-LICENSE="MPL-1.0" |
550 |
-SLOT="0" |
551 |
-KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86" |
552 |
-IUSE="celt debug doc +dtmf examples fax ffmpeg h224 h281 h323 iax ilbc |
553 |
-ipv6 ivr java ldap libav lid +plugins sbc +sip +sipim +sound srtp ssl static-libs |
554 |
-stats swig theora +video vpb vxml +wav x264 x264-static +xml" |
555 |
- |
556 |
-REQUIRED_USE=" |
557 |
- x264-static? ( x264 ) |
558 |
- h281? ( h224 ) |
559 |
- sip? ( sipim ) |
560 |
-" |
561 |
- |
562 |
-RDEPEND=" |
563 |
- >=net-libs/ptlib-2.10.10:=[stun,debug=,dtmf,http,ipv6?,ldap?,sound?,ssl?,video?,vxml?,wav?,xml?] |
564 |
- >=media-libs/speex-1.2_beta |
565 |
- fax? ( net-libs/ptlib[asn] ) |
566 |
- h323? ( net-libs/ptlib[asn] ) |
567 |
- ivr? ( net-libs/ptlib[http,xml,vxml] ) |
568 |
- java? ( >=virtual/jre-1.4:* ) |
569 |
- plugins? ( |
570 |
- media-sound/gsm |
571 |
- celt? ( media-libs/celt:0 ) |
572 |
- ffmpeg? ( |
573 |
- libav? ( media-video/libav:0=[encode] ) |
574 |
- !libav? ( media-video/ffmpeg:0=[encode] ) ) |
575 |
- ilbc? ( dev-libs/ilbc-rfc3951 ) |
576 |
- sbc? ( media-libs/libsamplerate ) |
577 |
- theora? ( media-libs/libtheora ) |
578 |
- x264? ( virtual/ffmpeg |
579 |
- media-libs/x264 ) ) |
580 |
- srtp? ( net-libs/libsrtp:0= ) |
581 |
- vxml? ( net-libs/ptlib[http,vxml] ) |
582 |
-" |
583 |
-DEPEND="${RDEPEND} |
584 |
- virtual/pkgconfig |
585 |
- java? ( swig? ( dev-lang/swig ) |
586 |
- >=virtual/jdk-1.4 ) |
587 |
-" |
588 |
- |
589 |
-# NOTES: |
590 |
-# ffmpeg[encode] is for h263 and mpeg4 |
591 |
-# ssl, xml, vxml, ipv6, ldap, sound, wav, and video are use flags |
592 |
-# herited from ptlib: feature is enabled if ptlib has enabled it |
593 |
-# however, disabling it if ptlib has it looks hard (coz of buildopts.h) |
594 |
-# forcing ptlib to disable it for opal is not a solution too |
595 |
-# atm, accepting the "auto-feature" looks like a good solution |
596 |
-# (asn is used for fax and config _only_ for examples) |
597 |
-# OPALDIR should not be used anymore but if a package still need it, create it |
598 |
- |
599 |
-pkg_setup() { |
600 |
- # workaround for bug 282838 |
601 |
- append-cxxflags "-fno-visibility-inlines-hidden" |
602 |
- append-cxxflags "-fno-strict-aliasing" |
603 |
- |
604 |
- java-pkg-opt-2_pkg_setup |
605 |
-} |
606 |
- |
607 |
-src_prepare() { |
608 |
- default |
609 |
- |
610 |
- # remove visual studio related files from samples/ |
611 |
- if use examples; then |
612 |
- rm -f samples/*/*.vcproj |
613 |
- rm -f samples/*/*.sln |
614 |
- rm -f samples/*/*.dsp |
615 |
- rm -f samples/*/*.dsw |
616 |
- fi |
617 |
- |
618 |
- # LFS ffmpeg2+ fixes. |
619 |
- eapply "${FILESDIR}"/opal-3.10.10-ffmpeg2-1.patch |
620 |
- |
621 |
- if ! use h323; then |
622 |
- # Without this patch, ekiga wont compile, even with |
623 |
- # USE=-h323. |
624 |
- eapply "${FILESDIR}/${PN}-3.10.9-disable-h323-workaround.patch" |
625 |
- fi |
626 |
- |
627 |
- eapply "${FILESDIR}/${PN}-3.10.9-java-ruby-swig-fix.patch" |
628 |
- |
629 |
- sed -i -e "s:\(.*HAS_H224.*\), \[OPAL_H323\]:\1:" configure.ac \ |
630 |
- || die "sed failed" |
631 |
- |
632 |
- # sed fixes for ffmpeg-3. |
633 |
- sed -e 's/CODEC_ID/AV_&/' \ |
634 |
- -e 's/PIX_FMT_/AV_&/' \ |
635 |
- -i plugins/video/H.263-1998/h263-1998.cxx \ |
636 |
- plugins/video/common/dyna.cxx \ |
637 |
- plugins/video/H.264/h264-x264.cxx \ |
638 |
- plugins/video/MPEG4-ffmpeg/mpeg4.cxx || die "sed failed" |
639 |
- |
640 |
- eaclocal |
641 |
- eautoconf |
642 |
- |
643 |
- # in plugins |
644 |
- cd plugins/ |
645 |
- eaclocal |
646 |
- eautoconf |
647 |
- cd .. |
648 |
- |
649 |
- # disable celt if celt is not enabled (prevent auto magic dep) |
650 |
- # already in repository |
651 |
- if ! use celt; then |
652 |
- sed -i -e "s/HAVE_CELT=yes/HAVE_CELT=no/" plugins/configure \ |
653 |
- || die "sed failed" |
654 |
- fi |
655 |
- |
656 |
- # fix automatic swig detection, upstream bug 2712521 (upstream reject it) |
657 |
- if ! use swig; then |
658 |
- sed -i -e "/^SWIG=/d" configure || die "patching configure failed" |
659 |
- fi |
660 |
- |
661 |
- use ilbc || { rm -r plugins/audio/iLBC/ || die "removing iLBC failed"; } |
662 |
- |
663 |
- java-pkg-opt-2_src_prepare |
664 |
-} |
665 |
- |
666 |
-src_configure() { |
667 |
- local forcedconf="" |
668 |
- |
669 |
- # fix bug 277233, upstream bug 2820939 |
670 |
- if use fax; then |
671 |
- forcedconf="${forcedconf} --enable-statistics" |
672 |
- fi |
673 |
- |
674 |
- # --with-libavcodec-source-dir should _not_ be set, it's for trunk sources |
675 |
- # versioncheck: check for ptlib version |
676 |
- # shared: should always be enabled for a lib |
677 |
- # localspeex, localspeexdsp, localgsm, localilbc: never use bundled libs |
678 |
- # samples: only build some samples, useless |
679 |
- # libavcodec-stackalign-hack: prevent hack (default disable by upstream) |
680 |
- # default-to-full-capabilties: default enable by upstream |
681 |
- # aec: atm, only used when bundled speex, so it's painless for us |
682 |
- # zrtp doesn't depend on net-libs/libzrtpcpp but on libzrtp from |
683 |
- # http://zfoneproject.com/ wich is not in portage |
684 |
- # msrp: highly experimental |
685 |
- # spandsp: doesn't work with newest spandsp, upstream bug 2796047 |
686 |
- # g711plc: force enable |
687 |
- # rfc4103: not really used, upstream bug 2795831 |
688 |
- # t38, spandsp: merged in fax |
689 |
- # h450, h460, h501: merged in h323 (they are additional features of h323) |
690 |
- econf \ |
691 |
- --enable-versioncheck \ |
692 |
- --enable-shared \ |
693 |
- --disable-zrtp \ |
694 |
- --disable-localspeex \ |
695 |
- --disable-localspeexdsp \ |
696 |
- --disable-localgsm \ |
697 |
- --disable-localilbc \ |
698 |
- --disable-samples \ |
699 |
- --disable-libavcodec-stackalign-hack \ |
700 |
- --enable-default-to-full-capabilties \ |
701 |
- --enable-aec \ |
702 |
- --disable-msrp \ |
703 |
- --disable-spandsp \ |
704 |
- --enable-g711plc \ |
705 |
- --enable-rfc4103 \ |
706 |
- --disable-capi \ |
707 |
- --disable-ixj \ |
708 |
- $(use_enable debug) \ |
709 |
- $(use_enable fax) \ |
710 |
- $(use_enable fax t38) \ |
711 |
- $(use_enable h224) \ |
712 |
- $(use_enable h281) \ |
713 |
- $(use_enable h323) \ |
714 |
- $(use_enable h323 h450) \ |
715 |
- $(use_enable h323 h460) \ |
716 |
- $(use_enable h323 h501) \ |
717 |
- $(use_enable iax) \ |
718 |
- $(use_enable ivr) \ |
719 |
- $(use_enable java) \ |
720 |
- $(use_enable lid) \ |
721 |
- $(use_enable plugins) \ |
722 |
- $(use_enable sbc) \ |
723 |
- $(use_enable sip) \ |
724 |
- $(use_enable sipim) \ |
725 |
- $(use_enable stats statistics) \ |
726 |
- $(use_enable video) $(use_enable video rfc4175) \ |
727 |
- $(use_enable vpb) \ |
728 |
- $(use_enable x264 h264) \ |
729 |
- $(use_enable x264-static x264-link-static) \ |
730 |
- ${forcedconf} |
731 |
-} |
732 |
- |
733 |
-src_compile() { |
734 |
- local makeopts="" |
735 |
- |
736 |
- use debug && makeopts="debug" |
737 |
- |
738 |
- emake ${makeopts} |
739 |
-} |
740 |
- |
741 |
-src_install() { |
742 |
- default |
743 |
- |
744 |
- # Get rid of static libraries if not requested |
745 |
- # There seems to be no easy way to disable this in the build system |
746 |
- if ! use static-libs; then |
747 |
- rm -v "${D}"/usr/lib*/*.a || die |
748 |
- fi |
749 |
- |
750 |
- if use doc; then |
751 |
- dohtml -r "${WORKDIR}"/html/* docs/* || die "dohtml failed" |
752 |
- fi |
753 |
- |
754 |
- if use examples; then |
755 |
- local exampledir="/usr/share/doc/${PF}/examples" |
756 |
- local basedir="samples" |
757 |
- local sampledirs="`ls ${basedir} --hide=configure* \ |
758 |
- --hide=opal_samples.mak.in`" |
759 |
- |
760 |
- # first, install files |
761 |
- insinto ${exampledir}/ |
762 |
- doins ${basedir}/{configure*,opal_samples*} \ |
763 |
- || die "doins failed" |
764 |
- |
765 |
- # now, all examples |
766 |
- for x in ${sampledirs}; do |
767 |
- insinto ${exampledir}/${x}/ |
768 |
- doins ${basedir}/${x}/* || die "doins failed" |
769 |
- done |
770 |
- |
771 |
- # some examples need version.h |
772 |
- insinto "/usr/share/doc/${PF}/" |
773 |
- doins version.h || die "doins failed" |
774 |
- fi |
775 |
-} |
776 |
- |
777 |
-pkg_postinst() { |
778 |
- if use examples; then |
779 |
- ewarn "All examples have been installed, some of them will not work on your system" |
780 |
- ewarn "it will depend of the enabled USE flags in ptlib and opal" |
781 |
- fi |
782 |
- |
783 |
- if ! use plugins || ! use sound || ! use video; then |
784 |
- ewarn "You have disabled sound, video or plugins USE flags." |
785 |
- ewarn "Most audio/video features or plugins have been disabled silently" |
786 |
- ewarn "even if enabled via USE flags." |
787 |
- ewarn "Having a feature enabled via USE flag but disabled can lead to issues." |
788 |
- fi |
789 |
-} |