1 |
aballier 07/10/22 19:12:34 |
2 |
|
3 |
Added: 000_all_glide.patch 010_all_freetype-font.patch |
4 |
110_all_dtspic.patch 130_all_textrels.patch |
5 |
140_all_directfb.patch 180_all_faad.patch |
6 |
190_all_strict-aliasing.patch |
7 |
200_all_nonpermissive.patch 220_all_firefox.patch |
8 |
230_all_libcdio-0.78.2.patch 250_all_livepic.patch |
9 |
290_all_altivec.patch 330_all_libdca.patch series |
10 |
Log: |
11 |
add a new dir for vlc 0.8.6c, removing merged patches from 0.8.6 one, plus including directfb detection backport from trunk |
12 |
|
13 |
Revision Changes Path |
14 |
1.1 src/patchsets/vlc/0.8.6c/000_all_glide.patch |
15 |
|
16 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/000_all_glide.patch?rev=1.1&view=markup |
17 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/000_all_glide.patch?rev=1.1&content-type=text/plain |
18 |
|
19 |
Index: 000_all_glide.patch |
20 |
=================================================================== |
21 |
Portage has just glide 3.x so use that and not glide 2.x. |
22 |
This patch replaces the sed to configure in src_unpack in old ebuilds. |
23 |
|
24 |
Updated with report of Ed Catmur, Gentoo Bug #132809 |
25 |
Index: vlc-0.8.6-rc1/modules/video_output/glide.c |
26 |
=================================================================== |
27 |
--- vlc-0.8.6-rc1.orig/modules/video_output/glide.c |
28 |
+++ vlc-0.8.6-rc1/modules/video_output/glide.c |
29 |
@@ -244,20 +244,11 @@ static void Display( vout_thread_t *p_vo |
30 |
|
31 |
static int OpenDisplay( vout_thread_t *p_vout ) |
32 |
{ |
33 |
- static char version[80]; |
34 |
- GrHwConfiguration hwconfig; |
35 |
GrScreenResolution_t resolution = GR_RESOLUTION_800x600; |
36 |
GrLfbInfo_t p_front_buffer_info; /* front buffer info */ |
37 |
|
38 |
- grGlideGetVersion( version ); |
39 |
grGlideInit(); |
40 |
|
41 |
- if( !grSstQueryHardware(&hwconfig) ) |
42 |
- { |
43 |
- msg_Err( p_vout, "cannot get 3dfx hardware config" ); |
44 |
- return( 1 ); |
45 |
- } |
46 |
- |
47 |
grSstSelect( 0 ); |
48 |
if( !grSstWinOpen( 0, resolution, GR_REFRESH_60Hz, |
49 |
GR_COLORFORMAT_ABGR, GR_ORIGIN_UPPER_LEFT, 2, 1 ) ) |
50 |
Index: vlc-0.8.6-rc1/configure.ac |
51 |
=================================================================== |
52 |
--- vlc-0.8.6-rc1.orig/configure.ac |
53 |
+++ vlc-0.8.6-rc1/configure.ac |
54 |
@@ -4019,11 +4019,11 @@ then |
55 |
VLC_ADD_LDFLAGS([glide],[-L${with_glide}/lib]) |
56 |
CFLAGS="$CFLAGS -I${with_glide}/include" |
57 |
fi ]) |
58 |
- CFLAGS="$CFLAGS -I/usr/include/glide" |
59 |
+ CFLAGS="$CFLAGS -I/usr/include/glide3" |
60 |
AC_CHECK_HEADER(glide.h,[ |
61 |
VLC_ADD_PLUGINS([glide]) |
62 |
- VLC_ADD_LDFLAGS([glide],[-lglide2x -lm]) |
63 |
- VLC_ADD_CPPFLAGS([glide],[-I/usr/include/glide]) |
64 |
+ VLC_ADD_LDFLAGS([glide],[-lglide3 -lm]) |
65 |
+ VLC_ADD_CPPFLAGS([glide],[-I/usr/include/glide3]) |
66 |
],[ |
67 |
AC_MSG_ERROR([You don't have libglide. Install it or do not use --enable-glide]) |
68 |
]) |
69 |
|
70 |
|
71 |
|
72 |
1.1 src/patchsets/vlc/0.8.6c/010_all_freetype-font.patch |
73 |
|
74 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/010_all_freetype-font.patch?rev=1.1&view=markup |
75 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/010_all_freetype-font.patch?rev=1.1&content-type=text/plain |
76 |
|
77 |
Index: 010_all_freetype-font.patch |
78 |
=================================================================== |
79 |
The default font used by VLC does not exists on every system, instead of that, |
80 |
we use Bitstream Vera, and add it to the dependencies, as anyway many people |
81 |
have that font installed. |
82 |
|
83 |
Index: vlc-0.8.4/modules/misc/freetype.c |
84 |
=================================================================== |
85 |
--- vlc-0.8.4.orig/modules/misc/freetype.c |
86 |
+++ vlc-0.8.4/modules/misc/freetype.c |
87 |
@@ -55,7 +55,7 @@ |
88 |
#elif defined( WIN32 ) |
89 |
#define DEFAULT_FONT "" /* Default font found at run-time */ |
90 |
#else |
91 |
-#define DEFAULT_FONT "/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf" |
92 |
+#define DEFAULT_FONT "/usr/share/fonts/ttf-bitstream-vera/VeraBd.ttf" |
93 |
#endif |
94 |
|
95 |
#if defined(HAVE_FRIBIDI) |
96 |
|
97 |
|
98 |
|
99 |
1.1 src/patchsets/vlc/0.8.6c/110_all_dtspic.patch |
100 |
|
101 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/110_all_dtspic.patch?rev=1.1&view=markup |
102 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/110_all_dtspic.patch?rev=1.1&content-type=text/plain |
103 |
|
104 |
Index: 110_all_dtspic.patch |
105 |
=================================================================== |
106 |
Index: vlc-0.8.6-rc1/configure.ac |
107 |
=================================================================== |
108 |
--- vlc-0.8.6-rc1.orig/configure.ac |
109 |
+++ vlc-0.8.6-rc1/configure.ac |
110 |
@@ -3058,7 +3058,7 @@ if test "${enable_dts}" != "no"; then |
111 |
VLC_ADD_LDFLAGS([dtstofloat32],[-ldts_pic]) |
112 |
],[ |
113 |
AC_CHECK_LIB(dts, dts_free, [ |
114 |
- VLC_ADD_BUILTINS([dtstofloat32]) |
115 |
+ VLC_ADD_PLUGINS([dtstofloat32]) |
116 |
VLC_ADD_LDFLAGS([dtstofloat32],[-ldts]) |
117 |
],[ |
118 |
if test "${enable_dts}" = "yes"; then |
119 |
|
120 |
|
121 |
|
122 |
1.1 src/patchsets/vlc/0.8.6c/130_all_textrels.patch |
123 |
|
124 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/130_all_textrels.patch?rev=1.1&view=markup |
125 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/130_all_textrels.patch?rev=1.1&content-type=text/plain |
126 |
|
127 |
Index: 130_all_textrels.patch |
128 |
=================================================================== |
129 |
Index: vlc-0.8.6-rc1/loader/Makefile.am |
130 |
=================================================================== |
131 |
--- vlc-0.8.6-rc1.orig/loader/Makefile.am |
132 |
+++ vlc-0.8.6-rc1/loader/Makefile.am |
133 |
@@ -16,7 +16,7 @@ endif |
134 |
# TODO: real check for vsscanf() and <sys/mmap.h> |
135 |
AM_CPPFLAGS = -D__WINE__ -DHAVE_SYS_MMAN_H=1 -DHAVE_VSSCANF=1 \ |
136 |
-DWIN32_PATH=\"\" -DTRACE\(...\)=\(void\)0 |
137 |
-AM_CFLAGS = -fno-PIC `$(top_builddir)/vlc-config --cflags` -U_FILE_OFFSET_BITS \ |
138 |
+AM_CFLAGS = -fPIC `$(top_builddir)/vlc-config --cflags` -U_FILE_OFFSET_BITS \ |
139 |
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer |
140 |
|
141 |
noinst_HEADERS = com.h driver.h ext.h ldt_keeper.h loader.h registry.h \ |
142 |
Index: vlc-0.8.6-rc1/loader/module.c |
143 |
=================================================================== |
144 |
--- vlc-0.8.6-rc1.orig/loader/module.c |
145 |
+++ vlc-0.8.6-rc1/loader/module.c |
146 |
@@ -63,8 +63,8 @@ |
147 |
|
148 |
#ifdef EMU_QTX_API |
149 |
#include "wrapper.h" |
150 |
-static int report_func(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags); |
151 |
-static int report_func_ret(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags); |
152 |
+int report_func(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags); |
153 |
+int report_func_ret(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags); |
154 |
#endif |
155 |
|
156 |
//#undef TRACE |
157 |
@@ -572,8 +572,6 @@ HMODULE WINAPI LoadLibraryExA(LPCSTR lib |
158 |
fprintf(stderr,"QuickTime.qts patched!!! old entry=%p\n",ptr[0]); |
159 |
|
160 |
#ifdef EMU_QTX_API |
161 |
- report_entry = report_func; |
162 |
- report_ret = report_func_ret; |
163 |
wrapper_target=ptr[0]; |
164 |
ptr[0]=wrapper; |
165 |
#endif |
166 |
@@ -754,7 +752,7 @@ static int dump_component(char* name,int |
167 |
static uint32_t ret_array[4096]; |
168 |
static int ret_i=0; |
169 |
|
170 |
-static int report_func(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags) |
171 |
+int report_func(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags) |
172 |
{ |
173 |
#ifdef DEBUG_QTX_API |
174 |
int i; |
175 |
@@ -953,7 +951,7 @@ static int report_func(void *stack_base, |
176 |
return 0; |
177 |
} |
178 |
|
179 |
-static int report_func_ret(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags) |
180 |
+int report_func_ret(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags) |
181 |
{ |
182 |
int i; |
183 |
short err; |
184 |
@@ -1066,8 +1064,6 @@ FARPROC MODULE_GetProcAddress( |
185 |
// || !strcmp(function,"_CallComponent") |
186 |
){ |
187 |
fprintf(stderr,"theQuickTimeDispatcher catched -> %p\n",retproc); |
188 |
- report_entry = report_func; |
189 |
- report_ret = report_func_ret; |
190 |
wrapper_target=(void(*)(void))retproc; |
191 |
retproc=(FARPROC)wrapper; |
192 |
} |
193 |
Index: vlc-0.8.6-rc1/loader/stubs.s |
194 |
=================================================================== |
195 |
--- vlc-0.8.6-rc1.orig/loader/stubs.s |
196 |
+++ vlc-0.8.6-rc1/loader/stubs.s |
197 |
@@ -33,3 +33,6 @@ exp_EH_prolog: |
198 |
leal 12(%esp), %ebp |
199 |
pushl %eax |
200 |
ret |
201 |
+ |
202 |
+.section .note.GNU-stack,"",@progbits |
203 |
+ |
204 |
Index: vlc-0.8.6-rc1/loader/wrapper.S |
205 |
=================================================================== |
206 |
--- vlc-0.8.6-rc1.orig/loader/wrapper.S |
207 |
+++ vlc-0.8.6-rc1/loader/wrapper.S |
208 |
@@ -1,17 +1,19 @@ |
209 |
.section .data |
210 |
-.globl caller_return |
211 |
caller_return: |
212 |
.long 0 |
213 |
-.globl report_entry |
214 |
-report_entry: |
215 |
- .long null_call |
216 |
-.globl report_ret |
217 |
-report_ret: |
218 |
- .long null_call |
219 |
.global wrapper_target |
220 |
wrapper_target: |
221 |
.long null_call |
222 |
|
223 |
+#undef __i686 /* gcc define gets in our way */ |
224 |
+ .section .gnu.linkonce.t.__i686.get_pc_thunk.bx,"ax",@progbits |
225 |
+.globl __i686.get_pc_thunk.bx |
226 |
+ .hidden __i686.get_pc_thunk.bx |
227 |
+ .type __i686.get_pc_thunk.bx,@function |
228 |
+__i686.get_pc_thunk.bx: |
229 |
+ movl (%esp), %ebx |
230 |
+ ret |
231 |
+ |
232 |
.section .text |
233 |
.globl null_call |
234 |
.type null_call, @function |
235 |
@@ -22,46 +24,60 @@ null_call: |
236 |
.type wrapper, @function |
237 |
.balign 16,0x90 |
238 |
wrapper: |
239 |
+ pushl $0 |
240 |
pusha # store registers (EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI) |
241 |
pushf # store flags |
242 |
|
243 |
push %ebp # set up a stack frame |
244 |
movl %esp, %ebp |
245 |
|
246 |
+ call __i686.get_pc_thunk.bx |
247 |
+ addl $_GLOBAL_OFFSET_TABLE_, %ebx |
248 |
+ |
249 |
leal 4(%ebp), %eax # push flags addr |
250 |
push %eax |
251 |
leal 8(%ebp), %eax # push registers addr |
252 |
push %eax |
253 |
- |
254 |
- leal 40(%ebp), %edx |
255 |
+ |
256 |
+ leal 44(%ebp), %edx |
257 |
movl (%ebp), %eax |
258 |
subl %edx, %eax |
259 |
push %eax |
260 |
push %edx |
261 |
- |
262 |
- call *report_entry # report entry |
263 |
- |
264 |
+ |
265 |
+ call report_func@PLT # report entry |
266 |
+ |
267 |
test %eax, %eax |
268 |
jnz .Ldone |
269 |
|
270 |
+ movl 44(%ebp), %eax # switch return addresses |
271 |
+ movl %eax, caller_return@GOTOFF(%ebx) |
272 |
+ leal .Lwrapper_return@GOTOFF(%ebx), %eax |
273 |
+ movl %eax, 40(%ebp) |
274 |
+ |
275 |
+ movl wrapper_target@GOTOFF(%ebx), %eax |
276 |
+ mov %eax, 40(%ebp) # wrapper_target should return at .Lwrapper_return |
277 |
+ |
278 |
leave # restore %esp, %ebp |
279 |
popf # restore flags |
280 |
popa # restore registers |
281 |
- |
282 |
- popl caller_return # switch return addresses |
283 |
- pushl $.Lwrapper_return |
284 |
- |
285 |
- jmp *wrapper_target # wrapper_target should return at .Lwrapper_return |
286 |
+ |
287 |
+ ret |
288 |
|
289 |
.balign 16, 0x90 |
290 |
.Lwrapper_return: |
291 |
- pushl caller_return # restore the original return address |
292 |
+ pushl $0 # restore the original return address |
293 |
pusha # more for reference sake here |
294 |
pushf |
295 |
|
296 |
push %ebp # set up a stack frame |
297 |
movl %esp, %ebp |
298 |
|
299 |
+ call __i686.get_pc_thunk.bx |
300 |
+ addl $_GLOBAL_OFFSET_TABLE_, %ebx |
301 |
+ movl caller_return@GOTOFF(%ebx), %eax |
302 |
+ movl %eax, 40(%ebp) # restore the original return address |
303 |
+ |
304 |
leal 4(%ebp), %eax # push flags addr |
305 |
push %eax |
306 |
leal 8(%ebp), %eax # push registers addr |
307 |
@@ -73,11 +89,13 @@ wrapper: |
308 |
push %eax |
309 |
push %edx |
310 |
|
311 |
- call *report_ret # report the return information (same args) |
312 |
+ call report_func_ret@PLT# report the return information (same args) |
313 |
.Ldone: |
314 |
|
315 |
leave |
316 |
popf |
317 |
popa |
318 |
ret |
319 |
- |
320 |
+ |
321 |
+.section .note.GNU-stack,"",@progbits |
322 |
+ |
323 |
Index: vlc-0.8.6-rc1/loader/wrapper.h |
324 |
=================================================================== |
325 |
--- vlc-0.8.6-rc1.orig/loader/wrapper.h |
326 |
+++ vlc-0.8.6-rc1/loader/wrapper.h |
327 |
@@ -7,10 +7,6 @@ typedef struct { |
328 |
uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax; |
329 |
} reg386_t; |
330 |
|
331 |
-typedef int (*wrapper_func_t)(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags); |
332 |
- |
333 |
-extern wrapper_func_t report_entry, report_ret; |
334 |
- |
335 |
extern void (*wrapper_target)(void); |
336 |
|
337 |
extern int wrapper(void); |
338 |
|
339 |
|
340 |
|
341 |
1.1 src/patchsets/vlc/0.8.6c/140_all_directfb.patch |
342 |
|
343 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/140_all_directfb.patch?rev=1.1&view=markup |
344 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/140_all_directfb.patch?rev=1.1&content-type=text/plain |
345 |
|
346 |
Index: 140_all_directfb.patch |
347 |
=================================================================== |
348 |
Index: vlc-0.8.6c/configure.ac |
349 |
=================================================================== |
350 |
--- vlc-0.8.6c.orig/configure.ac |
351 |
+++ vlc-0.8.6c/configure.ac |
352 |
@@ -3986,38 +3986,73 @@ fi |
353 |
|
354 |
dnl |
355 |
dnl DirectFB module |
356 |
+dnl try to find using: 1 - given location; 2 - directfb-config; 3 - pkg-config |
357 |
+dnl TODO: support for static linking |
358 |
dnl |
359 |
AC_ARG_ENABLE(directfb, |
360 |
[ --enable-directfb DirectFB support (default disabled)]) |
361 |
-if test "${enable_directfb}" = "yes" |
362 |
-then |
363 |
- if test "${with_directfb}" = "no" |
364 |
- then |
365 |
- AC_CHECK_HEADER(directfb.h, have_directfb="true", have_directfb="false") |
366 |
- if test "${have_directfb}"= "true" |
367 |
- then |
368 |
+AC_ARG_WITH(directfb, |
369 |
+ [ --with-directfb=PATH path to DirectFB headers and libraries]) |
370 |
+ |
371 |
+if test "${enable_directfb}" = "yes"; then |
372 |
+ have_directfb="false" |
373 |
+ CPPFLAGS_mydirectfb= |
374 |
+ LDFLAGS_mydirectfb= |
375 |
+ if test "${with_directfb}" != "no" -a -n "${with_directfb}"; then |
376 |
+ dnl Trying the given location |
377 |
+ CPPFLAGS_save=${CPPFLAGS} |
378 |
+ LDFLAGS_save=${LDFLAGS} |
379 |
+ |
380 |
+ CPPFLAGS_new="-I${with_directfb}/include -D_REENTRANT -D_GNU_SOURCE" |
381 |
+ LDFLAGS_new="-L${with_directfb}/lib/fusion/.libs/ -L${with_directfb}/lib/direct/.libs/" |
382 |
+ LDFLAGS_new="${LDFLAGS_new} -L${with_directfb}/src/.libs/" |
383 |
+ |
384 |
+ CPPFLAGS="${CPPFLAGS} ${CPPFLAGS_new}" |
385 |
+ LDFLAGS="${LD_FLAGS} ${LDFLAGS_new}" |
386 |
+ |
387 |
+ dnl FIXME: too obscure |
388 |
+ AC_CHECK_HEADER([directfb.h], [ |
389 |
+ AC_CHECK_LIB([direct],[direct_initialize], [ |
390 |
+ AC_CHECK_LIB([fusion], [fusion_enter], [ |
391 |
+ AC_CHECK_LIB([directfb], [DirectFBInit], have_directfb="true", have_directfb="false") |
392 |
+ ], have_directfb="false") |
393 |
+ ], have_directfb="false") |
394 |
+ ], have_directfb="false") |
395 |
+ |
396 |
+ dnl Restore flags |
397 |
+ CPPFLAGS="${CPPFLAGS_save}" |
398 |
+ LDFLAGS="${LDFLAGS_save}" |
399 |
+ |
400 |
+ if test "${have_directfb}" = "true"; then |
401 |
+ LDFLAGS_mydirectfb="${LDFLAGS_new} -lz -ldl -ldirectfb -lfusion -ldirect -lpthread" |
402 |
+ CPPFLAGS_mydirectfb="${CPPFLAGS_new}" |
403 |
+ fi |
404 |
+ else |
405 |
+ dnl Look for directfb-config |
406 |
+ AC_PATH_PROG(DIRECTFB_CONFIG, directfb-config, no, ${PATH}) |
407 |
+ if test "${DIRECTFB_CONFIG}" != "no"; then |
408 |
+ CPPFLAGS_mydirectfb="`${DIRECTFB_CONFIG} --cflags`" |
409 |
+ LDFLAGS_mydirectfb="`${DIRECTFB_CONFIG} --libs`" |
410 |
+ have_directfb="true" |
411 |
+ else |
412 |
+ dnl Trying with pkg-config |
413 |
+ PKG_CHECK_MODULES(DIRECTFB, directfb, [ |
414 |
+ CPPFLAGS_mydirectfb="${DIRECTFB_CFLAGS}" |
415 |
+ LDFLAGS_mydirectfb="${DIRECTFB_LIBS}" |
416 |
+ have_directfb="true" |
417 |
+ ], [have_directfb="false"]) |
418 |
+ fi |
419 |
+ fi |
420 |
+ if test "${have_directfb}" = "true"; then |
421 |
VLC_ADD_PLUGINS([directfb]) |
422 |
- VLC_ADD_LDFLAGS([directfb],[-ldirectfb -lfusion -ldirect -lpthread -ljpeg -lz -ldl]) |
423 |
- VLC_ADD_CPPFLAGS([directfb],[-I/usr/include/directfb -D_REENTRANT]) |
424 |
- else |
425 |
- AC_MSG_ERROR([cannot find /usr/include/directfb headers, make sure directfb is installed on your system or use --disable-directfb]) |
426 |
+ VLC_ADD_CPPFLAGS([directfb],[${CPPFLAGS_mydirectfb}]) |
427 |
+ VLC_ADD_LDFLAGS([directfb],[${LDFLAGS_mydirectfb}]) |
428 |
+ else |
429 |
+ AC_MSG_ERROR([cannot find directfb headers and/or libraries ]) |
430 |
fi |
431 |
- else |
432 |
- CPPFLAGS_save="${CPPFLAGS}" |
433 |
- CPPFLAGS="${CPPFLAGS} -I${with_directfb}/include" |
434 |
- AC_CHECK_HEADER(directfb.h, have_directfb="true", have_directfb="false") |
435 |
- CPPFLAGS="${CPPFLAGS_save}" |
436 |
- AC_ARG_WITH(directfb, |
437 |
- [ --with-directfb=PATH path to directfb], |
438 |
- [ if test "${with_directfb}" != "no" -a -n "${with_directfb}" |
439 |
- then |
440 |
- VLC_ADD_PLUGINS([directfb]) |
441 |
- VLC_ADD_CPPFLAGS([directfb],[-I${with_directfb}/include -D_REENTRANT]) |
442 |
- VLC_ADD_LDFLAGS([directfb],[-L${with_directfb}/lib -ldirectfb -lfusion -ldirect -lpthread -ljpeg -lz -ldl]) |
443 |
- fi ], |
444 |
- [ AC_MSG_ERROR([cannot find directfb headers in ${with_directfb}/include]) ]) |
445 |
- fi |
446 |
fi |
447 |
+ |
448 |
+ |
449 |
|
450 |
dnl |
451 |
dnl GGI module |
452 |
|
453 |
|
454 |
|
455 |
1.1 src/patchsets/vlc/0.8.6c/180_all_faad.patch |
456 |
|
457 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/180_all_faad.patch?rev=1.1&view=markup |
458 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/180_all_faad.patch?rev=1.1&content-type=text/plain |
459 |
|
460 |
Index: 180_all_faad.patch |
461 |
=================================================================== |
462 |
Index: vlc-0.8.6-rc1/modules/codec/ffmpeg/ffmpeg.c |
463 |
=================================================================== |
464 |
--- vlc-0.8.6-rc1.orig/modules/codec/ffmpeg/ffmpeg.c |
465 |
+++ vlc-0.8.6-rc1/modules/codec/ffmpeg/ffmpeg.c |
466 |
@@ -238,14 +238,6 @@ static int OpenDecoder( vlc_object_t *p_ |
467 |
return VLC_EGENERIC; |
468 |
} |
469 |
|
470 |
- /* Bail out if buggy decoder */ |
471 |
- if( i_codec_id == CODEC_ID_AAC ) |
472 |
- { |
473 |
- msg_Dbg( p_dec, "refusing to use ffmpeg's (%s) decoder which is buggy", |
474 |
- psz_namecodec ); |
475 |
- return VLC_EGENERIC; |
476 |
- } |
477 |
- |
478 |
/* Initialization must be done before avcodec_find_decoder() */ |
479 |
E_(InitLibavcodec)(p_this); |
480 |
|
481 |
|
482 |
|
483 |
|
484 |
1.1 src/patchsets/vlc/0.8.6c/190_all_strict-aliasing.patch |
485 |
|
486 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/190_all_strict-aliasing.patch?rev=1.1&view=markup |
487 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/190_all_strict-aliasing.patch?rev=1.1&content-type=text/plain |
488 |
|
489 |
Index: 190_all_strict-aliasing.patch |
490 |
=================================================================== |
491 |
Index: vlc-0.8.6-rc1/configure.ac |
492 |
=================================================================== |
493 |
--- vlc-0.8.6-rc1.orig/configure.ac |
494 |
+++ vlc-0.8.6-rc1/configure.ac |
495 |
@@ -5310,6 +5310,16 @@ then |
496 |
fi |
497 |
|
498 |
|
499 |
+AC_CACHE_CHECK([if \$CXX accepts -fno-strict-aliasing], |
500 |
+ [ac_cv_cxx_fnostrictaliasing], |
501 |
+ [CXXFLAGS="${CXXFLAGS_save} -fno-strict-aliasing" |
502 |
+ AC_TRY_COMPILE([],,ac_cv_cxx_fnostrictaliasing=yes, |
503 |
+ ac_cv_cxx_fnostrictaliasing=no)]) |
504 |
+# wxWidgest has the bad behaviour of forcing breakages of strict aliasing |
505 |
+# rules all over, so pass this to force using -fno-strict-aliasing on it. |
506 |
+if test "${ac_cv_cxx_fnostrictaliasing}" = "yes"; then |
507 |
+ VLC_ADD_CXXFLAGS([wxwidgets skins2],-fno-strict-aliasing) |
508 |
+fi |
509 |
dnl |
510 |
dnl Plugin and builtin checks |
511 |
dnl |
512 |
Index: vlc-0.8.6-rc1/modules/demux/m3u.c |
513 |
=================================================================== |
514 |
--- vlc-0.8.6-rc1.orig/modules/demux/m3u.c |
515 |
+++ vlc-0.8.6-rc1/modules/demux/m3u.c |
516 |
@@ -127,7 +127,7 @@ static int Activate( vlc_object_t * p_th |
517 |
if( i_type != TYPE_M3U ) |
518 |
{ |
519 |
char *p_peek; |
520 |
- int i_size = stream_Peek( p_demux->s, (uint8_t **)&p_peek, MAX_LINE ); |
521 |
+ int i_size = stream_Peek( p_demux->s, &p_peek, MAX_LINE ); |
522 |
i_size -= sizeof("[Reference]") - 1; |
523 |
|
524 |
if( i_size > 0 ) |
525 |
Index: vlc-0.8.6-rc1/modules/demux/mkv.cpp |
526 |
=================================================================== |
527 |
--- vlc-0.8.6-rc1.orig/modules/demux/mkv.cpp |
528 |
+++ vlc-0.8.6-rc1/modules/demux/mkv.cpp |
529 |
@@ -5307,11 +5307,11 @@ bool matroska_segment_c::CompareSegmentU |
530 |
if ( p_item_a == NULL || p_item_b == NULL ) |
531 |
return false; |
532 |
|
533 |
- EbmlBinary * p_itema = (EbmlBinary *)(p_item_a->p_segment_uid); |
534 |
+ EbmlBinary * p_itema = dynamic_cast<EbmlBinary *>(p_item_a->p_segment_uid); |
535 |
if ( p_item_b->p_prev_segment_uid != NULL && *p_itema == *p_item_b->p_prev_segment_uid ) |
536 |
return true; |
537 |
|
538 |
- p_itema = (EbmlBinary *)(&p_item_a->p_next_segment_uid); |
539 |
+ p_itema = dynamic_cast<EbmlBinary *>(p_item_a->p_next_segment_uid); |
540 |
if ( p_item_b->p_segment_uid != NULL && *p_itema == *p_item_b->p_segment_uid ) |
541 |
return true; |
542 |
|
543 |
Index: vlc-0.8.6-rc1/modules/demux/mp4/libmp4.c |
544 |
=================================================================== |
545 |
--- vlc-0.8.6-rc1.orig/modules/demux/mp4/libmp4.c |
546 |
+++ vlc-0.8.6-rc1/modules/demux/mp4/libmp4.c |
547 |
@@ -1138,8 +1138,15 @@ static int MP4_ReadBox_sample_soun( stre |
548 |
double f_sample_rate; |
549 |
uint32_t i_channel; |
550 |
|
551 |
+ union { |
552 |
+ double xdouble; |
553 |
+ int64_t x64; |
554 |
+ } u; |
555 |
+ |
556 |
MP4_GET4BYTES( p_box->data.p_sample_soun->i_sample_per_packet ); |
557 |
- MP4_GET8BYTES( (*(int64_t *)&f_sample_rate) ); |
558 |
+ MP4_GET8BYTES( u.x64 ); |
559 |
+ |
560 |
+ f_sample_rate = u.xdouble; |
561 |
|
562 |
msg_Dbg( p_stream, "read box: %f Hz", f_sample_rate ); |
563 |
p_box->data.p_sample_soun->i_sampleratehi = (int)f_sample_rate % 65536; |
564 |
|
565 |
|
566 |
|
567 |
1.1 src/patchsets/vlc/0.8.6c/200_all_nonpermissive.patch |
568 |
|
569 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/200_all_nonpermissive.patch?rev=1.1&view=markup |
570 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/200_all_nonpermissive.patch?rev=1.1&content-type=text/plain |
571 |
|
572 |
Index: 200_all_nonpermissive.patch |
573 |
=================================================================== |
574 |
Index: vlc-0.8.6-rc1/configure.ac |
575 |
=================================================================== |
576 |
--- vlc-0.8.6-rc1.orig/configure.ac |
577 |
+++ vlc-0.8.6-rc1/configure.ac |
578 |
@@ -4561,17 +4561,6 @@ then |
579 |
AC_MSG_ERROR([Your development package for wxWidgets is too old, you need at least version 2.3.0. Please upgrade and try again. Alternatively you can also configure with --disable-wxwidgets.]) |
580 |
fi |
581 |
AC_LANG_PUSH(C++) |
582 |
- # Turn this error: |
583 |
- # playlist.cpp:1351: error: ISO C++ forbids cast to non-reference type |
584 |
- # into a warning. However better would be to fix playlist.cpp |
585 |
- AC_CACHE_CHECK([if \$CXX accepts -fpermissive], |
586 |
- [ac_cv_cxx_fpermissive], |
587 |
- [CXXFLAGS="${CXXFLAGS_save} -fpermissive" |
588 |
- AC_TRY_COMPILE([],,ac_cv_cxx_fpermissive=yes, |
589 |
- ac_cv_cxx_fpermissive=no)]) |
590 |
- if test "${ac_cv_cxx_fpermissive}" = "yes"; then |
591 |
- VLC_ADD_CXXFLAGS([wxwidgets],-fpermissive) |
592 |
- fi |
593 |
VLC_ADD_LDFLAGS([wxwidgets],[`${WX_CONFIG} --libs`]) |
594 |
VLC_ADD_CXXFLAGS([wxwidgets],[`${WX_CONFIG} --cxxflags`]) |
595 |
if ${WX_CONFIG} --unicode |
596 |
Index: vlc-0.8.6-rc1/include/vlc_common.h |
597 |
=================================================================== |
598 |
--- vlc-0.8.6-rc1.orig/include/vlc_common.h |
599 |
+++ vlc-0.8.6-rc1/include/vlc_common.h |
600 |
@@ -599,6 +599,29 @@ static int64_t GCD( int64_t a, int64_t b |
601 |
} \ |
602 |
while( 0 ) |
603 |
|
604 |
+/* Special version for C++ code */ |
605 |
+#define REMOVE_ELEM_PP( type_p_ar, p_ar, i_oldsize, i_pos ) \ |
606 |
+ do \ |
607 |
+ { \ |
608 |
+ if( (i_oldsize) - (i_pos) - 1 ) \ |
609 |
+ { \ |
610 |
+ memmove( (p_ar) + (i_pos), \ |
611 |
+ (p_ar) + (i_pos) + 1, \ |
612 |
+ ((i_oldsize) - (i_pos) - 1) * sizeof( *(p_ar) ) ); \ |
613 |
+ } \ |
614 |
+ if( i_oldsize > 1 ) \ |
615 |
+ { \ |
616 |
+ (p_ar) = (type_p_ar)realloc( p_ar, ((i_oldsize) - 1) * sizeof( *(p_ar) ) ); \ |
617 |
+ } \ |
618 |
+ else \ |
619 |
+ { \ |
620 |
+ free( p_ar ); \ |
621 |
+ (p_ar) = NULL; \ |
622 |
+ } \ |
623 |
+ (i_oldsize)--; \ |
624 |
+ } \ |
625 |
+ while( 0 ) |
626 |
+ |
627 |
|
628 |
#define TAB_APPEND( count, tab, p ) \ |
629 |
if( (count) > 0 ) \ |
630 |
Index: vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/interaction.cpp |
631 |
=================================================================== |
632 |
--- vlc-0.8.6-rc1.orig/modules/gui/wxwidgets/dialogs/interaction.cpp |
633 |
+++ vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/interaction.cpp |
634 |
@@ -245,7 +245,7 @@ void InteractionDialog::OnClear( wxComma |
635 |
user_widget_t *p_widget = p_dialog->pp_widgets[i]; |
636 |
FREE( p_widget->psz_text ); |
637 |
FREE( p_widget->val.psz_string ); |
638 |
- REMOVE_ELEM( p_dialog->pp_widgets, p_dialog->i_widgets, i ); |
639 |
+ REMOVE_ELEM_PP( user_widget_t **, p_dialog->pp_widgets, p_dialog->i_widgets, i ); |
640 |
free( p_widget ); |
641 |
} |
642 |
widgets_panel->DestroyChildren(); |
643 |
Index: vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/open.cpp |
644 |
=================================================================== |
645 |
--- vlc-0.8.6-rc1.orig/modules/gui/wxwidgets/dialogs/open.cpp |
646 |
+++ vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/open.cpp |
647 |
@@ -1825,14 +1825,14 @@ void OpenDialog::OnSubsFileSettings( wxC |
648 |
} |
649 |
if( subsfile_dialog->align_combo ) |
650 |
{ |
651 |
- subsfile_mrl.Add( wxString::Format(wxT("subsdec-align=%i"), |
652 |
- (int)subsfile_dialog->align_combo->GetClientData( |
653 |
+ subsfile_mrl.Add( wxString::Format(wxT("subsdec-align=%li"), |
654 |
+ (long)subsfile_dialog->align_combo->GetClientData( |
655 |
subsfile_dialog->align_combo->GetSelection()) ) ); |
656 |
} |
657 |
if( subsfile_dialog->size_combo ) |
658 |
{ |
659 |
- subsfile_mrl.Add( wxString::Format( wxT("freetype-rel-fontsize=%i"), |
660 |
- (int)subsfile_dialog->size_combo->GetClientData( |
661 |
+ subsfile_mrl.Add( wxString::Format( wxT("freetype-rel-fontsize=%li"), |
662 |
+ (long)subsfile_dialog->size_combo->GetClientData( |
663 |
subsfile_dialog->size_combo->GetSelection()) ) ); |
664 |
} |
665 |
subsfile_mrl.Add( wxString::Format( wxT("sub-fps=%i"), |
666 |
Index: vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp |
667 |
=================================================================== |
668 |
--- vlc-0.8.6-rc1.orig/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp |
669 |
+++ vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp |
670 |
@@ -249,7 +249,7 @@ int KeyConfigControl::GetIntValue() |
671 |
int selected = combo->GetSelection(); |
672 |
if( selected != -1 ) |
673 |
{ |
674 |
- result |= (int)combo->GetClientData( selected ); |
675 |
+ result |= (long)combo->GetClientData( selected ); |
676 |
} |
677 |
return result; |
678 |
} |
679 |
@@ -873,7 +873,7 @@ int IntegerListConfigControl::GetIntValu |
680 |
int selected = combo->GetSelection(); |
681 |
if( selected != -1 ) |
682 |
{ |
683 |
- return (int)combo->GetClientData( selected ); |
684 |
+ return static_cast<int>((long)combo->GetClientData( selected )); |
685 |
} |
686 |
return -1; |
687 |
} |
688 |
Index: vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/wizard.cpp |
689 |
=================================================================== |
690 |
--- vlc-0.8.6-rc1.orig/modules/gui/wxwidgets/dialogs/wizard.cpp |
691 |
+++ vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/wizard.cpp |
692 |
@@ -208,7 +208,7 @@ class wizInputPage : public wxWizardPage |
693 |
{ |
694 |
public: |
695 |
wizInputPage( wxWizard *, wxWizardPage *, intf_thread_t *); |
696 |
- wizInputPage::~wizInputPage(); |
697 |
+ ~wizInputPage(); |
698 |
void OnWizardPageChanging(wxWizardEvent& event); |
699 |
void OnInputChange( wxCommandEvent& event ); |
700 |
void OnEnablePartial(wxCommandEvent& event); |
701 |
@@ -262,7 +262,7 @@ class wizTranscodeCodecPage : public wxW |
702 |
public: |
703 |
wizTranscodeCodecPage( wxWizard *parent, wxWizardPage *next); |
704 |
~wizTranscodeCodecPage(); |
705 |
- void wizTranscodeCodecPage::OnWizardPageChanging(wxWizardEvent& event); |
706 |
+ void OnWizardPageChanging(wxWizardEvent& event); |
707 |
virtual wxWizardPage *GetPrev() const; |
708 |
virtual wxWizardPage *GetNext() const; |
709 |
void SetPrev( wxWizardPage *page); |
710 |
@@ -339,7 +339,7 @@ class wizEncapPage : public wxWizardPage |
711 |
{ |
712 |
public: |
713 |
wizEncapPage( wxWizard *parent); |
714 |
- wizEncapPage::~wizEncapPage(); |
715 |
+ ~wizEncapPage(); |
716 |
void OnWizardPageChanging(wxWizardEvent& event); |
717 |
virtual wxWizardPage *GetPrev() const; |
718 |
virtual wxWizardPage *GetNext() const; |
719 |
@@ -387,7 +387,7 @@ public: |
720 |
void OnWizardPageChanging( wxWizardEvent& event ); |
721 |
protected: |
722 |
DECLARE_EVENT_TABLE() |
723 |
- void wizTranscodeExtraPage::OnSelectFile(wxCommandEvent&); |
724 |
+ void OnSelectFile(wxCommandEvent&); |
725 |
wxTextCtrl *file_text; |
726 |
WizardDialog *p_parent; |
727 |
wxWizardPage *p_prev; |
728 |
Index: vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/updatevlc.cpp |
729 |
=================================================================== |
730 |
--- vlc-0.8.6-rc1.orig/modules/gui/wxwidgets/dialogs/updatevlc.cpp |
731 |
+++ vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/updatevlc.cpp |
732 |
@@ -200,7 +200,7 @@ void UpdateVLC::OnChooseItem( wxListEven |
733 |
wxSAVE | wxOVERWRITE_PROMPT ); |
734 |
if( filedialog->ShowModal() == wxID_OK ) |
735 |
{ |
736 |
- update_download( p_uit, filedialog->GetPath().mb_str(wxConvUTF8) ); |
737 |
+ update_download( p_uit, const_cast<char*>((const char*)(filedialog->GetPath().mb_str(wxConvUTF8))) ); |
738 |
} |
739 |
update_iterator_Delete( p_uit ); |
740 |
delete filedialog; |
741 |
|
742 |
|
743 |
|
744 |
1.1 src/patchsets/vlc/0.8.6c/220_all_firefox.patch |
745 |
|
746 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/220_all_firefox.patch?rev=1.1&view=markup |
747 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/220_all_firefox.patch?rev=1.1&content-type=text/plain |
748 |
|
749 |
Index: 220_all_firefox.patch |
750 |
=================================================================== |
751 |
Index: vlc-0.8.6-test2/mozilla/vlcshell.cpp |
752 |
=================================================================== |
753 |
--- vlc-0.8.6-test2.orig/mozilla/vlcshell.cpp |
754 |
+++ vlc-0.8.6-test2/mozilla/vlcshell.cpp |
755 |
@@ -35,10 +35,8 @@ |
756 |
# include <mozilla-config.h> |
757 |
#endif |
758 |
|
759 |
-/* This is from mozilla java, do we really need it? */ |
760 |
-#if 0 |
761 |
+/* This is from mozilla java, needed for jref type */ |
762 |
#include <jri.h> |
763 |
-#endif |
764 |
|
765 |
#include "vlcplugin.h" |
766 |
|
767 |
|
768 |
|
769 |
|
770 |
1.1 src/patchsets/vlc/0.8.6c/230_all_libcdio-0.78.2.patch |
771 |
|
772 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/230_all_libcdio-0.78.2.patch?rev=1.1&view=markup |
773 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/230_all_libcdio-0.78.2.patch?rev=1.1&content-type=text/plain |
774 |
|
775 |
Index: 230_all_libcdio-0.78.2.patch |
776 |
=================================================================== |
777 |
diff -ur vlc-0.8.5-orig/modules/access/cdda/access.c vlc-0.8.5/modules/access/cdda/access.c |
778 |
--- vlc-0.8.5-orig/modules/access/cdda/access.c 2006-05-06 11:52:18.000000000 -0400 |
779 |
+++ vlc-0.8.5/modules/access/cdda/access.c 2006-11-03 17:00:54.000000000 -0500 |
780 |
@@ -737,14 +737,14 @@ |
781 |
|
782 |
char *psz_paranoia = config_GetPsz( p_access, |
783 |
MODULE_STRING "-paranoia" ); |
784 |
- p_cdda->e_paranoia = paranoia_none; |
785 |
+ p_cdda->e_paranoia = PARANOIA_MODE_DISABLE; |
786 |
if( psz_paranoia && *psz_paranoia ) |
787 |
{ |
788 |
|
789 |
if( !strncmp( psz_paranoia, "full", strlen("full") ) ) |
790 |
- p_cdda->e_paranoia = paranoia_full; |
791 |
+ p_cdda->e_paranoia = PARANOIA_MODE_FULL; |
792 |
else if( !strncmp( psz_paranoia, "overlap", strlen("overlap") ) ) |
793 |
- p_cdda->e_paranoia = paranoia_overlap; |
794 |
+ p_cdda->e_paranoia = PARANOIA_MODE_OVERLAP; |
795 |
|
796 |
/* Use CD Paranoia? */ |
797 |
if ( p_cdda->e_paranoia ) { |
798 |
@@ -755,7 +755,7 @@ |
799 |
if ( 0 != cdio_cddap_open(p_cdda->paranoia_cd) ) { |
800 |
msg_Warn( p_cdda_input, "unable to get paranoia support - " |
801 |
"continuing without it." ); |
802 |
- p_cdda->e_paranoia = paranoia_none; |
803 |
+ p_cdda->e_paranoia = PARANOIA_MODE_DISABLE; |
804 |
} else { |
805 |
p_cdda->paranoia = cdio_paranoia_init(p_cdda->paranoia_cd); |
806 |
cdio_paranoia_seek(p_cdda->paranoia, p_cdda->i_lsn, SEEK_SET); |
807 |
@@ -763,7 +763,7 @@ |
808 |
/* Set reading mode for full or overlap paranoia, |
809 |
but allow skipping sectors. */ |
810 |
cdio_paranoia_modeset(p_cdda->paranoia, |
811 |
- paranoia_full == p_cdda->e_paranoia ? |
812 |
+ PARANOIA_MODE_FULL == p_cdda->e_paranoia ? |
813 |
PARANOIA_MODE_FULL^PARANOIA_MODE_NEVERSKIP : |
814 |
PARANOIA_MODE_OVERLAP^PARANOIA_MODE_NEVERSKIP |
815 |
); |
816 |
diff -ur vlc-0.8.5-orig/modules/access/cdda/cdda.h vlc-0.8.5/modules/access/cdda/cdda.h |
817 |
--- vlc-0.8.5-orig/modules/access/cdda/cdda.h 2006-05-06 11:52:18.000000000 -0400 |
818 |
+++ vlc-0.8.5/modules/access/cdda/cdda.h 2006-11-03 17:00:54.000000000 -0500 |
819 |
@@ -71,12 +71,13 @@ |
820 |
#define CdIo_t CdIo |
821 |
#endif |
822 |
|
823 |
+#if LIBCDIO_VERSION_NUM < 78 |
824 |
typedef enum { |
825 |
- paranoia_none = 0, /* Note: We make use of 0 as being the same as false */ |
826 |
- paranoia_overlap = 1, |
827 |
- paranoia_full = 2 |
828 |
+ PARANOIA_MODE_DISABLE = 0x00, /* Note: We make use of 0 as being the same as false */ |
829 |
+ PARANOIA_MODE_OVERLAP = 0x04, |
830 |
+ PARANOIA_MODE_FULL = 0xff |
831 |
} paranoia_mode_t; |
832 |
- |
833 |
+#endif |
834 |
|
835 |
/***************************************************************************** |
836 |
* cdda_data_t: CD audio information |
837 |
|
838 |
|
839 |
|
840 |
1.1 src/patchsets/vlc/0.8.6c/250_all_livepic.patch |
841 |
|
842 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/250_all_livepic.patch?rev=1.1&view=markup |
843 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/250_all_livepic.patch?rev=1.1&content-type=text/plain |
844 |
|
845 |
Index: 250_all_livepic.patch |
846 |
=================================================================== |
847 |
Starting from version 2006.12.08, Gentoo installs live555 as a system |
848 |
library properly. For policy we also build a shared version of it that |
849 |
uses PIC. |
850 |
For this reason, we can reasonably force VLC to create a Plugin for |
851 |
live555 rather than a builtin.Index: vlc-0.8.6/configure.ac |
852 |
=================================================================== |
853 |
Index: vlc-0.8.6_p18636/configure.ac |
854 |
=================================================================== |
855 |
--- vlc-0.8.6_p18636.orig/configure.ac |
856 |
+++ vlc-0.8.6_p18636/configure.ac |
857 |
@@ -1558,9 +1558,9 @@ if test "${enable_live555}" = "yes"; the |
858 |
], [ |
859 |
AC_CHECK_LIB(liveMedia, main, [ |
860 |
# We only have -lliveMedia, do builtins |
861 |
- VLC_ADD_BUILTINS([live555]) |
862 |
+ VLC_ADD_PLUGINS([live555]) |
863 |
VLC_ADD_LDFLAGS([live555], [-lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment]) |
864 |
- ]) |
865 |
+ ], ,[-lgroupsock -lBasicUsageEnvironment -lUsageEnvironment]) |
866 |
]) |
867 |
if test "${SYS}" = "mingw32"; then |
868 |
# add ws2_32 for closesocket, select, recv |
869 |
|
870 |
|
871 |
|
872 |
1.1 src/patchsets/vlc/0.8.6c/290_all_altivec.patch |
873 |
|
874 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/290_all_altivec.patch?rev=1.1&view=markup |
875 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/290_all_altivec.patch?rev=1.1&content-type=text/plain |
876 |
|
877 |
Index: 290_all_altivec.patch |
878 |
=================================================================== |
879 |
This really disables altivec if not wanted. |
880 |
Patch from xtophe: https://trac.videolan.org/vlc/ticket/1055 |
881 |
https://bugs.gentoo.org/show_bug.cgi?id=158126 |
882 |
Causes a compile failure because altivec.h is found and -maltivec not appended to cflags |
883 |
updated to try to fix this |
884 |
=================================================================== |
885 |
Index: vlc-0.8.6_p18636/configure.ac |
886 |
=================================================================== |
887 |
--- vlc-0.8.6_p18636.orig/configure.ac |
888 |
+++ vlc-0.8.6_p18636/configure.ac |
889 |
@@ -1301,10 +1301,12 @@ AC_CACHE_CHECK([if \$CC groks AltiVec C |
890 |
if test "${ac_cv_c_altivec}" != "no"; then |
891 |
CPPFLAGS="${CPPFLAGS_save} ${ac_cv_c_altivec}" |
892 |
fi |
893 |
+if test "${enable_altivec}" != "no"; then |
894 |
AC_CHECK_HEADERS(altivec.h) |
895 |
+fi |
896 |
CPPFLAGS="${CPPFLAGS_save}" |
897 |
|
898 |
-if test "${ac_cv_c_altivec}" != "no"; then |
899 |
+if test "${ac_cv_c_altivec}" != "no" -a "${enable_altivec}" != "no"; then |
900 |
AC_DEFINE(CAN_COMPILE_C_ALTIVEC, 1, Define if your compiler groks C AltiVec extensions.) |
901 |
VLC_ADD_CFLAGS([vlc],[${ac_cv_c_altivec}]) |
902 |
VLC_ADD_CFLAGS([idctaltivec motionaltivec],[${ac_cv_c_altivec}]) |
903 |
|
904 |
|
905 |
|
906 |
1.1 src/patchsets/vlc/0.8.6c/330_all_libdca.patch |
907 |
|
908 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/330_all_libdca.patch?rev=1.1&view=markup |
909 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/330_all_libdca.patch?rev=1.1&content-type=text/plain |
910 |
|
911 |
Index: 330_all_libdca.patch |
912 |
=================================================================== |
913 |
Index: vlc-0.8.6_p18636/configure.ac |
914 |
=================================================================== |
915 |
--- vlc-0.8.6_p18636.orig/configure.ac |
916 |
+++ vlc-0.8.6_p18636/configure.ac |
917 |
@@ -3064,9 +3064,10 @@ if test "${enable_dts}" != "no"; then |
918 |
VLC_ADD_PLUGINS([dtstofloat32]) |
919 |
VLC_ADD_LDFLAGS([dtstofloat32],[-ldts_pic]) |
920 |
],[ |
921 |
- AC_CHECK_LIB(dts, dts_free, [ |
922 |
+ PKG_CHECK_MODULES([DCA], [libdts >= 0.0.2], [ |
923 |
VLC_ADD_PLUGINS([dtstofloat32]) |
924 |
- VLC_ADD_LDFLAGS([dtstofloat32],[-ldts]) |
925 |
+ VLC_ADD_CPPFLAGS([dtstofloat32], [${DCA_CFLAGS}]) |
926 |
+ VLC_ADD_LDFLAGS([dtstofloat32],[${DCA_LIBS}]) |
927 |
],[ |
928 |
if test "${enable_dts}" = "yes"; then |
929 |
AC_MSG_ERROR([Could not find libdts on your system: you may get it from http://www.videolan.org/dtsdec.html]) |
930 |
|
931 |
|
932 |
|
933 |
1.1 src/patchsets/vlc/0.8.6c/series |
934 |
|
935 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/series?rev=1.1&view=markup |
936 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6c/series?rev=1.1&content-type=text/plain |
937 |
|
938 |
Index: series |
939 |
=================================================================== |
940 |
000_all_glide.patch |
941 |
010_all_freetype-font.patch |
942 |
110_all_dtspic.patch |
943 |
130_all_textrels.patch |
944 |
140_all_directfb.patch |
945 |
180_all_faad.patch |
946 |
190_all_strict-aliasing.patch |
947 |
200_all_nonpermissive.patch |
948 |
220_all_firefox.patch |
949 |
230_all_libcdio-0.78.2.patch |
950 |
250_all_livepic.patch |
951 |
290_all_altivec.patch |
952 |
330_all_libdca.patch |
953 |
|
954 |
|
955 |
|
956 |
-- |
957 |
gentoo-commits@g.o mailing list |