1 |
commit: a373cdf5df43887629aaf902bd080f6b7f46a10e |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 31 23:13:31 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 31 23:14:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a373cdf5 |
7 |
|
8 |
media-video/gpac: security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/711262 |
11 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
media-video/gpac/Manifest | 1 - |
15 |
media-video/gpac/files/ffmpeg4.patch | 44 ------ |
16 |
media-video/gpac/files/gpac-0.7.1-configure.patch | 94 ------------- |
17 |
.../gpac/files/gpac-0.7.1-openssl-1.1.patch | 126 ----------------- |
18 |
media-video/gpac/files/gpac-freetype.patch | 15 --- |
19 |
media-video/gpac/gpac-0.7.1-r1.ebuild | 150 --------------------- |
20 |
6 files changed, 430 deletions(-) |
21 |
|
22 |
diff --git a/media-video/gpac/Manifest b/media-video/gpac/Manifest |
23 |
index 8340f361bd6..fa53da9d266 100644 |
24 |
--- a/media-video/gpac/Manifest |
25 |
+++ b/media-video/gpac/Manifest |
26 |
@@ -1,2 +1 @@ |
27 |
-DIST gpac-0.7.1.tar.gz 10654838 BLAKE2B 795fd11d6bf02bb0d27d97f2c98017e9875aae26ea7d99c5587c7ec5ccc8273283fbce6444389ff4371a34d0e7d03102982ff8a8ec014c7f0c2ddd36c684cba9 SHA512 0377d9471db9e5ccf75f85dfd0c9f4e37a211108b5e128a5411ac015bd9c906257320d517717f0fa03d434e1fce24bd8a9c3a73200fac5c21b80895b716ab403 |
28 |
DIST gpac-0.8.1.tar.gz 11432459 BLAKE2B 5c08d6c903b4865c19818c5cee07c0a0ebd1775f168740eadc3722d6b19ed685d4f6089cee4bbd68a52bf7cce4cf564c083deb629c47ba35eac66c754f3136cf SHA512 f2039fe91a502ea8c54330abf893d52d10fb57d4459f5f3aae28122f565ab8964011b67e6af0d79c170fa55b125ac1385fd1d280021da7d1d37b27c74ee5b6c1 |
29 |
|
30 |
diff --git a/media-video/gpac/files/ffmpeg4.patch b/media-video/gpac/files/ffmpeg4.patch |
31 |
deleted file mode 100644 |
32 |
index 61f329806a5..00000000000 |
33 |
--- a/media-video/gpac/files/ffmpeg4.patch |
34 |
+++ /dev/null |
35 |
@@ -1,44 +0,0 @@ |
36 |
-Index: gpac-0.7.1/applications/dashcast/video_encoder.c |
37 |
-=================================================================== |
38 |
---- gpac-0.7.1.orig/applications/dashcast/video_encoder.c |
39 |
-+++ gpac-0.7.1/applications/dashcast/video_encoder.c |
40 |
-@@ -144,7 +144,7 @@ int dc_video_encoder_open(VideoOutputFil |
41 |
- } |
42 |
- |
43 |
- //the global header gives access to the extradata (SPS/PPS) |
44 |
-- video_output_file->codec_ctx->flags |= CODEC_FLAG_GLOBAL_HEADER; |
45 |
-+ video_output_file->codec_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; |
46 |
- |
47 |
- video_output_file->vstream_idx = 0;//video_stream->index; |
48 |
- |
49 |
-Index: gpac-0.7.1/modules/ffmpeg_in/ffmpeg_decode.c |
50 |
-=================================================================== |
51 |
---- gpac-0.7.1.orig/modules/ffmpeg_in/ffmpeg_decode.c |
52 |
-+++ gpac-0.7.1/modules/ffmpeg_in/ffmpeg_decode.c |
53 |
-@@ -49,7 +49,7 @@ |
54 |
- static uint8_t * ffmpeg_realloc_buffer(uint8_t * oldBuffer, u32 size) { |
55 |
- uint8_t * buffer; |
56 |
- /* Size of buffer must be larger, see avcodec_decode_video2 documentation */ |
57 |
-- u32 allocatedSz = sizeof( char ) * (FF_INPUT_BUFFER_PADDING_SIZE + size); |
58 |
-+ u32 allocatedSz = sizeof( char ) * (AV_INPUT_BUFFER_PADDING_SIZE + size); |
59 |
- if (oldBuffer) |
60 |
- gf_free(oldBuffer); |
61 |
- buffer = (uint8_t*)gf_malloc( allocatedSz ); |
62 |
-@@ -577,7 +577,7 @@ static GF_Err FFDEC_GetCapabilities(GF_B |
63 |
- capability->cap.valueInt = 1; |
64 |
- return GF_OK; |
65 |
- case GF_CODEC_PADDING_BYTES: |
66 |
-- capability->cap.valueInt = FF_INPUT_BUFFER_PADDING_SIZE; |
67 |
-+ capability->cap.valueInt = AV_INPUT_BUFFER_PADDING_SIZE; |
68 |
- return GF_OK; |
69 |
- case GF_CODEC_REORDER: |
70 |
- capability->cap.valueInt = 1; |
71 |
-@@ -669,7 +669,7 @@ static GF_Err FFDEC_GetCapabilities(GF_B |
72 |
- break; |
73 |
- |
74 |
- case GF_CODEC_PADDING_BYTES: |
75 |
-- capability->cap.valueInt = FF_INPUT_BUFFER_PADDING_SIZE; |
76 |
-+ capability->cap.valueInt = AV_INPUT_BUFFER_PADDING_SIZE; |
77 |
- break; |
78 |
- default: |
79 |
- capability->cap.valueInt = 0; |
80 |
|
81 |
diff --git a/media-video/gpac/files/gpac-0.7.1-configure.patch b/media-video/gpac/files/gpac-0.7.1-configure.patch |
82 |
deleted file mode 100644 |
83 |
index 8bc3ec9f907..00000000000 |
84 |
--- a/media-video/gpac/files/gpac-0.7.1-configure.patch |
85 |
+++ /dev/null |
86 |
@@ -1,94 +0,0 @@ |
87 |
---- gpac-0.7.1/Makefile.orig 2017-07-25 09:34:51.910379115 -0600 |
88 |
-+++ gpac-0.7.1/Makefile 2017-07-25 09:36:18.906385736 -0600 |
89 |
-@@ -252,7 +252,9 @@ |
90 |
- $(INSTALL) $(INSTFLAGS) -m 644 $(SRC_PATH)/include/gpac/enst/*.h "$(DESTDIR)$(prefix)/include/gpac/enst" |
91 |
- endif |
92 |
- mkdir -p "$(DESTDIR)$(prefix)/$(libdir)" |
93 |
-+ifeq ($(STATIC_LIBS),yes) |
94 |
- $(INSTALL) $(INSTFLAGS) -m 644 "./bin/gcc/libgpac_static.a" "$(DESTDIR)$(prefix)/$(libdir)" |
95 |
-+endif |
96 |
- $(MAKE) installdylib |
97 |
- |
98 |
- uninstall-lib: |
99 |
---- gpac-0.7.1/src/Makefile.orig 2017-07-25 09:37:48.157392528 -0600 |
100 |
-+++ gpac-0.7.1/src/Makefile 2017-07-25 09:39:06.092398459 -0600 |
101 |
-@@ -267,16 +267,20 @@ |
102 |
- |
103 |
- ifeq ($(CONFIG_DARWIN),yes) |
104 |
- |
105 |
-+ifeq ($(STATICLIBS),yes) |
106 |
- $(LIBTOOL) -s -o ../bin/gcc/libgpac_static.a $(OBJS) |
107 |
- $(RANLIB) ../bin/gcc/libgpac_static.a |
108 |
-+endif |
109 |
- ifneq ($(STATICBUILD),yes) |
110 |
- $(CC) $(SHFLAGS) $(LD_SONAME) -o $@ $(OBJS) $(EXTRALIBS) $(LDFLAGS) |
111 |
- endif |
112 |
- |
113 |
- else |
114 |
- |
115 |
-+ifeq ($(STATICLIBS),yes) |
116 |
- $(AR) cr ../bin/gcc/libgpac_static.a $(OBJS) |
117 |
- $(RANLIB) ../bin/gcc/libgpac_static.a |
118 |
-+endif |
119 |
- ifneq ($(STATICBUILD),yes) |
120 |
- $(CC) $(SHFLAGS) $(LD_SONAME) -o $@ $(OBJS) $(EXTRALIBS) $(LDFLAGS) |
121 |
- mv $@ $@.$(VERSION_SONAME) |
122 |
---- gpac-0.7.1/configure.orig 2017-07-25 10:01:58.789502926 -0600 |
123 |
-+++ gpac-0.7.1/configure 2017-07-25 10:02:54.110507136 -0600 |
124 |
-@@ -109,6 +109,7 @@ |
125 |
- has_openjpeg="no" |
126 |
- gprof_build="no" |
127 |
- static_build="no" |
128 |
-+static_libs="no" |
129 |
- want_pic="no" |
130 |
- want_gcov="no" |
131 |
- has_joystick="no" |
132 |
-@@ -260,6 +261,7 @@ |
133 |
- --enable-amr-wb enable AMR WB library |
134 |
- --enable-amr enable both AMR NB and WB libraries |
135 |
- --enable-static-bin link statically against libgpac |
136 |
-+ --enable-static-lib GPAC static libraries build |
137 |
- --static-mp4box configure for static linking of MP4Box only. |
138 |
- --enable-depth enables depth handling in the compositor |
139 |
- |
140 |
-@@ -705,15 +707,6 @@ |
141 |
- CFLAGS="$CFLAGS -Wno-pointer-sign" |
142 |
- fi |
143 |
- |
144 |
-- |
145 |
--#GCC opt |
146 |
--if test "$no_gcc_opt" = "no"; then |
147 |
-- CFLAGS="-O3 $CFLAGS" |
148 |
--else |
149 |
-- CFLAGS="-O0 $CFLAGS" |
150 |
--fi |
151 |
-- |
152 |
-- |
153 |
- #GCC PIC |
154 |
- if test "$cross_prefix" != "" ; then |
155 |
- want_pic="no" |
156 |
-@@ -1885,6 +1878,8 @@ |
157 |
- ;; |
158 |
- --enable-static-bin) static_build="yes"; |
159 |
- ;; |
160 |
-+ --enable-static-lib) static_libs="yes"; |
161 |
-+ ;; |
162 |
- --disable-ipv6) has_ipv6="no" |
163 |
- ;; |
164 |
- --disable-wx) has_wx="no" |
165 |
-@@ -2559,6 +2554,7 @@ |
166 |
- echo "debug version: $debuginfo" |
167 |
- echo "GProf enabled: $gprof_build" |
168 |
- echo "Static build enabled: $static_build" |
169 |
-+echo "Static libs enabled: $static_libs" |
170 |
- echo "Memory tracking enabled: $use_memory_tracking" |
171 |
- echo "Fixed-Point Version: $use_fixed_point" |
172 |
- echo "IPV6 Support: $has_ipv6" |
173 |
-@@ -3194,6 +3190,7 @@ |
174 |
- echo "GPROFBUILD=$gprof_build" >> config.mak |
175 |
- echo "MP4BOX_STATIC=$static_mp4box" >> config.mak |
176 |
- echo "STATICBUILD=$static_build" >> config.mak |
177 |
-+echo "STATICLIBS=$static_libs" >> config.mak |
178 |
- |
179 |
- echo "CONFIG_IPV6=$has_ipv6" >> config.mak |
180 |
- if test "$has_ipv6" = "yes" ; then |
181 |
|
182 |
diff --git a/media-video/gpac/files/gpac-0.7.1-openssl-1.1.patch b/media-video/gpac/files/gpac-0.7.1-openssl-1.1.patch |
183 |
deleted file mode 100644 |
184 |
index e25a5bca78b..00000000000 |
185 |
--- a/media-video/gpac/files/gpac-0.7.1-openssl-1.1.patch |
186 |
+++ /dev/null |
187 |
@@ -1,126 +0,0 @@ |
188 |
-From e64a7d229fdcb5c190064b7860ade50124dcc735 Mon Sep 17 00:00:00 2001 |
189 |
-From: Aurelien David <aurelien.david@×××××××××××××××××.fr> |
190 |
-Date: Fri, 6 Oct 2017 16:46:18 +0200 |
191 |
-Subject: [PATCH] compatibility with OpenSSL 1.1.x (#616) |
192 |
- |
193 |
-diff --git a/src/utils/downloader.c b/src/utils/downloader.c |
194 |
-index b8c923b88..3b7d37b41 100644 |
195 |
---- a/src/utils/downloader.c |
196 |
-+++ b/src/utils/downloader.c |
197 |
-@@ -204,7 +204,7 @@ struct __gf_download_manager |
198 |
- u32 limit_data_rate, read_buf_size; |
199 |
- u64 max_cache_size; |
200 |
- Bool allow_broken_certificate; |
201 |
-- |
202 |
-+ |
203 |
- GF_List *skip_proxy_servers; |
204 |
- GF_List *credentials; |
205 |
- GF_List *cache_entries; |
206 |
-@@ -392,10 +392,18 @@ static Bool init_ssl_lib() { |
207 |
- GF_LOG(GF_LOG_ERROR, GF_LOG_NETWORK, ("[HTTPS] Error while initializing Random Number generator, failed to init SSL !\n")); |
208 |
- return GF_TRUE; |
209 |
- } |
210 |
-+ |
211 |
-+ /* per https://www.openssl.org/docs/man1.1.0/ssl/OPENSSL_init_ssl.html |
212 |
-+ ** As of version 1.1.0 OpenSSL will automatically allocate all resources that it needs so no explicit initialisation is required. |
213 |
-+ ** Similarly it will also automatically deinitialise as required. |
214 |
-+ */ |
215 |
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L |
216 |
- SSL_library_init(); |
217 |
- SSL_load_error_strings(); |
218 |
- SSLeay_add_all_algorithms(); |
219 |
- SSLeay_add_ssl_algorithms(); |
220 |
-+#endif |
221 |
-+ |
222 |
- _ssl_is_initialized = GF_TRUE; |
223 |
- GF_LOG(GF_LOG_DEBUG, GF_LOG_NETWORK, ("[HTTPS] Initalization of SSL library complete.\n")); |
224 |
- return GF_FALSE; |
225 |
-@@ -422,6 +430,7 @@ static int ssl_init(GF_DownloadManager *dm, u32 mode) |
226 |
- } |
227 |
- |
228 |
- switch (mode) { |
229 |
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L |
230 |
- case 0: |
231 |
- meth = SSLv23_client_method(); |
232 |
- break; |
233 |
-@@ -436,6 +445,11 @@ static int ssl_init(GF_DownloadManager *dm, u32 mode) |
234 |
- case 3: |
235 |
- meth = TLSv1_client_method(); |
236 |
- break; |
237 |
-+#else /* for openssl 1.1+ this is the prefered method */ |
238 |
-+ case 0: |
239 |
-+ meth = TLS_client_method(); |
240 |
-+ break; |
241 |
-+#endif |
242 |
- default: |
243 |
- goto error; |
244 |
- } |
245 |
-@@ -771,7 +785,7 @@ void gf_dm_sess_del(GF_DownloadSession *sess) |
246 |
- gf_sk_del(sess->sock); |
247 |
- gf_list_del(sess->headers); |
248 |
- gf_mx_del(sess->mx); |
249 |
-- |
250 |
-+ |
251 |
- gf_free(sess); |
252 |
- GF_LOG(GF_LOG_DEBUG, GF_LOG_NETWORK, ("[Downloader] gf_dm_sess_del(%p) : DONE\n", sess )); |
253 |
- } |
254 |
-@@ -1145,7 +1159,7 @@ GF_DownloadSession *gf_dm_sess_new_simple(GF_DownloadManager * dm, const char *u |
255 |
- { |
256 |
- GF_DownloadSession *sess; |
257 |
- if (!dm) return NULL; |
258 |
-- |
259 |
-+ |
260 |
- GF_SAFEALLOC(sess, GF_DownloadSession); |
261 |
- if (!sess) { |
262 |
- GF_LOG(GF_LOG_ERROR, GF_LOG_NETWORK, ("%s:%d Cannot allocate session for URL %s: OUT OF MEMORY!\n", __FILE__, __LINE__, url)); |
263 |
-@@ -1166,8 +1180,8 @@ GF_DownloadSession *gf_dm_sess_new_simple(GF_DownloadManager * dm, const char *u |
264 |
- gf_free(sess); |
265 |
- return NULL; |
266 |
- } |
267 |
-- |
268 |
-- |
269 |
-+ |
270 |
-+ |
271 |
- assert( dm ); |
272 |
- |
273 |
- *e = gf_dm_sess_setup_from_url(sess, url); |
274 |
-@@ -1225,7 +1239,7 @@ static GF_Err gf_dm_read_data(GF_DownloadSession *sess, char *data, u32 data_siz |
275 |
- gf_mx_v(sess->mx); |
276 |
- return GF_IP_CONNECTION_CLOSED; |
277 |
- } |
278 |
-- |
279 |
-+ |
280 |
- #ifdef GPAC_HAS_SSL |
281 |
- if (sess->ssl) { |
282 |
- s32 size; |
283 |
-@@ -1451,7 +1465,11 @@ static void gf_dm_connect(GF_DownloadSession *sess) |
284 |
- const GENERAL_NAME *altname = sk_GENERAL_NAME_value(altnames, i); |
285 |
- if (altname->type == GEN_DNS) |
286 |
- { |
287 |
-- unsigned char *altname_str = ASN1_STRING_data(altname->d.ia5); |
288 |
-+ #if OPENSSL_VERSION_NUMBER < 0x10100000L |
289 |
-+ unsigned char *altname_str = ASN1_STRING_data(altname->d.ia5); |
290 |
-+ #else |
291 |
-+ unsigned char *altname_str = (unsigned char *)ASN1_STRING_get0_data(altname->d.ia5); |
292 |
-+ #endif |
293 |
- gf_list_add(valid_names, altname_str); |
294 |
- } |
295 |
- } |
296 |
-@@ -1806,7 +1824,7 @@ GF_DownloadManager *gf_dm_new(GF_Config *cfg) |
297 |
- dm->limit_data_rate = 1000 * atoi(opt) / 8; |
298 |
- else |
299 |
- gf_cfg_set_key(cfg, "Downloader", "MaxRate", "0"); |
300 |
-- |
301 |
-+ |
302 |
- |
303 |
- dm->read_buf_size = GF_DOWNLOAD_BUFFER_SIZE; |
304 |
- //when rate is limited, use smaller smaller read size |
305 |
-@@ -2943,7 +2961,7 @@ static GF_Err wait_for_header_and_parse(GF_DownloadSession *sess, char * sHTTP) |
306 |
- hdrp->value = gf_strdup(hdr_val); |
307 |
- gf_list_add(sess->headers, hdrp); |
308 |
- } |
309 |
-- |
310 |
-+ |
311 |
- if (sep) sep[0]=':'; |
312 |
- if (hdr_sep) hdr_sep[0] = '\r'; |
313 |
- } |
314 |
|
315 |
diff --git a/media-video/gpac/files/gpac-freetype.patch b/media-video/gpac/files/gpac-freetype.patch |
316 |
deleted file mode 100644 |
317 |
index 98224aff30e..00000000000 |
318 |
--- a/media-video/gpac/files/gpac-freetype.patch |
319 |
+++ /dev/null |
320 |
@@ -1,15 +0,0 @@ |
321 |
-Index: gpac-0.7.1/configure |
322 |
-=================================================================== |
323 |
---- gpac-0.7.1.orig/configure |
324 |
-+++ gpac-0.7.1/configure |
325 |
-@@ -1117,8 +1117,8 @@ if docc $CFLAGS_DIR $ft_cflags $ft_lflag |
326 |
- fi |
327 |
- if test "$cross_prefix" = "" ; then |
328 |
- if test "$has_ft" = "no" ; then |
329 |
-- ft_cflags="`freetype-config --cflags 2>>$logs`" |
330 |
-- ft_lflags="`freetype-config --libs 2>>$logs`" |
331 |
-+ ft_cflags="`pkg-config --cflags freetype2 2>>$logs`" |
332 |
-+ ft_lflags="`pkg-config --libs freetype2 2>>$logs`" |
333 |
- if docc $ft_cflags $ft_lflags $LDFLAGS ; then |
334 |
- has_ft="system" |
335 |
- fi |
336 |
|
337 |
diff --git a/media-video/gpac/gpac-0.7.1-r1.ebuild b/media-video/gpac/gpac-0.7.1-r1.ebuild |
338 |
deleted file mode 100644 |
339 |
index bdac8071f89..00000000000 |
340 |
--- a/media-video/gpac/gpac-0.7.1-r1.ebuild |
341 |
+++ /dev/null |
342 |
@@ -1,150 +0,0 @@ |
343 |
-# Copyright 1999-2020 Gentoo Authors |
344 |
-# Distributed under the terms of the GNU General Public License v2 |
345 |
- |
346 |
-EAPI=6 |
347 |
- |
348 |
-if [[ ${PV} == *9999 ]] ; then |
349 |
- SCM="git-r3" |
350 |
- EGIT_REPO_URI="https://github.com/gpac/gpac" |
351 |
-else |
352 |
- SRC_URI="https://github.com/gpac/gpac/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
353 |
- KEYWORDS="~alpha amd64 ppc ppc64 sparc x86" |
354 |
-fi |
355 |
- |
356 |
-inherit flag-o-matic toolchain-funcs ${SCM} |
357 |
- |
358 |
-DESCRIPTION="Implementation of the MPEG-4 Systems standard developed from scratch in ANSI C" |
359 |
-HOMEPAGE="https://gpac.wp.imt.fr/" |
360 |
- |
361 |
-LICENSE="GPL-2" |
362 |
-# subslot == libgpac major |
363 |
-SLOT="0/7" |
364 |
-IUSE="a52 aac alsa debug dvb ffmpeg ipv6 jack jpeg jpeg2k libressl mad opengl oss png |
365 |
- pulseaudio sdl ssl static-libs theora truetype vorbis xml xvid X" |
366 |
- |
367 |
-RDEPEND=" |
368 |
- media-libs/libogg |
369 |
- a52? ( media-libs/a52dec ) |
370 |
- aac? ( media-libs/faad2 ) |
371 |
- alsa? ( media-libs/alsa-lib ) |
372 |
- ffmpeg? ( media-video/ffmpeg:0= ) |
373 |
- jack? ( virtual/jack ) |
374 |
- jpeg? ( virtual/jpeg:0 ) |
375 |
- jpeg2k? ( media-libs/openjpeg:0 ) |
376 |
- mad? ( media-libs/libmad ) |
377 |
- opengl? ( |
378 |
- media-libs/freeglut |
379 |
- virtual/glu |
380 |
- virtual/opengl |
381 |
- ) |
382 |
- png? ( media-libs/libpng:0= ) |
383 |
- pulseaudio? ( media-sound/pulseaudio ) |
384 |
- theora? ( media-libs/libtheora ) |
385 |
- truetype? ( media-libs/freetype:2 ) |
386 |
- sdl? ( media-libs/libsdl ) |
387 |
- ssl? ( |
388 |
- !libressl? ( dev-libs/openssl:0= ) |
389 |
- libressl? ( dev-libs/libressl:0= ) |
390 |
- ) |
391 |
- vorbis? ( media-libs/libvorbis ) |
392 |
- X? ( |
393 |
- x11-libs/libXt |
394 |
- x11-libs/libX11 |
395 |
- x11-libs/libXv |
396 |
- x11-libs/libXext |
397 |
- ) |
398 |
- xml? ( dev-libs/libxml2:2 ) |
399 |
- xvid? ( media-libs/xvid ) |
400 |
-" |
401 |
-# disabled upstream, see applications/Makefile |
402 |
-# wxwidgets? ( =x11-libs/wxGTK-2.8* ) |
403 |
-DEPEND="${RDEPEND} |
404 |
- virtual/pkgconfig |
405 |
- dvb? ( sys-kernel/linux-headers ) |
406 |
-" |
407 |
- |
408 |
-# DOCS="AUTHORS BUGS Changelog README.md TODO doc/CODING_STYLE doc/*.doc doc/*.bt doc/SceneGenerators doc/ipmpx_syntax.bt doc/*.txt" |
409 |
-PATCHES=( |
410 |
- "${FILESDIR}/${PN}-0.7.1-configure.patch" |
411 |
- "${FILESDIR}/ffmpeg4.patch" |
412 |
- "${FILESDIR}/${PN}-freetype.patch" |
413 |
- "${FILESDIR}/${P}-openssl-1.1.patch" |
414 |
-) |
415 |
- |
416 |
-DOCS=( |
417 |
- doc/CODING_STYLE |
418 |
- doc/GPAC\ UPnP.doc |
419 |
- doc/ISO\ 639-2\ codes.txt |
420 |
- doc/SceneGenerators |
421 |
- doc/ipmpx_syntax.bt |
422 |
- Changelog |
423 |
- AUTHORS |
424 |
- BUGS |
425 |
- README.md |
426 |
- TODO |
427 |
-) |
428 |
-HTML_DOCS="doc/*.html" |
429 |
- |
430 |
-my_use() { |
431 |
- local flag="$1" pflag="${2:-$1}" |
432 |
- if use ${flag}; then |
433 |
- echo "--use-${pflag}=system" |
434 |
- else |
435 |
- echo "--use-${pflag}=no" |
436 |
- fi |
437 |
-} |
438 |
- |
439 |
-src_prepare() { |
440 |
- default |
441 |
- sed -i -e "s:\(--disable-.*\)=\*):\1):" configure || die |
442 |
-} |
443 |
- |
444 |
-src_configure() { |
445 |
- tc-export CC CXX AR RANLIB |
446 |
- |
447 |
- local myeconfargs=( |
448 |
- --extra-cflags="${CFLAGS}" |
449 |
- --cc="$(tc-getCC)" |
450 |
- --libdir="/$(get_libdir)" |
451 |
- --verbose |
452 |
- --enable-pic |
453 |
- --enable-svg |
454 |
- --disable-amr |
455 |
- --disable-wx |
456 |
- --use-js=no |
457 |
- --use-ogg=system |
458 |
- $(use_enable alsa) |
459 |
- $(use_enable debug) |
460 |
- $(use_enable dvb dvb4linux) |
461 |
- $(use_enable ipv6) |
462 |
- $(use_enable jack jack yes) |
463 |
- $(use_enable opengl 3d) |
464 |
- $(use_enable oss oss-audio) |
465 |
- $(use_enable pulseaudio pulseaudio yes) |
466 |
- $(use_enable sdl) |
467 |
- $(use_enable ssl) |
468 |
- $(use_enable static-libs static-lib) |
469 |
- $(use_enable X x11) |
470 |
- $(use_enable X x11-shm) |
471 |
- $(use_enable X x11-xv) |
472 |
- $(my_use a52) |
473 |
- $(my_use aac faad) |
474 |
- $(my_use dvb dvbx) |
475 |
- $(my_use ffmpeg) |
476 |
- $(my_use jpeg) |
477 |
- $(my_use jpeg2k openjpeg) |
478 |
- $(my_use mad) |
479 |
- $(my_use png) |
480 |
- $(my_use theora) |
481 |
- $(my_use truetype ft) |
482 |
- $(my_use vorbis) |
483 |
- $(my_use xvid) |
484 |
- ) |
485 |
- econf "${myeconfargs[@]}" |
486 |
-} |
487 |
- |
488 |
-src_install() { |
489 |
- einstalldocs |
490 |
- emake STRIP="true" DESTDIR="${D}" install |
491 |
- emake STRIP="true" DESTDIR="${D}" install-lib |
492 |
-} |