2008-07-29 23:46:06 -07:00
|
|
|
# Usage: ./update.sh <oggplay_src_directory>
|
|
|
|
#
|
|
|
|
# Copies the needed files from a directory containing the original
|
|
|
|
# liboggplay source that we need for the Mozilla HTML5 media support.
|
2009-04-03 05:56:22 -07:00
|
|
|
sed 's/#define ATTRIBUTE_ALIGNED_MAX .*//g' $1/config.h >./src/liboggplay/config.h
|
2008-08-12 23:23:42 -07:00
|
|
|
echo "#undef HAVE_GLUT" >>./src/liboggplay/config.h
|
2008-07-29 23:46:06 -07:00
|
|
|
cp $1/include/oggplay/oggplay_callback_info.h ./include/oggplay/oggplay_callback_info.h
|
|
|
|
cp $1/include/oggplay/oggplay_query.h ./include/oggplay/oggplay_query.h
|
|
|
|
cp $1/include/oggplay/oggplay_seek.h ./include/oggplay/oggplay_seek.h
|
|
|
|
cp $1/include/oggplay/oggplay_enums.h ./include/oggplay/oggplay_enums.h
|
|
|
|
cp $1/include/oggplay/oggplay_tools.h ./include/oggplay/oggplay_tools.h
|
|
|
|
cp $1/win32/config_win32.h ./include/oggplay/config_win32.h
|
|
|
|
cp $1/include/oggplay/oggplay.h ./include/oggplay/oggplay.h
|
|
|
|
cp $1/include/oggplay/oggplay_reader.h ./include/oggplay/oggplay_reader.h
|
|
|
|
cp $1/README ./README
|
2008-08-19 00:39:03 -07:00
|
|
|
cp $1/COPYING ./COPYING
|
2008-07-29 23:46:06 -07:00
|
|
|
cp $1/src/liboggplay/oggplay_buffer.c ./src/liboggplay/oggplay_buffer.c
|
|
|
|
cp $1/src/liboggplay/oggplay_tcp_reader.h ./src/liboggplay/oggplay_tcp_reader.h
|
|
|
|
cp $1/src/liboggplay/oggplay_callback_info.c ./src/liboggplay/oggplay_callback_info.c
|
|
|
|
cp $1/src/liboggplay/oggplay_tools.c ./src/liboggplay/oggplay_tools.c
|
|
|
|
cp $1/src/liboggplay/oggplay_yuv2rgb.c ./src/liboggplay/oggplay_yuv2rgb.c
|
|
|
|
cp $1/src/liboggplay/oggplay_seek.c ./src/liboggplay/oggplay_seek.c
|
|
|
|
cp $1/src/liboggplay/oggplay_buffer.h ./src/liboggplay/oggplay_buffer.h
|
|
|
|
cp $1/src/liboggplay/oggplay_file_reader.c ./src/liboggplay/oggplay_file_reader.c
|
|
|
|
cp $1/src/liboggplay/oggplay_data.h ./src/liboggplay/oggplay_data.h
|
|
|
|
cp $1/src/liboggplay/oggplay_callback.c ./src/liboggplay/oggplay_callback.c
|
|
|
|
cp $1/src/liboggplay/oggplay_file_reader.h ./src/liboggplay/oggplay_file_reader.h
|
|
|
|
cp $1/src/liboggplay/std_semaphore.h ./src/liboggplay/std_semaphore.h
|
|
|
|
cp $1/src/liboggplay/oggplay.c ./src/liboggplay/oggplay.c
|
|
|
|
cp $1/src/liboggplay/oggplay_callback.h ./src/liboggplay/oggplay_callback.h
|
|
|
|
cp $1/src/liboggplay/oggplay_tcp_reader.c ./src/liboggplay/oggplay_tcp_reader.c
|
|
|
|
cp $1/src/liboggplay/oggplay_query.c ./src/liboggplay/oggplay_query.c
|
2009-04-03 05:56:22 -07:00
|
|
|
cp $1/src/liboggplay/cpu.c ./src/liboggplay/cpu.c
|
|
|
|
cp $1/src/liboggplay/cpu.h ./src/liboggplay/cpu.h
|
|
|
|
cp $1/src/liboggplay/oggplay_yuv2rgb_template.h ./src/liboggplay/oggplay_yuv2rgb_template.h
|
2009-09-23 21:22:23 -07:00
|
|
|
cp $1/src/liboggplay/x86/oggplay_yuv2rgb_x86.c ./src/liboggplay/x86/oggplay_yuv2rgb_x86.c
|
|
|
|
cp $1/src/liboggplay/x86/yuv2rgb_x86.h ./src/liboggplay/x86/yuv2rgb_x86.h
|
|
|
|
cp $1/src/liboggplay/x86/yuv2rgb_x86_vs.h ./src/liboggplay/x86/yuv2rgb_x86_vs.h
|
2009-04-03 05:56:22 -07:00
|
|
|
sed 's/#include "config_win32.h"//g' $1/src/liboggplay/oggplay_private.h >./src/liboggplay/oggplay_private.h1
|
|
|
|
sed 's/#include <config.h>/#ifdef WIN32\
|
|
|
|
#include "config_win32.h"\
|
|
|
|
#else\
|
|
|
|
#include <config.h>\
|
|
|
|
#endif/g' ./src/liboggplay/oggplay_private.h1 >./src/liboggplay/oggplay_private.h
|
2008-07-29 23:46:06 -07:00
|
|
|
rm ./src/liboggplay/oggplay_private.h1
|
|
|
|
sed s/\#ifdef\ HAVE_INTTYPES_H/\#if\ HAVE_INTTYPES_H/g $1/src/liboggplay/oggplay_data.c >./src/liboggplay/oggplay_data.c
|
2009-04-03 23:21:15 -07:00
|
|
|
patch -p3 < endian.patch
|
2009-05-17 15:24:04 -07:00
|
|
|
patch -p3 < bug481921.patch
|
2009-05-18 17:23:52 -07:00
|
|
|
patch -p3 < aspect_ratio.patch
|
2009-09-01 15:33:43 -07:00
|
|
|
patch -p3 < bug493678.patch
|
2009-05-19 20:49:01 -07:00
|
|
|
patch -p3 < seek_to_key_frame.patch
|
2009-09-01 15:33:43 -07:00
|
|
|
patch -p3 < bug487519.patch
|
2009-09-23 21:22:23 -07:00
|
|
|
rm -f src/liboggplay/os2_semaphore.c
|
|
|
|
rm -f src/liboggplay/os2_semaphore.h
|
2009-07-23 00:37:01 -07:00
|
|
|
patch -p3 < oggplay_os2.patch
|
2009-06-05 02:00:21 -07:00
|
|
|
patch -p3 < bug496529.patch
|
2009-09-01 15:33:43 -07:00
|
|
|
patch -p3 < bug500311.patch
|
2009-09-07 14:41:56 -07:00
|
|
|
patch -p3 < faster_seek.patch
|
2009-09-23 21:22:23 -07:00
|
|
|
patch -p3 < fix-17ef4ca82df28.patch
|
|
|
|
patch -p3 < handle-read-errors.patch
|
2009-09-28 17:59:00 -07:00
|
|
|
patch -p3 < fishsound_reset.patch
|
2009-10-02 21:08:12 -07:00
|
|
|
patch -p3 < bug504843.patch
|
2009-10-13 20:35:59 -07:00
|
|
|
patch -p3 < bug520493.patch
|
2009-10-14 18:27:49 -07:00
|
|
|
patch -p3 < bug515217.patch
|