1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libtheora/update.sh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,86 @@ 1.4 +# Usage: ./update.sh <theora_src_directory> 1.5 +# 1.6 +# Copies the needed files from a directory containing the original 1.7 +# libtheora source that we need for the Mozilla HTML5 media support. 1.8 +sed \ 1.9 + -e s/\#define\ OC_X86_ASM//g \ 1.10 + -e s/\#define\ OC_X86_64_ASM//g \ 1.11 + -e s/\#define\ OC_ARM_ASM_EDSP\ 1//g \ 1.12 + -e s/\#define\ OC_ARM_ASM_MEDIA\ 1//g \ 1.13 + -e s/\#define\ OC_ARM_ASM_NEON\ 1//g \ 1.14 + -e s/\#define\ OC_ARM_ASM//g \ 1.15 + -e s/\#define\ THEORA_DISABLE_ENCODE//g \ 1.16 + $1/config.h > lib/config.h 1.17 +sed \ 1.18 + -e s/@HAVE_ARM_ASM_EDSP@/1/g \ 1.19 + -e s/@HAVE_ARM_ASM_MEDIA@/1/g \ 1.20 + -e s/@HAVE_ARM_ASM_NEON@/1/g \ 1.21 + $1/lib/arm/armopts.s.in > lib/arm/armopts.s 1.22 +cp $1/LICENSE ./LICENSE 1.23 +cp $1/CHANGES ./CHANGES 1.24 +cp $1/COPYING ./COPYING 1.25 +cp $1/README ./README 1.26 +cp $1/AUTHORS ./AUTHORS 1.27 +cp $1/lib/apiwrapper.c ./lib/ 1.28 +cp $1/lib/apiwrapper.h ./lib/ 1.29 +cp $1/lib/bitpack.c ./lib/ 1.30 +cp $1/lib/bitpack.h ./lib/ 1.31 +cp $1/lib/dct.h ./lib/ 1.32 +cp $1/lib/decapiwrapper.c ./lib/ 1.33 +cp $1/lib/decinfo.c ./lib/ 1.34 +cp $1/lib/decint.h ./lib/ 1.35 +cp $1/lib/decode.c ./lib/ 1.36 +cp $1/lib/dequant.c ./lib/ 1.37 +cp $1/lib/dequant.h ./lib/ 1.38 +cp $1/lib/fragment.c ./lib/ 1.39 +cp $1/lib/huffdec.c ./lib/ 1.40 +cp $1/lib/huffdec.h ./lib/ 1.41 +cp $1/lib/huffman.h ./lib/ 1.42 +cp $1/lib/idct.c ./lib/ 1.43 +cp $1/lib/info.c ./lib/ 1.44 +cp $1/lib/internal.c ./lib/ 1.45 +cp $1/lib/internal.h ./lib/ 1.46 +cp $1/lib/mathops.h ./lib/ 1.47 +cp $1/lib/ocintrin.h ./lib/ 1.48 +cp $1/lib/quant.c ./lib/ 1.49 +cp $1/lib/quant.h ./lib/ 1.50 +cp $1/lib/state.c ./lib/ 1.51 +cp $1/lib/state.h ./lib/ 1.52 +cp $1/lib/arm/arm2gnu.pl ./lib/arm/ 1.53 +cp $1/lib/arm/armbits.h ./lib/arm/ 1.54 +cp $1/lib/arm/armbits.s ./lib/arm/ 1.55 +cp $1/lib/arm/armcpu.c ./lib/arm/ 1.56 +cp $1/lib/arm/armcpu.h ./lib/arm/ 1.57 +cp $1/lib/arm/armfrag.s ./lib/arm/ 1.58 +cp $1/lib/arm/armidct.s ./lib/arm/ 1.59 +cp $1/lib/arm/armint.h ./lib/arm/ 1.60 +cp $1/lib/arm/armloop.s ./lib/arm/ 1.61 +cp $1/lib/arm/armstate.c ./lib/arm/ 1.62 +cp $1/lib/x86/mmxfrag.c ./lib/x86/ 1.63 +cp $1/lib/x86/mmxidct.c ./lib/x86/ 1.64 +cp $1/lib/x86/mmxloop.h ./lib/x86/ 1.65 +cp $1/lib/x86/mmxstate.c ./lib/x86/ 1.66 +cp $1/lib/x86/sse2idct.c ./lib/x86/ 1.67 +cp $1/lib/x86/sse2trans.h ./lib/x86/ 1.68 +cp $1/lib/x86/x86cpu.c ./lib/x86/ 1.69 +cp $1/lib/x86/x86cpu.h ./lib/x86/ 1.70 +cp $1/lib/x86/x86int.h ./lib/x86/ 1.71 +cp $1/lib/x86/x86state.c ./lib/x86/ 1.72 +cp $1/lib/x86_vc/mmxfrag.c ./lib/x86_vc/ 1.73 +cp $1/lib/x86_vc/mmxidct.c ./lib/x86_vc/ 1.74 +cp $1/lib/x86_vc/mmxloop.h ./lib/x86_vc/ 1.75 +cp $1/lib/x86_vc/mmxstate.c ./lib/x86_vc/ 1.76 +cp $1/lib/x86_vc/x86cpu.c ./lib/x86_vc/ 1.77 +cp $1/lib/x86_vc/x86cpu.h ./lib/x86_vc/ 1.78 +cp $1/lib/x86_vc/x86int.h ./lib/x86_vc/ 1.79 +cp $1/lib/x86_vc/x86state.c ./lib/x86_vc/ 1.80 +cp $1/include/theora/theora.h ./include/theora/theora.h 1.81 +cp $1/include/theora/theoradec.h ./include/theora/theoradec.h 1.82 +cp $1/include/theora/theoraenc.h ./include/theora/theoraenc.h 1.83 +cp $1/include/theora/codec.h ./include/theora/codec.h 1.84 +patch -p3 < ./bug625773-r17780.patch 1.85 +patch -p3 < ./bug468275-r18219.patch 1.86 +patch -p3 < ./bug752139-r18031.patch 1.87 +patch -p3 < ./bug752668-r18268.patch 1.88 +patch -p3 < ./bug703135.patch 1.89 +patch -p3 < ./bug920992.patch