media/libtheora/update.sh

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial