media/libtheora/update.sh

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 # Usage: ./update.sh <theora_src_directory>
michael@0 2 #
michael@0 3 # Copies the needed files from a directory containing the original
michael@0 4 # libtheora source that we need for the Mozilla HTML5 media support.
michael@0 5 sed \
michael@0 6 -e s/\#define\ OC_X86_ASM//g \
michael@0 7 -e s/\#define\ OC_X86_64_ASM//g \
michael@0 8 -e s/\#define\ OC_ARM_ASM_EDSP\ 1//g \
michael@0 9 -e s/\#define\ OC_ARM_ASM_MEDIA\ 1//g \
michael@0 10 -e s/\#define\ OC_ARM_ASM_NEON\ 1//g \
michael@0 11 -e s/\#define\ OC_ARM_ASM//g \
michael@0 12 -e s/\#define\ THEORA_DISABLE_ENCODE//g \
michael@0 13 $1/config.h > lib/config.h
michael@0 14 sed \
michael@0 15 -e s/@HAVE_ARM_ASM_EDSP@/1/g \
michael@0 16 -e s/@HAVE_ARM_ASM_MEDIA@/1/g \
michael@0 17 -e s/@HAVE_ARM_ASM_NEON@/1/g \
michael@0 18 $1/lib/arm/armopts.s.in > lib/arm/armopts.s
michael@0 19 cp $1/LICENSE ./LICENSE
michael@0 20 cp $1/CHANGES ./CHANGES
michael@0 21 cp $1/COPYING ./COPYING
michael@0 22 cp $1/README ./README
michael@0 23 cp $1/AUTHORS ./AUTHORS
michael@0 24 cp $1/lib/apiwrapper.c ./lib/
michael@0 25 cp $1/lib/apiwrapper.h ./lib/
michael@0 26 cp $1/lib/bitpack.c ./lib/
michael@0 27 cp $1/lib/bitpack.h ./lib/
michael@0 28 cp $1/lib/dct.h ./lib/
michael@0 29 cp $1/lib/decapiwrapper.c ./lib/
michael@0 30 cp $1/lib/decinfo.c ./lib/
michael@0 31 cp $1/lib/decint.h ./lib/
michael@0 32 cp $1/lib/decode.c ./lib/
michael@0 33 cp $1/lib/dequant.c ./lib/
michael@0 34 cp $1/lib/dequant.h ./lib/
michael@0 35 cp $1/lib/fragment.c ./lib/
michael@0 36 cp $1/lib/huffdec.c ./lib/
michael@0 37 cp $1/lib/huffdec.h ./lib/
michael@0 38 cp $1/lib/huffman.h ./lib/
michael@0 39 cp $1/lib/idct.c ./lib/
michael@0 40 cp $1/lib/info.c ./lib/
michael@0 41 cp $1/lib/internal.c ./lib/
michael@0 42 cp $1/lib/internal.h ./lib/
michael@0 43 cp $1/lib/mathops.h ./lib/
michael@0 44 cp $1/lib/ocintrin.h ./lib/
michael@0 45 cp $1/lib/quant.c ./lib/
michael@0 46 cp $1/lib/quant.h ./lib/
michael@0 47 cp $1/lib/state.c ./lib/
michael@0 48 cp $1/lib/state.h ./lib/
michael@0 49 cp $1/lib/arm/arm2gnu.pl ./lib/arm/
michael@0 50 cp $1/lib/arm/armbits.h ./lib/arm/
michael@0 51 cp $1/lib/arm/armbits.s ./lib/arm/
michael@0 52 cp $1/lib/arm/armcpu.c ./lib/arm/
michael@0 53 cp $1/lib/arm/armcpu.h ./lib/arm/
michael@0 54 cp $1/lib/arm/armfrag.s ./lib/arm/
michael@0 55 cp $1/lib/arm/armidct.s ./lib/arm/
michael@0 56 cp $1/lib/arm/armint.h ./lib/arm/
michael@0 57 cp $1/lib/arm/armloop.s ./lib/arm/
michael@0 58 cp $1/lib/arm/armstate.c ./lib/arm/
michael@0 59 cp $1/lib/x86/mmxfrag.c ./lib/x86/
michael@0 60 cp $1/lib/x86/mmxidct.c ./lib/x86/
michael@0 61 cp $1/lib/x86/mmxloop.h ./lib/x86/
michael@0 62 cp $1/lib/x86/mmxstate.c ./lib/x86/
michael@0 63 cp $1/lib/x86/sse2idct.c ./lib/x86/
michael@0 64 cp $1/lib/x86/sse2trans.h ./lib/x86/
michael@0 65 cp $1/lib/x86/x86cpu.c ./lib/x86/
michael@0 66 cp $1/lib/x86/x86cpu.h ./lib/x86/
michael@0 67 cp $1/lib/x86/x86int.h ./lib/x86/
michael@0 68 cp $1/lib/x86/x86state.c ./lib/x86/
michael@0 69 cp $1/lib/x86_vc/mmxfrag.c ./lib/x86_vc/
michael@0 70 cp $1/lib/x86_vc/mmxidct.c ./lib/x86_vc/
michael@0 71 cp $1/lib/x86_vc/mmxloop.h ./lib/x86_vc/
michael@0 72 cp $1/lib/x86_vc/mmxstate.c ./lib/x86_vc/
michael@0 73 cp $1/lib/x86_vc/x86cpu.c ./lib/x86_vc/
michael@0 74 cp $1/lib/x86_vc/x86cpu.h ./lib/x86_vc/
michael@0 75 cp $1/lib/x86_vc/x86int.h ./lib/x86_vc/
michael@0 76 cp $1/lib/x86_vc/x86state.c ./lib/x86_vc/
michael@0 77 cp $1/include/theora/theora.h ./include/theora/theora.h
michael@0 78 cp $1/include/theora/theoradec.h ./include/theora/theoradec.h
michael@0 79 cp $1/include/theora/theoraenc.h ./include/theora/theoraenc.h
michael@0 80 cp $1/include/theora/codec.h ./include/theora/codec.h
michael@0 81 patch -p3 < ./bug625773-r17780.patch
michael@0 82 patch -p3 < ./bug468275-r18219.patch
michael@0 83 patch -p3 < ./bug752139-r18031.patch
michael@0 84 patch -p3 < ./bug752668-r18268.patch
michael@0 85 patch -p3 < ./bug703135.patch
michael@0 86 patch -p3 < ./bug920992.patch

mercurial