~ubuntu-branches/debian/sid/mplayer/sid

« back to all changes in this revision

Viewing changes to debian/strip.sh

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler, Fabian Greffrath, Reinhard Tartler
  • Date: 2011-03-03 18:04:07 UTC
  • Revision ID: james.westby@ubuntu.com-20110303180407-3qpkx6rwf1umhtd9
Tags: 2:1.0~rc4.dfsg1-2
[ Fabian Greffrath ]
* Update documentation with regard to our modifications to the upstream tarball.

[ Reinhard Tartler ]
* really no longer build mplayer-gui, Closes: #612473
* simplify/remove instruction to get upstream sources
* normalize debian/{control,copyright,mplayer.install} with wrap-and-sort
* bump standards version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# This contains the dreaded DVD decryption code. We can live without it
4
 
#  by using libdvdread3 (and the optional library installed by
5
 
#    http://www.debian-unofficial.org/   :-)
6
 
rm -rfv libdvdcss
7
 
 
8
 
# play the most safe game at this point, remove mencoder.c from the
9
 
# orig.tar.gz (again)
10
 
rm -rfv mencoder.c
11
 
 
12
 
# strip/clean the code from potentially dangerous patented code
13
 
# KEEP THIS IN SYNC WITH THE ffmpeg-debian PACKAGE!
14
 
for codec in 'h263.*' 'h264.*' mpeg2video mpeg4 'msmpeg4.*'; do
15
 
    F=libavcodec/allcodecs.c
16
 
    sed -i "/REGISTER_ENCODER.*\\<$codec\\>/d" $F
17
 
    sed -i "s/REGISTER_ENCDEC\\(.*\\<$codec\\>\\)/REGISTER_DECODER\\1/" $F
18
 
    F=libavcodec/*.c
19
 
    sed -i "/AVCodec *${codec}_encoder *=/,/^[[:space:]]*}/d" $F
20
 
done