Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/gpac/files/
Date: Wed, 04 Jan 2017 10:15:27
Message-Id: 1483524836.fbf3e88e6e861a7af1da540a811cdfc82cad5b19.soap@gentoo
1 commit: fbf3e88e6e861a7af1da540a811cdfc82cad5b19
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Fri Dec 30 14:27:54 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 4 10:13:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbf3e88e
7
8 media-video/gpac: remove unused patches
9
10 Closes: https://github.com/gentoo/gentoo/pull/3286
11
12 media-video/gpac/files/210_all_system_libogg.patch | 28 ---
13 .../gpac/files/gpac-0.5.0-build-fixes.patch | 113 -----------
14 media-video/gpac/files/gpac-0.5.0-ffmpeg2.patch | 28 ---
15 media-video/gpac/files/gpac-0.5.0-libav9.patch | 93 ----------
16 media-video/gpac/files/gpac-0.5.0-mp42ts.patch | 17 --
17 .../gpac/files/gpac-0.5.0-respect_ldflags.patch | 45 -----
18 .../gpac/files/gpac-0.5.1-build-fixes.patch | 206 ---------------------
19 7 files changed, 530 deletions(-)
20
21 diff --git a/media-video/gpac/files/210_all_system_libogg.patch b/media-video/gpac/files/210_all_system_libogg.patch
22 deleted file mode 100644
23 index e09f57c..00000000
24 --- a/media-video/gpac/files/210_all_system_libogg.patch
25 +++ /dev/null
26 @@ -1,28 +0,0 @@
27 ---- src/Makefile.old 2012-07-15 15:34:54.000000000 +0200
28 -+++ src/Makefile 2012-07-15 15:39:51.000000000 +0200
29 -@@ -92,9 +92,6 @@
30 - ifeq ($(DISABLE_M2PS), no)
31 - LIBGPAC_MEDIATOOLS+=media_tools/mpeg2_ps.o
32 - endif
33 --ifeq ($(DISABLE_OGG), no)
34 --LIBGPAC_MEDIATOOLS+=media_tools/gpac_ogg.o
35 --endif
36 - ifeq ($(DISABLE_MCRYPT), no)
37 - LIBGPAC_MEDIATOOLS+=media_tools/ismacryp.o
38 - endif
39 -@@ -230,6 +227,15 @@
40 - endif
41 - endif
42 -
43 -+#6 - OGG support
44 -+ifeq ($(CONFIG_OGG), no)
45 -+else
46 -+LINKLIBS+= -logg
47 -+ifeq ($(CONFIG_OGG), local)
48 -+NEED_LOCAL_LIB="yes"
49 -+MEDIATOOLS_CFLAGS+=-I"$(LOCAL_INC_PATH)/ogg"
50 -+endif
51 -+endif
52 -
53 - ## libgpac compositor compilation options
54 - COMPOSITOR_CFLAGS=
55
56 diff --git a/media-video/gpac/files/gpac-0.5.0-build-fixes.patch b/media-video/gpac/files/gpac-0.5.0-build-fixes.patch
57 deleted file mode 100644
58 index 741fd28..00000000
59 --- a/media-video/gpac/files/gpac-0.5.0-build-fixes.patch
60 +++ /dev/null
61 @@ -1,113 +0,0 @@
62 -diff -ur gpac/configure gpac.new/configure
63 ---- gpac/configure 2012-05-25 08:05:57.000000000 -0400
64 -+++ gpac.new/configure 2012-10-04 13:59:58.000000000 -0400
65 -@@ -103,6 +103,7 @@
66 - has_openjpeg="no"
67 - gprof_build="no"
68 - static_build="no"
69 -+static_libs="no"
70 - want_pic="no"
71 - has_joystick="no"
72 - has_xul="no"
73 -@@ -221,6 +222,7 @@
74 - --disable-platinum disable Platinum UPnP support
75 - --disable-alsa disable Alsa audio
76 - --disable-oss-audio disable OSS audio
77 -+ --disable-sdl disable SDL support
78 - --enable-jack enable Jack audio
79 - --disable-jack disable Jack audio
80 - --enable-pulseaudio enable Pulse audio
81 -@@ -236,6 +238,7 @@
82 - --enable-amr-wb enable AMR WB library
83 - --enable-amr enable both AMR NB and WB libraries
84 - --enable-static-bin GPAC static build
85 -+ --enable-static-lib GPAC static libraries build
86 - --static-mp4box configure for static linking of MP4Box.
87 - --enable-depth enables depth handling in the compositor
88 -
89 -@@ -1607,6 +1610,8 @@
90 - ;;
91 - --enable-static-bin) static_build="yes";
92 - ;;
93 -+ --enable-static-lib) static_libs="yes";
94 -+ ;;
95 - --disable-ipv6) has_ipv6="no"
96 - ;;
97 - --disable-wx) has_wx="no"
98 -@@ -1615,6 +1620,8 @@
99 - ;;
100 - --disable-oss-audio) has_oss_audio="no"
101 - ;;
102 -+ --disable-sdl) has_sdl="no"
103 -+ ;;
104 - --disable-x11-shm) has_x11_shm="no"
105 - ;;
106 - --disable-x11-xv) has_x11_xv="no"
107 -@@ -2157,6 +2164,7 @@
108 - echo "debug version: $debuginfo"
109 - echo "GProf enabled: $gprof_build"
110 - echo "Static build enabled: $static_build"
111 -+echo "Static libs build enabled: $static_libs"
112 - echo "Memory tracking enabled: $use_memory_tracking"
113 - echo "Use standard memory allocator: $use_std_alloc"
114 - echo "fixed-point version: $use_fixed_point"
115 -@@ -2700,6 +2708,7 @@
116 - echo "DEBUGBUILD=$debuginfo" >> config.mak
117 - echo "GPROFBUILD=$gprof_build" >> config.mak
118 - echo "STATICBUILD=$static_build" >> config.mak
119 -+echo "STATICLIBS=$static_libs" >> config.mak
120 -
121 - echo "CONFIG_IPV6=$has_ipv6" >> config.mak
122 - if test "$has_ipv6" = "yes" ; then
123 -@@ -2893,8 +2893,6 @@
124 - mkdir ./bin/gcc/temp
125 - fi
126 -
127 --echo '%.opic : %.c' >> config.mak
128 --echo ' $(CC) $(CFLAGS) $(PIC_CFLAGS) -c $< -o $@' >> config.mak
129 -
130 - #pkg-config
131 - echo "prefix=$prefix" > gpac.pc
132 -diff -ur gpac/Makefile gpac.new/Makefile
133 ---- gpac/Makefile 2012-05-25 08:05:57.000000000 -0400
134 -+++ gpac.new/Makefile 2012-10-04 14:05:08.000000000 -0400
135 -@@ -119,9 +119,6 @@
136 - $(INSTALL) $(INSTFLAGS) -m 755 bin/gcc/libgpac.$(DYN_LIB_SUFFIX).$(VERSION_SONAME) $(DESTDIR)$(prefix)/$(libdir)/libgpac.$(DYN_LIB_SUFFIX).$(VERSION_SONAME)
137 - ln -sf libgpac.$(DYN_LIB_SUFFIX).$(VERSION_SONAME) $(DESTDIR)$(prefix)/$(libdir)/libgpac.so.$(VERSION_MAJOR)
138 - ln -sf libgpac.$(DYN_LIB_SUFFIX).$(VERSION_SONAME) $(DESTDIR)$(prefix)/$(libdir)/libgpac.so
139 --ifeq ($(DESTDIR)$(prefix),$(prefix))
140 -- ldconfig || true
141 --endif
142 - endif
143 - endif
144 -
145 -@@ -138,7 +135,9 @@
146 - $(INSTALL) $(INSTFLAGS) -m 644 $(SRC_PATH)/include/gpac/enst/*.h "$(DESTDIR)$(prefix)/include/gpac/enst"
147 - endif
148 - mkdir -p "$(DESTDIR)$(prefix)/$(libdir)"
149 -+ifeq ($(STATICLIBS),yes)
150 - $(INSTALL) $(INSTFLAGS) -m 644 "./bin/gcc/libgpac_static.a" "$(DESTDIR)$(prefix)/$(libdir)"
151 -+endif
152 - $(MAKE) installdylib
153 -
154 - uninstall-lib:
155 -diff -ur gpac/src/Makefile gpac.new/src/Makefile
156 ---- gpac/src/Makefile 2012-10-04 14:14:18.000000000 -0400
157 -+++ gpac.new/src/Makefile 2012-10-04 13:59:58.000000000 -0400
158 -@@ -291,12 +291,16 @@
159 -
160 - $(LIB): $(LIBGPAC_UTILS) $(LIBGPAC_IETF) $(LIBGPAC_BIFS) $(LIBGPAC_ODF) $(LIBGPAC_LASER) $(LIBGPAC_ISOM) $(LIBGPAC_SCENEMANAGER) $(LIBGPAC_TERMINAL) compositor scenegraph mediatools mcrypt $(OBJS)
161 - ifeq ($(CONFIG_DARWIN),yes)
162 -+ifeq ($(STATICLIBS),yes)
163 - libtool -s -o ../bin/gcc/libgpac_static.a $(OBJS)
164 - ranlib ../bin/gcc/libgpac_static.a
165 -+endif
166 - $(CC) $(SHFLAGS) $(LD_SONAME) $(LDFLAGS) -o ../bin/gcc/$@ $(OBJS) $(EXTRALIBS)
167 - else
168 -+ifeq ($(STATICLIBS),yes)
169 - ar cr ../bin/gcc/libgpac_static.a $(OBJS)
170 - ranlib ../bin/gcc/libgpac_static.a
171 -+endif
172 - $(CC) $(SHFLAGS) $(LD_SONAME) $(LDFLAGS) -o ../bin/gcc/$@ $(OBJS) $(EXTRALIBS)
173 - ifeq (,$(findstring yes, $(CONFIG_WIN32)))
174 - mv ../bin/gcc/$@ ../bin/gcc/$@.$(VERSION_SONAME)
175
176 diff --git a/media-video/gpac/files/gpac-0.5.0-ffmpeg2.patch b/media-video/gpac/files/gpac-0.5.0-ffmpeg2.patch
177 deleted file mode 100644
178 index f9dd4ba..00000000
179 --- a/media-video/gpac/files/gpac-0.5.0-ffmpeg2.patch
180 +++ /dev/null
181 @@ -1,28 +0,0 @@
182 -Index: gpac/modules/ffmpeg_in/ffmpeg_demux.c
183 -===================================================================
184 ---- gpac.orig/modules/ffmpeg_in/ffmpeg_demux.c
185 -+++ gpac/modules/ffmpeg_in/ffmpeg_demux.c
186 -@@ -614,7 +614,7 @@ static GF_Err FFD_ConnectService(GF_Inpu
187 - }
188 - /*setup downloader*/
189 - av_in->flags |= AVFMT_NOFILE;
190 --#if (LIBAVFORMAT_VERSION_MAJOR < 55) /*commit ffmpeg 603b8bc2a109978c8499b06d2556f1433306eca7*/
191 -+#if (LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,4,0)) /*commit ffmpeg 603b8bc2a109978c8499b06d2556f1433306eca7*/
192 - res = avformat_open_input(&ffd->ctx, szName, av_in, NULL);
193 - #else
194 - res = av_open_input_stream(&ffd->ctx, &ffd->io, szName, av_in, NULL);
195 -Index: gpac/modules/ffmpeg_in/ffmpeg_in.h
196 -===================================================================
197 ---- gpac.orig/modules/ffmpeg_in/ffmpeg_in.h
198 -+++ gpac/modules/ffmpeg_in/ffmpeg_in.h
199 -@@ -96,6 +96,10 @@ void gf_av_vlog(void* avcl, int level, c
200 - #endif
201 -
202 -
203 -+#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
204 -+#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
205 -+#endif
206 -+
207 -
208 -
209 - /*FFMPEG decoder module */
210
211 diff --git a/media-video/gpac/files/gpac-0.5.0-libav9.patch b/media-video/gpac/files/gpac-0.5.0-libav9.patch
212 deleted file mode 100644
213 index 687bffc..00000000
214 --- a/media-video/gpac/files/gpac-0.5.0-libav9.patch
215 +++ /dev/null
216 @@ -1,93 +0,0 @@
217 ---- ./work/gpac/modules/ffmpeg_in/ffmpeg_decode.c.original 2012-02-29 18:24:24.000000000 +0200
218 -+++ ./work/gpac/modules/ffmpeg_in/ffmpeg_decode.c 2013-05-28 13:45:02.415980878 +0300
219 -@@ -169,7 +169,7 @@ static GF_Err FFDEC_AttachStream(GF_Base
220 - frame = &ffd->base_frame;
221 - }
222 - if (!(*ctx)){
223 -- *ctx = avcodec_alloc_context();
224 -+ *ctx = avcodec_alloc_context3(NULL);
225 - }
226 -
227 - /*private FFMPEG DSI*/
228 -@@ -317,7 +317,7 @@ static GF_Err FFDEC_AttachStream(GF_Base
229 - (*ctx)->pix_fmt = ffd->raw_pix_fmt;
230 - if ((*ctx)->extradata && strstr((*ctx)->extradata, "BottomUp")) ffd->flipped = 1;
231 - } else {
232 -- if (avcodec_open((*ctx), (*codec) )<0) return GF_NON_COMPLIANT_BITSTREAM;
233 -+ if (avcodec_open2((*ctx), (*codec), NULL)<0) return GF_NON_COMPLIANT_BITSTREAM;
234 - }
235 -
236 - /*setup audio streams*/
237 -@@ -749,7 +749,7 @@ redecode:
238 - here this means the DSI was broken, so no big deal*/
239 - avcodec_close(ctx);
240 - *codec = avcodec_find_decoder(CODEC_ID_H263);
241 -- if (! (*codec) || (avcodec_open(ctx, *codec)<0)) return GF_NON_COMPLIANT_BITSTREAM;
242 -+ if (! (*codec) || (avcodec_open2(ctx, *codec, NULL)<0)) return GF_NON_COMPLIANT_BITSTREAM;
243 - #if USE_AVCODEC2
244 - if (avcodec_decode_video2(ctx, frame, &gotpic, &pkt) < 0) {
245 - #else
246 -@@ -759,7 +759,7 @@ redecode:
247 - avcodec_close(ctx);
248 - *codec = avcodec_find_decoder(old_codec);
249 - assert(*codec);
250 -- avcodec_open(ctx, *codec);
251 -+ avcodec_open2(ctx, *codec, NULL);
252 - return GF_NON_COMPLIANT_BITSTREAM;
253 - }
254 - }
255 ---- ./work/gpac/modules/ffmpeg_in/ffmpeg_demux.c.original 2012-04-04 15:57:37.000000000 +0300
256 -+++ ./work/gpac/modules/ffmpeg_in/ffmpeg_demux.c 2013-05-28 13:58:57.416188668 +0300
257 -@@ -290,7 +290,7 @@ static Bool FFD_CanHandleURL(GF_InputSer
258 - return 0;
259 - }
260 - }
261 -- if (!ctx || av_find_stream_info(ctx) <0) goto exit;
262 -+ if (!ctx || avformat_find_stream_info(ctx, NULL) <0) goto exit;
263 -
264 - /*figure out if we can use codecs or not*/
265 - has_video = has_audio = 0;
266 -@@ -614,7 +614,7 @@ static GF_Err FFD_ConnectService(GF_Inpu
267 - }
268 - /*setup downloader*/
269 - av_in->flags |= AVFMT_NOFILE;
270 --#if FF_API_FORMAT_PARAMETERS /*commit ffmpeg 603b8bc2a109978c8499b06d2556f1433306eca7*/
271 -+#if (LIBAVFORMAT_VERSION_MAJOR < 55) /*commit ffmpeg 603b8bc2a109978c8499b06d2556f1433306eca7*/
272 - res = avformat_open_input(&ffd->ctx, szName, av_in, NULL);
273 - #else
274 - res = av_open_input_stream(&ffd->ctx, &ffd->io, szName, av_in, NULL);
275 -@@ -637,7 +637,7 @@ static GF_Err FFD_ConnectService(GF_Inpu
276 -
277 - GF_LOG(GF_LOG_DEBUG, GF_LOG_CONTAINER, ("[FFMPEG] looking for streams in %s - %d streams - type %s\n", ffd->ctx->filename, ffd->ctx->nb_streams, ffd->ctx->iformat->name));
278 -
279 -- res = av_find_stream_info(ffd->ctx);
280 -+ res = avformat_find_stream_info(ffd->ctx, NULL);
281 - if (res <0) {
282 - GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[FFMPEG] cannot locate streams - error %d\n", res));
283 - e = GF_NOT_SUPPORTED;
284 -@@ -699,7 +699,7 @@ static GF_Err FFD_ConnectService(GF_Inpu
285 - if (!ffd->seekable) {
286 - av_close_input_file(ffd->ctx);
287 - open_file(&ffd->ctx, szName, av_in);
288 -- av_find_stream_info(ffd->ctx);
289 -+ avformat_find_stream_info(ffd->ctx, NULL);
290 - }
291 - }
292 -
293 ---- ./work/gpac/modules/redirect_av/ffmpeg_ts_muxer.c.original 2011-05-03 16:00:46.000000000 +0300
294 -+++ ./work/gpac/modules/redirect_av/ffmpeg_ts_muxer.c 2013-05-28 13:39:10.694202510 +0300
295 -@@ -231,12 +231,12 @@ GF_AbstractTSMuxer * ts_amux_new(GF_AVRe
296 - dump_format(ts->oc, 0, avr->destination, 1);
297 - GF_LOG(GF_LOG_INFO, GF_LOG_MODULE, ("[AVRedirect] DUMPING to %s...\n", ts->destination));
298 -
299 -- if (avcodec_open(ts->video_st->codec, avr->videoCodec) < 0) {
300 -+ if (avcodec_open2(ts->video_st->codec, avr->videoCodec, NULL) < 0) {
301 - GF_LOG(GF_LOG_ERROR, GF_LOG_MODULE, ("[AVRedirect] failed to open video codec\n"));
302 - return NULL;
303 - }
304 - #if REDIRECT_AV_AUDIO_ENABLED
305 -- if (avcodec_open(ts->audio_st->codec, avr->audioCodec) < 0) {
306 -+ if (avcodec_open2(ts->audio_st->codec, avr->audioCodec, NULL) < 0) {
307 - GF_LOG(GF_LOG_ERROR, GF_LOG_MODULE, ("[AVRedirect] failed to open audio codec\n"));
308 - return NULL;
309 - }
310
311 diff --git a/media-video/gpac/files/gpac-0.5.0-mp42ts.patch b/media-video/gpac/files/gpac-0.5.0-mp42ts.patch
312 deleted file mode 100644
313 index 2ab9b54..00000000
314 --- a/media-video/gpac/files/gpac-0.5.0-mp42ts.patch
315 +++ /dev/null
316 @@ -1,17 +0,0 @@
317 -It is built but not installed.
318 -https://bugs.gentoo.org/show_bug.cgi?id=459630
319 -
320 -Index: gpac/Makefile
321 -===================================================================
322 ---- gpac.orig/Makefile
323 -+++ gpac/Makefile
324 -@@ -59,6 +59,9 @@ install:
325 - $(INSTALL) -d "$(DESTDIR)$(prefix)/bin"
326 - ifeq ($(DISABLE_ISOFF), no)
327 - $(INSTALL) $(INSTFLAGS) -m 755 bin/gcc/MP4Box "$(DESTDIR)$(prefix)/bin"
328 -+ifeq ($(DISABLE_M2TS), no)
329 -+ $(INSTALL) $(INSTFLAGS) -m 755 bin/gcc/mp42ts "$(DESTDIR)$(prefix)/bin"
330 -+endif
331 - endif
332 - ifeq ($(DISABLE_PLAYER), no)
333 - $(INSTALL) $(INSTFLAGS) -m 755 bin/gcc/MP4Client "$(DESTDIR)$(prefix)/bin"
334
335 diff --git a/media-video/gpac/files/gpac-0.5.0-respect_ldflags.patch b/media-video/gpac/files/gpac-0.5.0-respect_ldflags.patch
336 deleted file mode 100644
337 index 3b37cfe..00000000
338 --- a/media-video/gpac/files/gpac-0.5.0-respect_ldflags.patch
339 +++ /dev/null
340 @@ -1,45 +0,0 @@
341 -http://bugs.gentoo.org/258331
342 -http://bugs.gentoo.org/310257
343 -http://bugs.gentoo.org/331067
344 -
345 -Also fix underlinkage of the pulse module.
346 -
347 -Index: gpac/modules/jack/Makefile
348 -===================================================================
349 ---- gpac.orig/modules/jack/Makefile
350 -+++ gpac/modules/jack/Makefile
351 -@@ -25,7 +25,7 @@ LIB=gm_jack.$(DYN_LIB_SUFFIX)
352 - all: $(LIB)
353 -
354 - $(LIB): $(OBJS)
355 -- $(CC) $(SHFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -ljack
356 -+ $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -ljack
357 -
358 -
359 - %.o: %.c
360 -Index: gpac/modules/oss_audio/Makefile
361 -===================================================================
362 ---- gpac.orig/modules/oss_audio/Makefile
363 -+++ gpac/modules/oss_audio/Makefile
364 -@@ -35,7 +35,7 @@ LIB=gm_oss_audio.$(DYN_LIB_SUFFIX)
365 - all: $(LIB)
366 -
367 - $(LIB): $(OBJS)
368 -- $(CC) $(SHFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac $(OSS_LDFLAGS)
369 -+ $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac $(OSS_LDFLAGS)
370 - ifeq ($(STATICBUILD),yes)
371 - $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/gm_oss_audio-static.$(DYN_LIB_SUFFIX) $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac_static $(OSS_LDFLAGS)
372 - endif
373 -Index: gpac/modules/pulseaudio/Makefile
374 -===================================================================
375 ---- gpac.orig/modules/pulseaudio/Makefile
376 -+++ gpac/modules/pulseaudio/Makefile
377 -@@ -25,7 +25,7 @@ LIB=gm_pulseaudio.$(DYN_LIB_SUFFIX)
378 - all: $(LIB)
379 -
380 - $(LIB): $(OBJS)
381 -- $(CC) $(SHFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -lpulse-simple
382 -+ $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -lpulse-simple -lpulse
383 -
384 -
385 - %.o: %.c
386
387 diff --git a/media-video/gpac/files/gpac-0.5.1-build-fixes.patch b/media-video/gpac/files/gpac-0.5.1-build-fixes.patch
388 deleted file mode 100644
389 index c28e803..00000000
390 --- a/media-video/gpac/files/gpac-0.5.1-build-fixes.patch
391 +++ /dev/null
392 @@ -1,206 +0,0 @@
393 -Index: Makefile
394 -===================================================================
395 ---- Makefile (revision 5456)
396 -+++ Makefile (working copy)
397 -@@ -78,6 +78,9 @@
398 - ifeq ($(DISABLE_ISOFF), no)
399 - $(INSTALL) $(INSTFLAGS) -m 755 bin/gcc/MP4Box "$(DESTDIR)$(prefix)/bin"
400 - endif
401 -+ifeq ($(DISABLE_M2TS), no)
402 -+ $(INSTALL) $(INSTFLAGS) -m 755 bin/gcc/mp42ts "$(DESTDIR)$(prefix)/bin"
403 -+endif
404 - ifeq ($(DISABLE_PLAYER), no)
405 - $(INSTALL) $(INSTFLAGS) -m 755 bin/gcc/MP4Client "$(DESTDIR)$(prefix)/bin"
406 - endif
407 -@@ -142,9 +145,6 @@
408 - $(INSTALL) $(INSTFLAGS) -m 755 bin/gcc/libgpac.$(DYN_LIB_SUFFIX).$(VERSION_SONAME) $(DESTDIR)$(prefix)/$(libdir)/libgpac.$(DYN_LIB_SUFFIX).$(VERSION_SONAME)
409 - ln -sf libgpac.$(DYN_LIB_SUFFIX).$(VERSION_SONAME) $(DESTDIR)$(prefix)/$(libdir)/libgpac.so.$(VERSION_MAJOR)
410 - ln -sf libgpac.$(DYN_LIB_SUFFIX).$(VERSION_SONAME) $(DESTDIR)$(prefix)/$(libdir)/libgpac.so
411 --ifeq ($(DESTDIR)$(prefix),$(prefix))
412 -- ldconfig || true
413 --endif
414 - endif
415 - endif
416 -
417 -@@ -161,7 +161,9 @@
418 - $(INSTALL) $(INSTFLAGS) -m 644 $(SRC_PATH)/include/gpac/enst/*.h "$(DESTDIR)$(prefix)/include/gpac/enst"
419 - endif
420 - mkdir -p "$(DESTDIR)$(prefix)/$(libdir)"
421 -+ifeq ($(STATICLIBS),yes)
422 - $(INSTALL) $(INSTFLAGS) -m 644 "./bin/gcc/libgpac_static.a" "$(DESTDIR)$(prefix)/$(libdir)"
423 -+endif
424 - $(MAKE) installdylib
425 -
426 - uninstall-lib:
427 -Index: applications/mp4box/main.c
428 -===================================================================
429 ---- applications/mp4box/main.c (revision 5456)
430 -+++ applications/mp4box/main.c (working copy)
431 -@@ -1508,10 +1508,10 @@
432 - (*descs)[(*nb_descs)-1][len] = 0;
433 - }
434 - else if (!strnicmp(opts, "xlink=", 6)) {
435 -- if (strlen(opts+6) > 199) {
436 -+ if (strlen(opts+6) > 99) {
437 - GF_LOG(GF_LOG_ERROR, GF_LOG_DASH, ("[DASH] XLink cannot exceed 99 characters in MP4Box, truncating ...\n"));
438 - }
439 -- strncpy(di->xlink, opts+6, 199);
440 -+ strncpy(di->xlink, opts+6, 99);
441 - }
442 -
443 - if (!sep) break;
444 -Index: configure
445 -===================================================================
446 ---- configure (revision 5456)
447 -+++ configure (working copy)
448 -@@ -101,6 +101,7 @@
449 - has_openjpeg="no"
450 - gprof_build="no"
451 - static_build="no"
452 -+static_libs="no"
453 - want_pic="no"
454 - has_joystick="no"
455 - has_xul="no"
456 -@@ -230,6 +231,7 @@
457 - --disable-platinum disable Platinum UPnP support
458 - --disable-alsa disable Alsa audio
459 - --disable-oss-audio disable OSS audio
460 -+ --disable-sdl disable SDL support
461 - --enable-jack enable Jack audio
462 - --disable-jack disable Jack audio
463 - --enable-pulseaudio enable Pulse audio
464 -@@ -245,6 +247,7 @@
465 - --enable-amr-wb enable AMR WB library
466 - --enable-amr enable both AMR NB and WB libraries
467 - --enable-static-bin GPAC static build
468 -+ --enable-static-lib GPAC static libraries build
469 - --static-mp4box configure for static linking of MP4Box.
470 - --enable-depth enables depth handling in the compositor
471 -
472 -@@ -1761,6 +1764,8 @@
473 - ;;
474 - --enable-static-bin) static_build="yes";
475 - ;;
476 -+ --enable-static-lib) static_libs="yes";
477 -+ ;;
478 - --disable-ipv6) has_ipv6="no"
479 - ;;
480 - --disable-wx) has_wx="no"
481 -@@ -1769,6 +1774,8 @@
482 - ;;
483 - --disable-oss-audio) has_oss_audio="no"
484 - ;;
485 -+ --disable-sdl) has_sdl="no"
486 -+ ;;
487 - --disable-x11-shm) has_x11_shm="no"
488 - ;;
489 - --disable-x11-xv) has_x11_xv="no"
490 -@@ -2422,6 +2429,7 @@
491 - echo "debug version: $debuginfo"
492 - echo "GProf enabled: $gprof_build"
493 - echo "Static build enabled: $static_build"
494 -+echo "Static libs build enabled: $static_libs"
495 - echo "Memory tracking enabled: $use_memory_tracking"
496 - echo "Use standard memory allocator: $use_std_alloc"
497 - echo "Fixed-Point Version: $use_fixed_point"
498 -@@ -3039,6 +3047,7 @@
499 - echo "DEBUGBUILD=$debuginfo" >> config.mak
500 - echo "GPROFBUILD=$gprof_build" >> config.mak
501 - echo "STATICBUILD=$static_build" >> config.mak
502 -+echo "STATICLIBS=$static_libs" >> config.mak
503 -
504 - echo "CONFIG_IPV6=$has_ipv6" >> config.mak
505 - if test "$has_ipv6" = "yes" ; then
506 -@@ -3237,12 +3246,6 @@
507 - fi
508 -
509 -
510 --echo '%.opic : %.c' >> config.mak
511 --if test "$verbose" = "no" ; then
512 --echo ' @echo " CC $<"' >> config.mak
513 --fi
514 --echo ' $(CC) $(CFLAGS) $(PIC_CFLAGS) -c $< -o $@' >> config.mak
515 --
516 - echo '%.o : %.c' >> config.mak
517 - if test "$verbose" = "no" ; then
518 - echo ' @echo " CC $<"' >> config.mak
519 -Index: modules/jack/Makefile
520 -===================================================================
521 ---- modules/jack/Makefile (revision 5456)
522 -+++ modules/jack/Makefile (working copy)
523 -@@ -25,7 +25,7 @@
524 - all: $(LIB)
525 -
526 - $(LIB): $(OBJS)
527 -- $(CC) $(SHFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -ljack
528 -+ $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -ljack
529 -
530 - clean:
531 - rm -f $(OBJS) ../../bin/gcc/$(LIB)
532 -Index: modules/oss_audio/Makefile
533 -===================================================================
534 ---- modules/oss_audio/Makefile (revision 5456)
535 -+++ modules/oss_audio/Makefile (working copy)
536 -@@ -35,7 +35,7 @@
537 - all: $(LIB)
538 -
539 - $(LIB): $(OBJS)
540 -- $(CC) $(SHFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac $(OSS_LDFLAGS)
541 -+ $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac $(OSS_LDFLAGS)
542 - ifeq ($(STATICBUILD),yes)
543 - $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/gm_oss_audio-static.$(DYN_LIB_SUFFIX) $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac_static $(OSS_LDFLAGS)
544 - endif
545 -Index: modules/pulseaudio/Makefile
546 -===================================================================
547 ---- modules/pulseaudio/Makefile (revision 5456)
548 -+++ modules/pulseaudio/Makefile (working copy)
549 -@@ -25,7 +25,7 @@
550 - all: $(LIB)
551 -
552 - $(LIB): $(OBJS)
553 -- $(CC) $(SHFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -lpulse-simple
554 -+ $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -lpulse-simple -lpulse
555 -
556 - clean:
557 - rm -f $(OBJS) ../../bin/gcc/$(LIB)
558 -Index: modules/vtt_in/vtt_dec.c
559 -===================================================================
560 ---- modules/vtt_in/vtt_dec.c (revision 5456)
561 -+++ modules/vtt_in/vtt_dec.c (working copy)
562 -@@ -128,6 +128,7 @@
563 -
564 - case GPAC_OTI_SCENE_VTT_MP4:
565 - {
566 -+#ifdef GPAC_HAS_SPIDERMONKEY
567 - char start[100], end[100];
568 - GF_List *cues;
569 - cues = gf_webvtt_parse_cues_from_data(inBuffer, inBufferLength, 0);
570 -@@ -142,6 +143,7 @@
571 - }
572 - }
573 - gf_list_del(cues);
574 -+#endif
575 - }
576 - break;
577 -
578 -Index: src/Makefile
579 -===================================================================
580 ---- src/Makefile (revision 5456)
581 -+++ src/Makefile (working copy)
582 -@@ -607,12 +607,16 @@
583 - @echo "OBJS $(OBJS)"
584 - @echo "LIBS $(EXTRALIBS)"
585 - ifeq ($(CONFIG_DARWIN),yes)
586 -+ifeq ($(STATICLIBS),yes)
587 - $(LIBTOOL) -s -o ../bin/gcc/libgpac_static.a $(OBJS)
588 - $(RANLIB) ../bin/gcc/libgpac_static.a
589 -+endif
590 - $(CC) $(SHFLAGS) $(LD_SONAME) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS)
591 - else
592 -+ifeq ($(STATICLIBS),yes)
593 - $(AR) cr ../bin/gcc/libgpac_static.a $(OBJS)
594 - $(RANLIB) ../bin/gcc/libgpac_static.a
595 -+endif
596 - $(CC) $(SHFLAGS) $(LD_SONAME) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS)
597 - ifeq (,$(findstring yes, $(CONFIG_WIN32)))
598 - mv $@ $@.$(VERSION_SONAME)