1 |
commit: 9defe9ca14947c28bfc587ce18281beeb858f6e9 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 24 02:13:22 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 24 02:16:50 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9defe9ca |
7 |
|
8 |
net-libs/opal: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
.../opal/files/opal-3.10.11-libav9-gentoo.patch | 262 --------------------- |
13 |
.../files/opal-3.10.9-avoid_cflags_mixup.patch | 131 ----------- |
14 |
net-libs/opal/files/opal-3.10.9-ffmpeg.patch | 189 --------------- |
15 |
net-libs/opal/metadata.xml | 1 - |
16 |
net-libs/opal/opal-3.10.11.ebuild | 252 -------------------- |
17 |
5 files changed, 835 deletions(-) |
18 |
|
19 |
diff --git a/net-libs/opal/files/opal-3.10.11-libav9-gentoo.patch b/net-libs/opal/files/opal-3.10.11-libav9-gentoo.patch |
20 |
deleted file mode 100644 |
21 |
index 6288866262d..00000000000 |
22 |
--- a/net-libs/opal/files/opal-3.10.11-libav9-gentoo.patch |
23 |
+++ /dev/null |
24 |
@@ -1,262 +0,0 @@ |
25 |
---- plugins/video/common/dyna.cxx |
26 |
-+++ plugins/video/common/dyna.cxx |
27 |
-@@ -37,6 +37,7 @@ |
28 |
- * Craig Southeren (craigs@×××××××××××××.com) |
29 |
- * Matthias Schneider (ma30002000@×××××.de) |
30 |
- */ |
31 |
-+#include <stdio.h> |
32 |
- #include "dyna.h" |
33 |
- |
34 |
- bool DynaLink::Open(const char *name) |
35 |
-@@ -210,14 +211,14 @@ |
36 |
- #endif |
37 |
- |
38 |
- |
39 |
--FFMPEGLibrary::FFMPEGLibrary(CodecID codec) |
40 |
-+FFMPEGLibrary::FFMPEGLibrary(AVCodecID codec) |
41 |
- { |
42 |
- m_codec = codec; |
43 |
-- if (m_codec==CODEC_ID_H264) |
44 |
-+ if (m_codec==AV_CODEC_ID_H264) |
45 |
- snprintf( m_codecString, sizeof(m_codecString), "H264"); |
46 |
-- if (m_codec==CODEC_ID_H263P) |
47 |
-+ if (m_codec==AV_CODEC_ID_H263P) |
48 |
- snprintf( m_codecString, sizeof(m_codecString), "H263+"); |
49 |
-- if (m_codec==CODEC_ID_MPEG4) |
50 |
-+ if (m_codec==AV_CODEC_ID_MPEG4) |
51 |
- snprintf( m_codecString, sizeof(m_codecString), "MPEG4"); |
52 |
- m_isLoadedOK = false; |
53 |
- } |
54 |
-@@ -348,12 +349,12 @@ |
55 |
- return true; |
56 |
- } |
57 |
- |
58 |
--AVCodec *FFMPEGLibrary::AvcodecFindEncoder(enum CodecID id) |
59 |
-+AVCodec *FFMPEGLibrary::AvcodecFindEncoder(enum AVCodecID id) |
60 |
- { |
61 |
- return Favcodec_find_encoder(id); |
62 |
- } |
63 |
- |
64 |
--AVCodec *FFMPEGLibrary::AvcodecFindDecoder(enum CodecID id) |
65 |
-+AVCodec *FFMPEGLibrary::AvcodecFindDecoder(enum AVCodecID id) |
66 |
- { |
67 |
- WaitAndSignal m(processLock); |
68 |
- |
69 |
---- plugins/video/common/dyna.h |
70 |
-+++ plugins/video/common/dyna.h |
71 |
-@@ -88,13 +88,13 @@ |
72 |
- class FFMPEGLibrary |
73 |
- { |
74 |
- public: |
75 |
-- FFMPEGLibrary(CodecID codec); |
76 |
-+ FFMPEGLibrary(AVCodecID codec); |
77 |
- ~FFMPEGLibrary(); |
78 |
- |
79 |
- bool Load(); |
80 |
- |
81 |
-- AVCodec *AvcodecFindEncoder(enum CodecID id); |
82 |
-- AVCodec *AvcodecFindDecoder(enum CodecID id); |
83 |
-+ AVCodec *AvcodecFindEncoder(enum AVCodecID id); |
84 |
-+ AVCodec *AvcodecFindDecoder(enum AVCodecID id); |
85 |
- AVCodecContext *AvcodecAllocContext(void); |
86 |
- AVFrame *AvcodecAllocFrame(void); |
87 |
- int AvcodecOpen(AVCodecContext *ctx, AVCodec *codec); |
88 |
-@@ -117,15 +117,15 @@ |
89 |
- DynaLink m_libAvcodec; |
90 |
- DynaLink m_libAvutil; |
91 |
- |
92 |
-- CodecID m_codec; |
93 |
-+ AVCodecID m_codec; |
94 |
- char m_codecString[32]; |
95 |
- |
96 |
- void (*Favcodec_init)(void); |
97 |
- void (*Fav_init_packet)(AVPacket *pkt); |
98 |
- |
99 |
- void (*Favcodec_register_all)(void); |
100 |
-- AVCodec *(*Favcodec_find_encoder)(enum CodecID id); |
101 |
-- AVCodec *(*Favcodec_find_decoder)(enum CodecID id); |
102 |
-+ AVCodec *(*Favcodec_find_encoder)(enum AVCodecID id); |
103 |
-+ AVCodec *(*Favcodec_find_decoder)(enum AVCodecID id); |
104 |
- AVCodecContext *(*Favcodec_alloc_context)(void); |
105 |
- AVFrame *(*Favcodec_alloc_frame)(void); |
106 |
- int (*Favcodec_open)(AVCodecContext *ctx, AVCodec *codec); |
107 |
---- plugins/video/H.263-1998/h263-1998.cxx |
108 |
-+++ plugins/video/H.263-1998/h263-1998.cxx |
109 |
-@@ -43,6 +43,12 @@ |
110 |
- * $Date: 2014/04/29 09:02:06 $ |
111 |
- */ |
112 |
- |
113 |
-+#define CODEC_FLAG_H263P_UMV 0x02000000 |
114 |
-+#define CODEC_FLAG_H263P_SLICE_STRUCT 0x10000000 |
115 |
-+#define CODEC_FLAG_H263P_AIV 0x00000008 |
116 |
-+#define CODEC_FLAG_OBMC 0x00000001 |
117 |
-+#define FF_I_TYPE 1 |
118 |
-+ |
119 |
- #ifndef PLUGIN_CODEC_DLL_EXPORTS |
120 |
- #include "plugin-config.h" |
121 |
- #endif |
122 |
-@@ -94,7 +100,7 @@ |
123 |
- { CIF16_WIDTH, CIF16_HEIGHT, PLUGINCODEC_CIF16_MPI }, |
124 |
- }; |
125 |
- |
126 |
--static FFMPEGLibrary FFMPEGLibraryInstance(CODEC_ID_H263P); |
127 |
-+static FFMPEGLibrary FFMPEGLibraryInstance(AV_CODEC_ID_H263P); |
128 |
- |
129 |
- |
130 |
- ///////////////////////////////////////////////////////////////////////////// |
131 |
-@@ -203,7 +209,7 @@ |
132 |
- PTRACE(4, m_prefix, "Encoder closed"); |
133 |
- } |
134 |
- |
135 |
--bool H263_Base_EncoderContext::Init(CodecID codecId) |
136 |
-+bool H263_Base_EncoderContext::Init(AVCodecID codecId) |
137 |
- { |
138 |
- PTRACE(5, m_prefix, "Opening encoder"); |
139 |
- |
140 |
-@@ -616,7 +622,7 @@ |
141 |
- |
142 |
- bool H263_RFC2190_EncoderContext::Init() |
143 |
- { |
144 |
-- if (!H263_Base_EncoderContext::Init(CODEC_ID_H263)) |
145 |
-+ if (!H263_Base_EncoderContext::Init(AV_CODEC_ID_H263)) |
146 |
- return false; |
147 |
- |
148 |
- #if LIBAVCODEC_RTP_MODE |
149 |
-@@ -661,7 +667,7 @@ |
150 |
- |
151 |
- bool H263_RFC2429_EncoderContext::Init() |
152 |
- { |
153 |
-- return H263_Base_EncoderContext::Init(CODEC_ID_H263P); |
154 |
-+ return H263_Base_EncoderContext::Init(AV_CODEC_ID_H263P); |
155 |
- } |
156 |
- |
157 |
- |
158 |
-@@ -685,7 +691,7 @@ |
159 |
- if (!FFMPEGLibraryInstance.Load()) |
160 |
- return; |
161 |
- |
162 |
-- if ((m_codec = FFMPEGLibraryInstance.AvcodecFindDecoder(CODEC_ID_H263)) == NULL) { |
163 |
-+ if ((m_codec = FFMPEGLibraryInstance.AvcodecFindDecoder(AV_CODEC_ID_H263)) == NULL) { |
164 |
- PTRACE(1, m_prefix, "Codec not found for decoder"); |
165 |
- return; |
166 |
- } |
167 |
---- plugins/video/H.263-1998/h263-1998.h |
168 |
-+++ plugins/video/H.263-1998/h263-1998.h |
169 |
-@@ -115,7 +115,7 @@ |
170 |
- virtual ~H263_Base_EncoderContext(); |
171 |
- |
172 |
- virtual bool Init() = 0; |
173 |
-- virtual bool Init(CodecID codecId); |
174 |
-+ virtual bool Init(AVCodecID codecId); |
175 |
- |
176 |
- virtual bool SetOptions(const char * const * options); |
177 |
- virtual void SetOption(const char * option, const char * value); |
178 |
---- plugins/video/H.263-1998/Makefile.in |
179 |
-+++ plugins/video/H.263-1998/Makefile.in |
180 |
-@@ -34,7 +34,7 @@ |
181 |
- $(COMMONDIR)/mpi.cxx \ |
182 |
- $(COMMONDIR)/dyna.cxx |
183 |
- |
184 |
--CXXFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) |
185 |
-+CXXFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) -fpermissive |
186 |
- LIBS += @DL_LIBS@ |
187 |
- |
188 |
- HAVE_LIBAVCODEC_RTP_MODE=@HAVE_LIBAVCODEC_RTP_MODE@ |
189 |
---- plugins/video/H.264/h264-x264.cxx |
190 |
-+++ plugins/video/H.264/h264-x264.cxx |
191 |
-@@ -36,6 +36,15 @@ |
192 |
- * $Date: 2014/04/29 09:02:06 $ |
193 |
- */ |
194 |
- |
195 |
-+#define FF_ER_AGGRESSIVE 3 |
196 |
-+#define CODEC_FLAG2_BRDO 0x00000400 |
197 |
-+#define CODEC_FLAG2_MEMC_ONLY 0x00001000 |
198 |
-+#define CODEC_FLAG2_DROP_FRAME_TIMECODE 0x00002000 |
199 |
-+#define CODEC_FLAG2_SKIP_RD 0x00004000 ///< RD optimal MB level residual skipping |
200 |
-+#define FF_IDCT_H264 11 |
201 |
-+ |
202 |
-+#include <stdio.h> |
203 |
-+ |
204 |
- #ifndef PLUGIN_CODEC_DLL_EXPORTS |
205 |
- #include "plugin-config.h" |
206 |
- #endif |
207 |
-@@ -104,7 +113,7 @@ |
208 |
- |
209 |
- /////////////////////////////////////////////////////////////////////////////// |
210 |
- |
211 |
--FFMPEGLibrary FFMPEGLibraryInstance(CODEC_ID_H264); |
212 |
-+FFMPEGLibrary FFMPEGLibraryInstance(AV_CODEC_ID_H264); |
213 |
- |
214 |
- PLUGINCODEC_CONTROL_LOG_FUNCTION_DEF |
215 |
- |
216 |
-@@ -1064,7 +1073,7 @@ |
217 |
- allows you to fail the create operation (return false), which cannot |
218 |
- be done in the normal C++ constructor. */ |
219 |
- |
220 |
-- if ((m_codec = FFMPEGLibraryInstance.AvcodecFindDecoder(CODEC_ID_H264)) == NULL) |
221 |
-+ if ((m_codec = FFMPEGLibraryInstance.AvcodecFindDecoder(AV_CODEC_ID_H264)) == NULL) |
222 |
- return false; |
223 |
- |
224 |
- if ((m_context = FFMPEGLibraryInstance.AvcodecAllocContext()) == NULL) |
225 |
-@@ -1072,7 +1081,7 @@ |
226 |
- |
227 |
- m_context->workaround_bugs = FF_BUG_AUTODETECT; |
228 |
- #ifdef FF_ER_AGGRESSIVE |
229 |
-- m_context->error_recognition = FF_ER_AGGRESSIVE; |
230 |
-+ m_context->err_recognition = FF_ER_AGGRESSIVE; |
231 |
- #endif |
232 |
- m_context->idct_algo = FF_IDCT_H264; |
233 |
- m_context->error_concealment = FF_EC_GUESS_MVS | FF_EC_DEBLOCK; |
234 |
- |
235 |
---- plugins/video/MPEG4-ffmpeg/mpeg4.cxx |
236 |
-+++ plugins/video/MPEG4-ffmpeg/mpeg4.cxx |
237 |
-@@ -53,6 +53,11 @@ |
238 |
- |
239 |
- */ |
240 |
- |
241 |
-+#define CODEC_FLAG_H263P_UMV 0x02000000 |
242 |
-+#define CODEC_FLAG_H263P_SLICE_STRUCT 0x10000000 |
243 |
-+#define FF_I_TYPE 1 |
244 |
-+#define CODEC_FLAG_PART 0x0080 |
245 |
-+ |
246 |
- // Plugin specific |
247 |
- #define _CRT_SECURE_NO_DEPRECATE |
248 |
- |
249 |
-@@ -205,7 +210,7 @@ |
250 |
- { 0 } |
251 |
- }; |
252 |
- |
253 |
--FFMPEGLibrary FFMPEGLibraryInstance(CODEC_ID_MPEG4); |
254 |
-+FFMPEGLibrary FFMPEGLibraryInstance(AV_CODEC_ID_MPEG4); |
255 |
- |
256 |
- |
257 |
- static bool mpeg4IsIframe (BYTE * frameBuffer, unsigned int frameLen ) |
258 |
-@@ -701,7 +706,7 @@ |
259 |
- return false; |
260 |
- } |
261 |
- |
262 |
-- if((m_avcodec = FFMPEGLibraryInstance.AvcodecFindEncoder(CODEC_ID_MPEG4)) == NULL){ |
263 |
-+ if((m_avcodec = FFMPEGLibraryInstance.AvcodecFindEncoder(AV_CODEC_ID_MPEG4)) == NULL){ |
264 |
- PTRACE(1, "MPEG4", "Encoder not found"); |
265 |
- return false; |
266 |
- } |
267 |
-@@ -1391,7 +1396,7 @@ |
268 |
- |
269 |
- bool MPEG4DecoderContext::OpenCodec() |
270 |
- { |
271 |
-- if ((m_avcodec = FFMPEGLibraryInstance.AvcodecFindDecoder(CODEC_ID_MPEG4)) == NULL) { |
272 |
-+ if ((m_avcodec = FFMPEGLibraryInstance.AvcodecFindDecoder(AV_CODEC_ID_MPEG4)) == NULL) { |
273 |
- PTRACE(1, "MPEG4", "Decoder not found for encoder"); |
274 |
- return false; |
275 |
- } |
276 |
---- plugins/video/MPEG4-ffmpeg/Makefile.in |
277 |
-+++ plugins/video/MPEG4-ffmpeg/Makefile.in |
278 |
-@@ -30,7 +30,7 @@ |
279 |
- SRCDIR := . |
280 |
- SRCS := mpeg4.cxx $(COMMONDIR)/dyna.cxx |
281 |
- |
282 |
--CXXFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) |
283 |
-+CXXFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) -fpermissive |
284 |
- LIBS += @DL_LIBS@ |
285 |
- |
286 |
- # Add LIBAVCODEC_SOURCE_DIR to the include path so we can #include <libavcodec/...h> |
287 |
|
288 |
diff --git a/net-libs/opal/files/opal-3.10.9-avoid_cflags_mixup.patch b/net-libs/opal/files/opal-3.10.9-avoid_cflags_mixup.patch |
289 |
deleted file mode 100644 |
290 |
index 7f9a3b5c076..00000000000 |
291 |
--- a/net-libs/opal/files/opal-3.10.9-avoid_cflags_mixup.patch |
292 |
+++ /dev/null |
293 |
@@ -1,131 +0,0 @@ |
294 |
-diff -uNr opal-3.10.8.orig/plugins/plugin-inc.mak.in opal-3.10.8/plugins/plugin-inc.mak.in |
295 |
---- opal-3.10.8.orig/plugins/plugin-inc.mak.in 2012-10-24 12:07:31.000000000 -0400 |
296 |
-+++ opal-3.10.8/plugins/plugin-inc.mak.in 2012-10-24 12:09:22.000000000 -0400 |
297 |
-@@ -31,11 +31,13 @@ |
298 |
- CC := @CC@ |
299 |
- CXX := @CXX@ |
300 |
- CFLAGS += @CFLAGS@ -I@prefix@/include -I$(PLUGINDIR)/../include -I$(PLUGINDIR) |
301 |
-+CXXFLAGS += @CXXFLAGS@ -I@prefix@/include -I$(PLUGINDIR)/../include -I$(PLUGINDIR) |
302 |
- LDFLAGS += @LDFLAGS@ @LDSO@ |
303 |
- PLUGINEXT :=@PLUGINEXT@ |
304 |
- |
305 |
- ifneq ($(DEBUG),) |
306 |
- CFLAGS += -g |
307 |
-+CXXFLAGS += -g |
308 |
- endif |
309 |
- |
310 |
- OBJDIR := $(PLUGINDIR)/../lib_@OSTYPE@_@MACHTYPE@/plugins/$(BASENAME) |
311 |
-@@ -64,11 +66,11 @@ |
312 |
- |
313 |
- $(OBJDIR)/%.o : %.cxx |
314 |
- @mkdir -p $(OBJDIR) >/dev/null 2>&1 |
315 |
-- $(Q_CC)$(CXX) -c $(CXXFLAGS) $(CFLAGS) -o $@ $< |
316 |
-+ $(Q_CC)$(CXX) -c $(CXXFLAGS) -o $@ $< |
317 |
- |
318 |
- $(OBJDIR)/%.o : %.cpp |
319 |
- @mkdir -p $(OBJDIR) >/dev/null 2>&1 |
320 |
-- $(Q_CC)$(CXX) -c $(CXXFLAGS) $(CFLAGS) -o $@ $< |
321 |
-+ $(Q_CC)$(CXX) -c $(CXXFLAGS) -o $@ $< |
322 |
- |
323 |
- OBJECTS = $(addprefix $(OBJDIR)/,$(patsubst %.cxx,%.o,$(patsubst %.cpp,%.o,$(patsubst %.c,%.o,$(notdir $(SRCS)))))) |
324 |
- |
325 |
-diff -uNr opal-3.10.8.orig/plugins/video/H.261-vic/Makefile.in opal-3.10.8/plugins/video/H.261-vic/Makefile.in |
326 |
---- opal-3.10.8.orig/plugins/video/H.261-vic/Makefile.in 2012-10-24 12:07:46.000000000 -0400 |
327 |
-+++ opal-3.10.8/plugins/video/H.261-vic/Makefile.in 2012-10-24 12:04:10.000000000 -0400 |
328 |
-@@ -39,7 +39,7 @@ |
329 |
- $(SRCDIR)/bv.c \ |
330 |
- |
331 |
- |
332 |
--CFLAGS += -I$(COMMONDIR) |
333 |
-+CXXFLAGS += -I$(COMMONDIR) |
334 |
- |
335 |
- INSTALL_DIR := @VC_PLUGIN_DIR@ |
336 |
- PLUGINDIR := @PLUGINDIR@ |
337 |
-diff -uNr opal-3.10.8.orig/plugins/video/H.263-1998/Makefile.in opal-3.10.8/plugins/video/H.263-1998/Makefile.in |
338 |
---- opal-3.10.8.orig/plugins/video/H.263-1998/Makefile.in 2012-10-24 12:08:02.000000000 -0400 |
339 |
-+++ opal-3.10.8/plugins/video/H.263-1998/Makefile.in 2012-10-24 12:04:00.000000000 -0400 |
340 |
-@@ -34,12 +34,12 @@ |
341 |
- $(COMMONDIR)/mpi.cxx \ |
342 |
- $(COMMONDIR)/dyna.cxx |
343 |
- |
344 |
--CFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) |
345 |
-+CXXFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) |
346 |
- LIBS += @DL_LIBS@ |
347 |
- |
348 |
- HAVE_LIBAVCODEC_RTP_MODE=@HAVE_LIBAVCODEC_RTP_MODE@ |
349 |
- ifeq ($(HAVE_LIBAVCODEC_RTP_MODE),yes) |
350 |
--CFLAGS += -DLIBAVCODEC_RTP_MODE=1 |
351 |
-+CXXFLAGS += -DLIBAVCODEC_RTP_MODE=1 |
352 |
- endif |
353 |
- |
354 |
- vpath %.cxx $(COMMONDIR) |
355 |
-diff -uNr opal-3.10.8.orig/plugins/video/H.264/gpl/Makefile.in opal-3.10.8/plugins/video/H.264/gpl/Makefile.in |
356 |
---- opal-3.10.8.orig/plugins/video/H.264/gpl/Makefile.in 2012-10-24 12:06:15.000000000 -0400 |
357 |
-+++ opal-3.10.8/plugins/video/H.264/gpl/Makefile.in 2012-10-24 12:11:11.000000000 -0400 |
358 |
-@@ -47,6 +47,7 @@ |
359 |
- CC =@CC@ |
360 |
- CXX =@CXX@ |
361 |
- CFLAGS =@X264_CFLAGS@ -I.. -I$(PLUGINDIR) -I$(OPALDIR)/include -DGPL_HELPER_APP -DPLUGINCODEC_TRACING |
362 |
-+CXXFLAGS =@X264_CFLAGS@ -I.. -I$(PLUGINDIR) -I$(OPALDIR)/include -DGPL_HELPER_APP -DPLUGINCODEC_TRACING |
363 |
- LDFLAGS =@LDFLAGS@ @X264_LIBS@ |
364 |
- |
365 |
- |
366 |
-@@ -59,7 +60,7 @@ |
367 |
- |
368 |
- $(OBJDIR)/%.o : %.cxx |
369 |
- @mkdir -p $(OBJDIR) >/dev/null 2>&1 |
370 |
-- $(Q_CC)$(CXX) $(CFLAGS) -c $< -o $@ |
371 |
-+ $(Q_CC)$(CXX) $(CXXFLAGS) -c $< -o $@ |
372 |
- |
373 |
- $(OBJDIR)/%.o : %.c |
374 |
- @mkdir -p $(OBJDIR) >/dev/null 2>&1 |
375 |
-diff -uNr opal-3.10.8.orig/plugins/video/H.264/Makefile.in opal-3.10.8/plugins/video/H.264/Makefile.in |
376 |
---- opal-3.10.8.orig/plugins/video/H.264/Makefile.in 2012-10-24 12:08:17.000000000 -0400 |
377 |
-+++ opal-3.10.8/plugins/video/H.264/Makefile.in 2012-10-24 12:04:29.000000000 -0400 |
378 |
-@@ -34,12 +34,12 @@ |
379 |
- $(SHAREDDIR)/x264wrap.cxx \ |
380 |
- $(COMMONDIR)/dyna.cxx \ |
381 |
- |
382 |
--CFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) -DLIB_DIR='"$(libdir)"' -DVC_PLUGIN_DIR='"@VC_PLUGIN_DIR@"' |
383 |
-+CXXFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) -DLIB_DIR='"$(libdir)"' -DVC_PLUGIN_DIR='"@VC_PLUGIN_DIR@"' |
384 |
- LIBS += @DL_LIBS@ |
385 |
- |
386 |
- IS_H264_LICENSED:=@IS_H264_LICENSED@ |
387 |
- ifeq ($(IS_H264_LICENSED),yes) |
388 |
-- CFLAGS += @X264_CFLAGS@ -DX264_LICENSED |
389 |
-+ CXXFLAGS += @X264_CFLAGS@ -DX264_LICENSED |
390 |
- LIBS += @X264_LIBS@ |
391 |
- else |
392 |
- SUBDIRS := gpl |
393 |
-diff -uNr opal-3.10.8.orig/plugins/video/MPEG4-ffmpeg/Makefile.in opal-3.10.8/plugins/video/MPEG4-ffmpeg/Makefile.in |
394 |
---- opal-3.10.8.orig/plugins/video/MPEG4-ffmpeg/Makefile.in 2012-10-24 12:08:36.000000000 -0400 |
395 |
-+++ opal-3.10.8/plugins/video/MPEG4-ffmpeg/Makefile.in 2012-10-24 12:04:45.000000000 -0400 |
396 |
-@@ -30,14 +30,14 @@ |
397 |
- SRCDIR := . |
398 |
- SRCS := mpeg4.cxx $(COMMONDIR)/dyna.cxx |
399 |
- |
400 |
--CFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) |
401 |
-+CXXFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) |
402 |
- LIBS += @DL_LIBS@ |
403 |
- |
404 |
- # Add LIBAVCODEC_SOURCE_DIR to the include path so we can #include <libavcodec/...h> |
405 |
- # Also add libavutil, so ffmpeg headers can #include "log.h". |
406 |
- LIBAVCODEC_SOURCE_DIR := @LIBAVCODEC_SOURCE_DIR@ |
407 |
- ifneq (,$(LIBAVCODEC_SOURCE_DIR)) |
408 |
--CFLAGS += -I$(LIBAVCODEC_SOURCE_DIR) -I$(LIBAVCODEC_SOURCE_DIR)/libavutil |
409 |
-+CXXFLAGS += -I$(LIBAVCODEC_SOURCE_DIR) -I$(LIBAVCODEC_SOURCE_DIR)/libavutil |
410 |
- endif |
411 |
- |
412 |
- vpath %.cxx $(COMMONDIR) |
413 |
-diff -uNr opal-3.10.8.orig/plugins/video/THEORA/Makefile.in opal-3.10.8/plugins/video/THEORA/Makefile.in |
414 |
---- opal-3.10.8.orig/plugins/video/THEORA/Makefile.in 2012-10-24 12:08:47.000000000 -0400 |
415 |
-+++ opal-3.10.8/plugins/video/THEORA/Makefile.in 2012-10-24 12:05:00.000000000 -0400 |
416 |
-@@ -30,7 +30,7 @@ |
417 |
- SRCDIR := . |
418 |
- SRCS := theora_frame.cxx theora_plugin.cxx |
419 |
- |
420 |
--CFLAGS += @THEORA_CFLAGS@ -I$(COMMONDIR) |
421 |
-+CXXFLAGS += @THEORA_CFLAGS@ -I$(COMMONDIR) |
422 |
- LIBS += @THEORA_LIBS@ |
423 |
- |
424 |
- INSTALL_DIR := @VC_PLUGIN_DIR@ |
425 |
|
426 |
diff --git a/net-libs/opal/files/opal-3.10.9-ffmpeg.patch b/net-libs/opal/files/opal-3.10.9-ffmpeg.patch |
427 |
deleted file mode 100644 |
428 |
index 18608651eae..00000000000 |
429 |
--- a/net-libs/opal/files/opal-3.10.9-ffmpeg.patch |
430 |
+++ /dev/null |
431 |
@@ -1,189 +0,0 @@ |
432 |
-Note: This is not optimal but is backported from what is in the 3.12 branch. |
433 |
- |
434 |
- |
435 |
-r28871 | rjongbloed | 2013-01-13 02:18:43 -0300 (Sun, 13 Jan 2013) | 2 lines |
436 |
- |
437 |
-Fixed compile against latest FFMPEG, specifically Mac OS-X "port" version. Have no idea what all the deprecated symbols are replaced by! |
438 |
- |
439 |
-Index: opal-3.10.9/plugins/video/H.263-1998/h263-1998.cxx |
440 |
-=================================================================== |
441 |
---- opal-3.10.9.orig/plugins/video/H.263-1998/h263-1998.cxx |
442 |
-+++ opal-3.10.9/plugins/video/H.263-1998/h263-1998.cxx |
443 |
-@@ -312,6 +312,7 @@ void H263_Base_EncoderContext::SetOption |
444 |
- return; |
445 |
- } |
446 |
- |
447 |
-+#ifdef CODEC_FLAG_H263P_UMV |
448 |
- if (STRCMPI(option, H263_ANNEX_D) == 0) { |
449 |
- // Annex D: Unrestructed Motion Vectors |
450 |
- // Level 2+ |
451 |
-@@ -322,7 +323,9 @@ void H263_Base_EncoderContext::SetOption |
452 |
- m_context->flags &= ~CODEC_FLAG_H263P_UMV; |
453 |
- return; |
454 |
- } |
455 |
-+#endif |
456 |
- |
457 |
-+#ifdef CODEC_FLAG_OBMC |
458 |
- #if 0 // DO NOT ENABLE THIS FLAG. FFMPEG IS NOT THREAD_SAFE WHEN THIS FLAG IS SET |
459 |
- if (STRCMPI(option, H263_ANNEX_F) == 0) { |
460 |
- // Annex F: Advanced Prediction Mode |
461 |
-@@ -334,7 +337,9 @@ void H263_Base_EncoderContext::SetOption |
462 |
- return; |
463 |
- } |
464 |
- #endif |
465 |
-+#endif |
466 |
- |
467 |
-+#ifdef CODEC_FLAG_AC_PRED |
468 |
- if (STRCMPI(option, H263_ANNEX_I) == 0) { |
469 |
- // Annex I: Advanced Intra Coding |
470 |
- // Level 3+ |
471 |
-@@ -345,7 +350,9 @@ void H263_Base_EncoderContext::SetOption |
472 |
- m_context->flags &= ~CODEC_FLAG_AC_PRED; |
473 |
- return; |
474 |
- } |
475 |
-+#endif |
476 |
- |
477 |
-+#ifdef CODEC_FLAG_LOOP_FILTER |
478 |
- if (STRCMPI(option, H263_ANNEX_J) == 0) { |
479 |
- // Annex J: Deblocking Filter |
480 |
- // works with eyeBeam |
481 |
-@@ -355,7 +362,9 @@ void H263_Base_EncoderContext::SetOption |
482 |
- m_context->flags &= ~CODEC_FLAG_LOOP_FILTER; |
483 |
- return; |
484 |
- } |
485 |
-+#endif |
486 |
- |
487 |
-+#ifdef CODEC_FLAG_H263P_SLICE_STRUCT |
488 |
- if (STRCMPI(option, H263_ANNEX_K) == 0) { |
489 |
- // Annex K: Slice Structure |
490 |
- // does not work with eyeBeam |
491 |
-@@ -365,7 +374,9 @@ void H263_Base_EncoderContext::SetOption |
492 |
- m_context->flags &= ~CODEC_FLAG_H263P_SLICE_STRUCT; |
493 |
- return; |
494 |
- } |
495 |
-+#endif |
496 |
- |
497 |
-+#ifdef CODEC_FLAG_H263P_AIV |
498 |
- if (STRCMPI(option, H263_ANNEX_S) == 0) { |
499 |
- // Annex S: Alternative INTER VLC mode |
500 |
- // does not work with eyeBeam |
501 |
-@@ -375,6 +386,7 @@ void H263_Base_EncoderContext::SetOption |
502 |
- m_context->flags &= ~CODEC_FLAG_H263P_AIV; |
503 |
- return; |
504 |
- } |
505 |
-+#endif |
506 |
- |
507 |
- if (STRCMPI(option, PLUGINCODEC_MEDIA_PACKETIZATION) == 0 || |
508 |
- STRCMPI(option, PLUGINCODEC_MEDIA_PACKETIZATIONS) == 0) { |
509 |
-@@ -452,12 +464,24 @@ bool H263_Base_EncoderContext::OpenCodec |
510 |
- |
511 |
- #define CODEC_TRACER_FLAG(tracer, flag) \ |
512 |
- PTRACE(4, m_prefix, #flag " is " << ((m_context->flags & flag) ? "enabled" : "disabled")); |
513 |
-+#ifdef CODEC_FLAG_H263P_UMV |
514 |
- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_H263P_UMV); |
515 |
-+#endif |
516 |
-+#ifdef CODEC_FLAG_OBMC |
517 |
- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_OBMC); |
518 |
-+#endif |
519 |
-+#ifdef CODEC_FLAG_AC_PRED |
520 |
- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_AC_PRED); |
521 |
-+#endif |
522 |
-+#ifdef CODEC_FLAG_H263P_SLICE_STRUCT |
523 |
- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_H263P_SLICE_STRUCT) |
524 |
-+#endif |
525 |
-+#ifdef CODEC_FLAG_LOOP_FILTER |
526 |
- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_LOOP_FILTER); |
527 |
-+#endif |
528 |
-+#ifdef CODEC_FLAG_H263P_AIV |
529 |
- CODEC_TRACER_FLAG(tracer, CODEC_FLAG_H263P_AIV); |
530 |
-+#endif |
531 |
- |
532 |
- return FFMPEGLibraryInstance.AvcodecOpen(m_context, m_codec) == 0; |
533 |
- } |
534 |
-@@ -521,7 +545,7 @@ bool H263_Base_EncoderContext::EncodeFra |
535 |
- |
536 |
- // Need to copy to local buffer to guarantee 16 byte alignment |
537 |
- memcpy(m_inputFrame->data[0], OPAL_VIDEO_FRAME_DATA_PTR(header), header->width*header->height*3/2); |
538 |
-- m_inputFrame->pict_type = (flags & PluginCodec_CoderForceIFrame) ? FF_I_TYPE : AV_PICTURE_TYPE_NONE; |
539 |
-+ m_inputFrame->pict_type = (flags & PluginCodec_CoderForceIFrame) ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_NONE; |
540 |
- |
541 |
- /* |
542 |
- m_inputFrame->pts = (int64_t)srcRTP.GetTimestamp()*m_context->time_base.den/m_context->time_base.num/VIDEO_CLOCKRATE; |
543 |
-@@ -603,13 +627,21 @@ bool H263_RFC2190_EncoderContext::Init() |
544 |
- m_context->rtp_callback = &H263_RFC2190_EncoderContext::RTPCallBack; |
545 |
- m_context->opaque = this; // used to separate out packets from different encode threads |
546 |
- |
547 |
-+#ifdef CODEC_FLAG_H263P_UMV |
548 |
- m_context->flags &= ~CODEC_FLAG_H263P_UMV; |
549 |
-+#endif |
550 |
-+#ifdef CODEC_FLAG_4MV |
551 |
- m_context->flags &= ~CODEC_FLAG_4MV; |
552 |
--#if LIBAVCODEC_RTP_MODE |
553 |
-+#endif |
554 |
-+#if LIBAVCODEC_RTP_MODE && defined(CODEC_FLAG_H263P_AIC) |
555 |
- m_context->flags &= ~CODEC_FLAG_H263P_AIC; |
556 |
- #endif |
557 |
-+#ifdef CODEC_FLAG_H263P_AIV |
558 |
- m_context->flags &= ~CODEC_FLAG_H263P_AIV; |
559 |
-+#endif |
560 |
-+#ifdef CODEC_FLAG_H263P_SLICE_STRUCT |
561 |
- m_context->flags &= ~CODEC_FLAG_H263P_SLICE_STRUCT; |
562 |
-+#endif |
563 |
- |
564 |
- return true; |
565 |
- } |
566 |
-Index: opal-3.10.9/plugins/video/H.264/h264-x264.cxx |
567 |
-=================================================================== |
568 |
---- opal-3.10.9.orig/plugins/video/H.264/h264-x264.cxx |
569 |
-+++ opal-3.10.9/plugins/video/H.264/h264-x264.cxx |
570 |
-@@ -1071,13 +1071,13 @@ class MyDecoder : public PluginCodec<MY_ |
571 |
- return false; |
572 |
- |
573 |
- m_context->workaround_bugs = FF_BUG_AUTODETECT; |
574 |
-+#ifdef FF_ER_AGGRESSIVE |
575 |
- m_context->error_recognition = FF_ER_AGGRESSIVE; |
576 |
-+#endif |
577 |
- m_context->idct_algo = FF_IDCT_H264; |
578 |
- m_context->error_concealment = FF_EC_GUESS_MVS | FF_EC_DEBLOCK; |
579 |
- m_context->flags = CODEC_FLAG_INPUT_PRESERVED | CODEC_FLAG_EMU_EDGE; |
580 |
-- m_context->flags2 = CODEC_FLAG2_BRDO | |
581 |
-- CODEC_FLAG2_MEMC_ONLY | |
582 |
-- CODEC_FLAG2_DROP_FRAME_TIMECODE | |
583 |
-+ m_context->flags2 = CODEC_FLAG2_DROP_FRAME_TIMECODE | |
584 |
- CODEC_FLAG2_SKIP_RD | |
585 |
- CODEC_FLAG2_CHUNKS; |
586 |
- |
587 |
-Index: opal-3.10.9/plugins/video/MPEG4-ffmpeg/mpeg4.cxx |
588 |
-=================================================================== |
589 |
---- opal-3.10.9.orig/plugins/video/MPEG4-ffmpeg/mpeg4.cxx |
590 |
-+++ opal-3.10.9/plugins/video/MPEG4-ffmpeg/mpeg4.cxx |
591 |
-@@ -594,12 +594,10 @@ void MPEG4EncoderContext::SetStaticEncod |
592 |
- #else |
593 |
- m_avcontext->max_b_frames=0; /*don't use b frames*/ |
594 |
- m_avcontext->flags|=CODEC_FLAG_AC_PRED; |
595 |
-- m_avcontext->flags|=CODEC_FLAG_H263P_UMV; |
596 |
- /*c->flags|=CODEC_FLAG_QPEL;*/ /*don't enable this one: this forces profile_level to advanced simple profile */ |
597 |
- m_avcontext->flags|=CODEC_FLAG_4MV; |
598 |
- m_avcontext->flags|=CODEC_FLAG_GMC; |
599 |
- m_avcontext->flags|=CODEC_FLAG_LOOP_FILTER; |
600 |
-- m_avcontext->flags|=CODEC_FLAG_H263P_SLICE_STRUCT; |
601 |
- #endif |
602 |
- m_avcontext->opaque = this; // for use in RTP callback |
603 |
- } |
604 |
-@@ -804,7 +802,7 @@ int MPEG4EncoderContext::EncodeFrames(co |
605 |
- // Should the next frame be an I-Frame? |
606 |
- if ((flags & PluginCodec_CoderForceIFrame) || (m_frameNum == 0)) |
607 |
- { |
608 |
-- m_avpicture->pict_type = FF_I_TYPE; |
609 |
-+ m_avpicture->pict_type = AV_PICTURE_TYPE_I; |
610 |
- } |
611 |
- else // No IFrame requested, let avcodec decide what to do |
612 |
- { |
613 |
-@@ -1325,7 +1323,6 @@ void MPEG4DecoderContext::SetFrameHeight |
614 |
- |
615 |
- void MPEG4DecoderContext::SetStaticDecodingParams() { |
616 |
- m_avcontext->flags |= CODEC_FLAG_4MV; |
617 |
-- m_avcontext->flags |= CODEC_FLAG_PART; |
618 |
- m_avcontext->workaround_bugs = 0; // no workaround for buggy implementations |
619 |
- } |
620 |
- |
621 |
|
622 |
diff --git a/net-libs/opal/metadata.xml b/net-libs/opal/metadata.xml |
623 |
index c0939321104..7f5f62fa175 100644 |
624 |
--- a/net-libs/opal/metadata.xml |
625 |
+++ b/net-libs/opal/metadata.xml |
626 |
@@ -3,7 +3,6 @@ |
627 |
<pkgmetadata> |
628 |
<!-- maintainer-needed --> |
629 |
<use> |
630 |
- <flag name="capi">Enable CAPI support</flag> |
631 |
<flag name="celt">Enable CELT ultra-low delay audio codec</flag> |
632 |
<flag name="dtmf">Enable DTMF encoding/decoding support</flag> |
633 |
<flag name="fax">Enable T.38 FAX protocol</flag> |
634 |
|
635 |
diff --git a/net-libs/opal/opal-3.10.11.ebuild b/net-libs/opal/opal-3.10.11.ebuild |
636 |
deleted file mode 100644 |
637 |
index 32909307509..00000000000 |
638 |
--- a/net-libs/opal/opal-3.10.11.ebuild |
639 |
+++ /dev/null |
640 |
@@ -1,252 +0,0 @@ |
641 |
-# Copyright 1999-2016 Gentoo Foundation |
642 |
-# Distributed under the terms of the GNU General Public License v2 |
643 |
- |
644 |
-EAPI=5 |
645 |
- |
646 |
-inherit eutils autotools toolchain-funcs java-pkg-opt-2 flag-o-matic |
647 |
- |
648 |
-DESCRIPTION="C++ class library normalising numerous telephony protocols" |
649 |
-HOMEPAGE="http://www.opalvoip.org/" |
650 |
-SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2 |
651 |
- doc? ( mirror://sourceforge/opalvoip/${P}-htmldoc.tar.bz2 )" |
652 |
- |
653 |
-LICENSE="MPL-1.0" |
654 |
-SLOT="0" |
655 |
-KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86" |
656 |
-IUSE="capi celt debug doc +dtmf examples fax ffmpeg h224 h281 h323 iax ilbc |
657 |
-ipv6 ivr ixj java ldap lid +plugins sbc +sip +sipim +sound srtp ssl static-libs |
658 |
-stats swig theora +video vpb vxml +wav x264 x264-static +xml" |
659 |
- |
660 |
-REQUIRED_USE="x264-static? ( x264 ) |
661 |
- h281? ( h224 ) |
662 |
- sip? ( sipim )" |
663 |
- |
664 |
-RDEPEND=">=net-libs/ptlib-2.10.10:=[stun,debug=,dtmf,http,ipv6?,ldap?,sound?,ssl?,video?,vxml?,wav?,xml?] |
665 |
- >=media-libs/speex-1.2_beta |
666 |
- fax? ( net-libs/ptlib[asn] ) |
667 |
- h323? ( net-libs/ptlib[asn] ) |
668 |
- ivr? ( net-libs/ptlib[http,xml,vxml] ) |
669 |
- java? ( >=virtual/jre-1.4 ) |
670 |
- plugins? ( |
671 |
- media-sound/gsm |
672 |
- capi? ( net-dialup/capi4k-utils ) |
673 |
- celt? ( media-libs/celt ) |
674 |
- ffmpeg? ( virtual/ffmpeg[encode] ) |
675 |
- ixj? ( sys-kernel/linux-headers ) |
676 |
- ilbc? ( dev-libs/ilbc-rfc3951 ) |
677 |
- sbc? ( media-libs/libsamplerate ) |
678 |
- theora? ( media-libs/libtheora ) |
679 |
- x264? ( virtual/ffmpeg |
680 |
- media-libs/x264 ) ) |
681 |
- srtp? ( net-libs/libsrtp ) |
682 |
- vxml? ( net-libs/ptlib[http,vxml] )" |
683 |
-DEPEND="${RDEPEND} |
684 |
- virtual/pkgconfig |
685 |
- >=sys-devel/gcc-3 |
686 |
- java? ( swig? ( dev-lang/swig ) |
687 |
- >=virtual/jdk-1.4 )" |
688 |
- |
689 |
-# NOTES: |
690 |
-# ffmpeg[encode] is for h263 and mpeg4 |
691 |
-# ssl, xml, vxml, ipv6, ldap, sound, wav, and video are use flags |
692 |
-# herited from ptlib: feature is enabled if ptlib has enabled it |
693 |
-# however, disabling it if ptlib has it looks hard (coz of buildopts.h) |
694 |
-# forcing ptlib to disable it for opal is not a solution too |
695 |
-# atm, accepting the "auto-feature" looks like a good solution |
696 |
-# (asn is used for fax and config _only_ for examples) |
697 |
-# OPALDIR should not be used anymore but if a package still need it, create it |
698 |
- |
699 |
-pkg_setup() { |
700 |
- # workaround for bug 282838 |
701 |
- append-cxxflags "-fno-visibility-inlines-hidden" |
702 |
- append-cxxflags "-fno-strict-aliasing" |
703 |
- |
704 |
- # need >=gcc-3 |
705 |
- if [[ $(gcc-major-version) -lt 3 ]]; then |
706 |
- eerror "You need to use gcc-3 at least." |
707 |
- eerror "Please change gcc version with 'gcc-config'." |
708 |
- die "You need to use gcc-3 at least." |
709 |
- fi |
710 |
- |
711 |
- java-pkg-opt-2_pkg_setup |
712 |
-} |
713 |
- |
714 |
-src_prepare() { |
715 |
- # remove visual studio related files from samples/ |
716 |
- if use examples; then |
717 |
- rm -f samples/*/*.vcproj |
718 |
- rm -f samples/*/*.sln |
719 |
- rm -f samples/*/*.dsp |
720 |
- rm -f samples/*/*.dsw |
721 |
- fi |
722 |
- |
723 |
- epatch "${FILESDIR}/${PN}-3.10.9-svn_revision_override.patch" \ |
724 |
- "${FILESDIR}/${PN}-3.10.9-labs_is_in_stdlib.patch" \ |
725 |
- "${FILESDIR}/${PN}-3.10.9-avoid_cflags_mixup.patch" \ |
726 |
- "${FILESDIR}/${PN}-3.10.9-ffmpeg.patch" \ |
727 |
- "${FILESDIR}/${PN}-3.10.11-libav9-gentoo.patch" |
728 |
- |
729 |
- if ! use h323; then |
730 |
- # Without this patch, ekiga wont compile, even with |
731 |
- # USE=-h323. |
732 |
- epatch "${FILESDIR}/${PN}-3.10.9-disable-h323-workaround.patch" |
733 |
- fi |
734 |
- |
735 |
- epatch "${FILESDIR}/${PN}-3.10.9-java-ruby-swig-fix.patch" |
736 |
- |
737 |
- sed -i -e "s:\(.*HAS_H224.*\), \[OPAL_H323\]:\1:" configure.ac \ |
738 |
- || die "sed failed" |
739 |
- |
740 |
- eaclocal |
741 |
- eautoconf |
742 |
- |
743 |
- # in plugins |
744 |
- cd plugins/ |
745 |
- eaclocal |
746 |
- eautoconf |
747 |
- cd .. |
748 |
- |
749 |
- # disable celt if celt is not enabled (prevent auto magic dep) |
750 |
- # already in repository |
751 |
- if ! use celt; then |
752 |
- sed -i -e "s/HAVE_CELT=yes/HAVE_CELT=no/" plugins/configure \ |
753 |
- || die "sed failed" |
754 |
- fi |
755 |
- |
756 |
- # fix automatic swig detection, upstream bug 2712521 (upstream reject it) |
757 |
- if ! use swig; then |
758 |
- sed -i -e "/^SWIG=/d" configure || die "patching configure failed" |
759 |
- fi |
760 |
- |
761 |
- use ilbc || { rm -r plugins/audio/iLBC/ || die "removing iLBC failed"; } |
762 |
- |
763 |
- java-pkg-opt-2_src_prepare |
764 |
-} |
765 |
- |
766 |
-src_configure() { |
767 |
- local forcedconf="" |
768 |
- |
769 |
- # fix bug 277233, upstream bug 2820939 |
770 |
- if use fax; then |
771 |
- forcedconf="${forcedconf} --enable-statistics" |
772 |
- fi |
773 |
- |
774 |
- # --with-libavcodec-source-dir should _not_ be set, it's for trunk sources |
775 |
- # versioncheck: check for ptlib version |
776 |
- # shared: should always be enabled for a lib |
777 |
- # localspeex, localspeexdsp, localgsm, localilbc: never use bundled libs |
778 |
- # samples: only build some samples, useless |
779 |
- # libavcodec-stackalign-hack: prevent hack (default disable by upstream) |
780 |
- # default-to-full-capabilties: default enable by upstream |
781 |
- # aec: atm, only used when bundled speex, so it's painless for us |
782 |
- # zrtp doesn't depend on net-libs/libzrtpcpp but on libzrtp from |
783 |
- # http://zfoneproject.com/ wich is not in portage |
784 |
- # msrp: highly experimental |
785 |
- # spandsp: doesn't work with newest spandsp, upstream bug 2796047 |
786 |
- # g711plc: force enable |
787 |
- # rfc4103: not really used, upstream bug 2795831 |
788 |
- # t38, spandsp: merged in fax |
789 |
- # h450, h460, h501: merged in h323 (they are additional features of h323) |
790 |
- econf \ |
791 |
- --enable-versioncheck \ |
792 |
- --enable-shared \ |
793 |
- --disable-zrtp \ |
794 |
- --disable-localspeex \ |
795 |
- --disable-localspeexdsp \ |
796 |
- --disable-localgsm \ |
797 |
- --disable-localilbc \ |
798 |
- --disable-samples \ |
799 |
- --disable-libavcodec-stackalign-hack \ |
800 |
- --enable-default-to-full-capabilties \ |
801 |
- --enable-aec \ |
802 |
- --disable-msrp \ |
803 |
- --disable-spandsp \ |
804 |
- --enable-g711plc \ |
805 |
- --enable-rfc4103 \ |
806 |
- $(use_enable debug) \ |
807 |
- $(use_enable capi) \ |
808 |
- $(use_enable fax) \ |
809 |
- $(use_enable fax t38) \ |
810 |
- $(use_enable h224) \ |
811 |
- $(use_enable h281) \ |
812 |
- $(use_enable h323) \ |
813 |
- $(use_enable h323 h450) \ |
814 |
- $(use_enable h323 h460) \ |
815 |
- $(use_enable h323 h501) \ |
816 |
- $(use_enable iax) \ |
817 |
- $(use_enable ivr) \ |
818 |
- $(use_enable ixj) \ |
819 |
- $(use_enable java) \ |
820 |
- $(use_enable lid) \ |
821 |
- $(use_enable plugins) \ |
822 |
- $(use_enable sbc) \ |
823 |
- $(use_enable sip) \ |
824 |
- $(use_enable sipim) \ |
825 |
- $(use_enable stats statistics) \ |
826 |
- $(use_enable video) $(use_enable video rfc4175) \ |
827 |
- $(use_enable vpb) \ |
828 |
- $(use_enable x264 h264) \ |
829 |
- $(use_enable x264-static x264-link-static) \ |
830 |
- ${forcedconf} |
831 |
-} |
832 |
- |
833 |
-src_compile() { |
834 |
- local makeopts="" |
835 |
- |
836 |
- use debug && makeopts="debug" |
837 |
- |
838 |
- emake ${makeopts} || die "emake failed" |
839 |
-} |
840 |
- |
841 |
-src_install() { |
842 |
- emake DESTDIR="${D}" install || die "emake install failed" |
843 |
- |
844 |
- # Get rid of static libraries if not requested |
845 |
- # There seems to be no easy way to disable this in the build system |
846 |
- if ! use static-libs; then |
847 |
- rm -v "${D}"/usr/lib*/*.a || die |
848 |
- fi |
849 |
- |
850 |
- if use doc; then |
851 |
- dohtml -r "${WORKDIR}"/html/* docs/* || die "dohtml failed" |
852 |
- fi |
853 |
- |
854 |
- # ChangeLog is not standard and does not exist on 3.10.10 |
855 |
-# dodoc ChangeLog-${PN}-v${PV//./_}.txt || die "dodoc failed" |
856 |
- |
857 |
- if use examples; then |
858 |
- local exampledir="/usr/share/doc/${PF}/examples" |
859 |
- local basedir="samples" |
860 |
- local sampledirs="`ls ${basedir} --hide=configure* \ |
861 |
- --hide=opal_samples.mak.in`" |
862 |
- |
863 |
- # first, install files |
864 |
- insinto ${exampledir}/ |
865 |
- doins ${basedir}/{configure*,opal_samples*} \ |
866 |
- || die "doins failed" |
867 |
- |
868 |
- # now, all examples |
869 |
- for x in ${sampledirs}; do |
870 |
- insinto ${exampledir}/${x}/ |
871 |
- doins ${basedir}/${x}/* || die "doins failed" |
872 |
- done |
873 |
- |
874 |
- # some examples need version.h |
875 |
- insinto "/usr/share/doc/${PF}/" |
876 |
- doins version.h || die "doins failed" |
877 |
- fi |
878 |
-} |
879 |
- |
880 |
-pkg_postinst() { |
881 |
- if use examples; then |
882 |
- ewarn "All examples have been installed, some of them will not work on your system" |
883 |
- ewarn "it will depend of the enabled USE flags in ptlib and opal" |
884 |
- fi |
885 |
- |
886 |
- if ! use plugins || ! use sound || ! use video; then |
887 |
- ewarn "You have disabled sound, video or plugins USE flags." |
888 |
- ewarn "Most audio/video features or plugins have been disabled silently" |
889 |
- ewarn "even if enabled via USE flags." |
890 |
- ewarn "Having a feature enabled via USE flag but disabled can lead to issues." |
891 |
- fi |
892 |
-} |