changeset 31833:c9f9a077d760

Add new debian packaging based on official distro packages
author siretart
date Tue, 03 Aug 2010 13:02:07 +0000
parents dc727e19c9b6
children 64ba1daa147a
files DOCS/tech/MAINTAINERS README debian/all-lang-config-mak.sh debian/clean debian/compat debian/control debian/copyright debian/daily-build.sh debian/mplayer-dbg.links debian/mplayer-doc.doc-base.cs debian/mplayer-doc.doc-base.de debian/mplayer-doc.doc-base.en debian/mplayer-doc.doc-base.es debian/mplayer-doc.doc-base.fr debian/mplayer-doc.doc-base.hu debian/mplayer-doc.doc-base.pl debian/mplayer-doc.doc-base.ru debian/mplayer-doc.docs debian/mplayer-gui.menu debian/mplayer-gui.mime debian/mplayer.conf debian/mplayer.examples debian/mplayer.install debian/mplayer.mime debian/mplayer.preinst debian/prefs/MD5SUMS debian/prefs/codecs_list debian/prefs/mirrors debian/rules debian/source/format
diffstat 30 files changed, 1604 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/MAINTAINERS	Tue Aug 03 12:32:17 2010 +0000
+++ b/DOCS/tech/MAINTAINERS	Tue Aug 03 13:02:07 2010 +0000
@@ -58,7 +58,7 @@
     * Russian: Vladimir Voroshilov
 
 Platforms/ports:
-    * Debian packaging: Diego Biurrun
+    * Debian/Ubuntu packaging: Reinhard Tartler, Diego Biurrun
     * Red Hat/RPM packaging: Dominik Mierzejewski
     * FreeBSD: Vladimir Kushnir, Nexus
     * BSD/OS: Steven Schultz
--- a/README	Tue Aug 03 12:32:17 2010 +0000
+++ b/README	Tue Aug 03 13:02:07 2010 +0000
@@ -133,22 +133,15 @@
 NOTE: If you run Debian you can configure, compile and build a proper Debian
 .deb package with only one command:
 
-  fakeroot debian/rules binary
-
-If you want to pass custom options to configure, you can set up the
-DEB_BUILD_OPTIONS environment variable. For instance, if you want GUI
-and OSD menu support you would use:
+  debian/daily-build.sh -b
 
-  DEB_BUILD_OPTIONS="--enable-gui --enable-menu" fakeroot debian/rules binary
-
-You can also pass some variables to the Makefile. For example, if you want
-to compile with gcc 3.4 even if it's not the default compiler:
-
-  CC=gcc-3.4 DEB_BUILD_OPTIONS="--enable-gui" fakeroot debian/rules binary
+If you want to modify options to configure, please adjust the file
+debian/rules to your needs.
 
 To clean up the source tree run the following command:
 
   fakeroot debian/rules clean
+  rm debian/changelog
 
 ______________________________________
 STEP4: Choose an onscreen display font
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/all-lang-config-mak.sh	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# hack to avoid having to configure mplayer just for building the
+# xml documentation
+
+doc_lang_all=`echo DOCS/xml/??/ DOCS/xml/??_??/ | sed -e "s:DOCS/xml/\(..\)/:\1:g" -e "s:DOCS/xml/\(.._..\)/:\1:g"`
+
+echo "DOC_LANG_ALL = ${doc_lang_all}"
+echo "DOC_LANGS = ${doc_lang_all}"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/clean	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,7 @@
+debian/postrm
+debian/menu
+debian/TODO.Debian
+debian/templates
+debian/mime
+debian/config
+debian/dirs
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/compat	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,1 @@
+7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/control	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,170 @@
+Source: mplayer
+Section: video
+Priority: optional
+Maintainer: The Mplayer Developers <mplayer-dev-eng@mplayerhq.hu>
+DM-Upload-Allowed: yes
+Standards-Version: 3.9.1
+Homepage: http://www.mplayerhq.hu/
+Build-Depends: debhelper (>= 7),
+               docbook-xml,
+               docbook-xsl,
+               ladspa-sdk,
+               libenca-dev,
+               libaa1-dev,
+               libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386],
+               libaudio-dev,
+               libcaca-dev,
+               libcdparanoia-dev | libcdparanoia0-dev,
+               libdirectfb-dev,
+               libdts-dev,
+               libesd0-dev,
+               libfaad-dev,
+               libfontconfig1-dev,
+               libfreetype6-dev,
+               libfribidi-dev,
+               libgif-dev,
+               libgl1-mesa-dev,
+               libgtk2.0-dev,
+               libjack-dev,
+               libjpeg62-dev,
+               liblircclient-dev,
+               liblivemedia-dev,
+               liblzo2-dev,
+               libmp3lame-dev,
+               libmpcdec-dev,
+               libncurses5-dev,
+               libopenal-dev,
+               libpng12-dev | libpng-dev,
+               libpulse-dev,
+               libschroedinger-dev,
+               libsdl1.2-dev | libsdl1.1-dev,
+               libsmbclient-dev,
+               libspeex-dev,
+               libsvga1-dev [i386 amd64],
+               libswscale-dev,
+               libtheora-dev (>= 1.0~beta1),
+               libvorbis-dev,
+               libvorbisidec-dev,
+               libx11-dev,
+               libx264-dev (>= 2:0.85.1442),
+               libxext-dev,
+               libxinerama-dev,
+               libxv-dev,
+               libxvidcore-dev,
+               libxvmc-dev,
+               libxxf86dga-dev,
+               libxxf86vm-dev,
+               libvdpau-dev [i386 amd64],
+               pkg-config,
+               vstream-client-dev,
+               x11proto-core-dev,
+               xsltproc,
+               zlib1g-dev
+
+Package: mplayer-gui
+Architecture: any
+Suggests: mplayer-doc,
+          ttf-freefont,
+          bzip2,
+          fontconfig
+Depends: mplayer-skin,
+         mplayer,
+         ${shlibs:Depends},
+         ${misc:Depends}
+Replaces: mplayer-doc (<< 2:1.0~rc3+svn20090426-2),
+          mplayer (<< 2:1.0~rc3+svn20090426-2)
+Description: movie player for Unix-like systems
+ MPlayer plays most MPEG, VOB, AVI, Ogg/OGM, VIVO,
+ ASF/WMA/WMV, QT/MOV/MP4, FLI, RM, NuppelVideo, yuv4mpeg, FILM, RoQ, PVA files,
+ supported by many native, XAnim, RealPlayer, and Win32 DLL codecs. It can
+ also play VideoCD, SVCD, DVD, 3ivx, RealMedia, and DivX movies.
+ .
+ Another big feature of MPlayer is the wide range of supported output
+ drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev,
+ DirectFB, but also SDL (plus all its drivers) and some
+ low level card-specific drivers (for Matrox, 3Dfx and Radeon, Mach64
+ and Permedia3). Most of them support software or hardware scaling,
+ therefore allowing fullscreen display.  MPlayer is also able
+ to use some hardware MPEG decoder boards, such as the DVB
+ and DXR3/Hollywood+.
+ .
+ This package includes the gui variant of mplayer.
+
+Package: mencoder
+Architecture: any
+Suggests: mplayer-doc,
+          ttf-freefont,
+          bzip2,
+          fontconfig
+Depends: mplayer,
+         ${shlibs:Depends},
+         ${misc:Depends}
+Description: MPlayer's Movie Encoder
+ MPlayer plays most MPEG, VOB, AVI, Ogg/OGM, VIVO,
+ ASF/WMA/WMV, QT/MOV/MP4, FLI, RM, NuppelVideo, yuv4mpeg, FILM, RoQ, PVA files,
+ supported by many native, XAnim, RealPlayer, and Win32 DLL codecs. It can
+ also play VideoCD, SVCD, DVD, 3ivx, RealMedia, and DivX movies.
+ .
+ This package contains menconder, a simple movie encoder, designed to
+ encode MPlayer-playable movies
+ (AVI/ASF/OGG/DVD/VCD/VOB/MPG/MOV/VIV/FLI/RM/NUV/NET) to other
+ MPlayer-playable formats. It can encode with various codecs, like DivX4
+ (1 or 2 passes), libavcodec, PCM/MP3/VBRMP3 audio. Also has stream
+ copying and video resizing abilities.
+
+Package: mplayer
+Architecture: any
+Suggests: mplayer-doc,
+          ttf-freefont,
+          netselect | fping,
+          bzip2,
+          fontconfig
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Replaces: mplayer-doc (<< 2:1.0~rc3+svn20090426-2),
+          mplayer-nogui (<< 2:1.0~rc3+svn20090426-2),
+          mencoder (<< 2:1.0~rc3+svn20090426-2)
+Description: movie player for Unix-like systems
+ MPlayer plays most MPEG, VOB, AVI, Ogg/OGM, VIVO,
+ ASF/WMA/WMV, QT/MOV/MP4, FLI, RM, NuppelVideo, yuv4mpeg, FILM, RoQ, PVA files,
+ supported by many native, XAnim, RealPlayer, and Win32 DLL codecs. It can
+ also play VideoCD, SVCD, DVD, 3ivx, RealMedia, and DivX movies.
+ .
+ Another big feature of MPlayer is the wide range of supported output
+ drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev,
+ DirectFB, but also SDL (plus all its drivers) and some
+ low level card-specific drivers (for Matrox, 3Dfx and Radeon, Mach64
+ and Permedia3). Most of them support software or hardware scaling,
+ therefore allowing fullscreen display.  MPlayer is also able
+ to use some hardware MPEG decoder boards, such as the DVB
+ and DXR3/Hollywood+.
+ .
+ Not all of the upstream code is distributed in the source tarball.
+ See the README.Debian and copyright files for details.
+
+Package: mplayer-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: mplayer,
+         ${misc:Depends}
+Recommends: ffmpeg-dbg
+Description: debugging symbols for MPlayer
+ This package contains the debugging symbols for MPlayer, a movie
+ player for Unix-like systems.
+ .
+ You only need these if you want to generate usefule debugging
+ backtraces.
+
+Package: mplayer-doc
+Architecture: all
+Section: doc
+Recommends: mplayer
+Depends: ${misc:Depends}
+Replaces: mplayer (<< 2:1.0~rc3+svn20090426-1)
+Description: documentation for MPlayer
+ This package contains the HTML documentation for MPlayer, a movie player for
+ Unix-like systems. It is available in several languages.
+ .
+ You only need this package if you want to read the mplayer manual. The manpages
+ are included in the regular mplayer package.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/copyright	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,835 @@
+----- Debian package
+
+This package was first  debianized by * TeLeNiEkO * telenieko@telenieko.com on
+Mon, 26 Feb 2001 12:24:04 +0100.
+
+The current Debian Mantainer is: Dariush Pietrzak <eyck@ghost.anime.pl>
+sponsored by: A Mennucci <mennucc1@debian.org>
+
+Dariush Pietrzak and A Mennucci hold copyright (c) on the Debian
+packaging, that is available under the terms of GNU GPL v2 (see below
+for header).
+
+Original source can be found at: http://www.mplayerhq.hu/
+but (!) the orig.tar.gz contained in Debian is not the
+upstream one. See README.Debian for details.
+
+MPlayer was originally written by Árpád Gereöffy and has been extended and
+worked on by many more since then; see the AUTHORS file for an (incomplete)
+list.
+
+----- Copyright of MPlayer
+
+MPlayer  is nowadays copyrighted by the MPlayer team ;
+this copyright applies to code written specifically for MPlayer
+(see (*) below for the list exceptions).
+
+----- License of MPlayer
+
+MPlayer is licensed under the terms of GNU GPL v2 ;the licence header is:
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General Public
+License, version 2, can be found in /usr/share/common-licenses/GPL-2.
+
+This license applies to code written specifically for MPlayer;
+(see (*) below for the list exceptions).
+
+---- (*) Other License and Copyright
+
+MPlayer includes code from several external sources; this is shipped
+in subdirectories; (summarized) copyrights and licenses are as follows:
+
+Name:       FFmpeg
+Version:    CVS snapshot
+Homepage:   http://www.ffmpeg.org
+Directory:  libavcodec, libavformat, libavutil, libpostproc
+Copyright (c)  The ffmpeg Project
+	  (see individual files for other copyrights)
+License:    GNU Lesser General Public License, some parts GNU General Public
+            License, GNU General Public License when combined
+
+Name:       FAAD2
+Version:    2.1 beta (20040915 CVS snapshot) + fixes and portability patches
+Homepage:   http://www.audiocoding.com
+Directory:  libfaad2
+Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com
+License:    GNU General Public License
+
+Name:       GSM 06.10 library
+Version:    patchlevel 10
+Homepage:   http://kbs.cs.tu-berlin.de/~jutta/toast.html
+Copyright 1992 by Jutta Degener and Carsten Bormann,  Technische Universitaet Berlin
+Directory:  libmpcodecs/native/
+License:
+ Any use of this software is permitted provided that this notice is
+ not removed and that neither the authors nor the Technische
+ Universitaet Berlin are deemed to have made any representations as to
+ the suitability of this software for any purpose nor are held
+ responsible for any defects of this software.  THERE IS ABSOLUTELY NO
+ WARRANTY FOR THIS SOFTWARE.
+ As a matter of courtesy, the authors request to be informed about
+ uses this software has found, about bugs in this software, and about
+ any improvements that may be of general interest.
+ .
+ As of the libgsm debian package version 1.0.13-1, the following
+ copyright addition has been made to the libgsm package:
+ .
+ Since the original terms of 15 years ago maybe do not make our
+ intentions completely clear given today's refined usage of the legal
+ terms, we append this additional permission:
+ .
+      Permission to use, copy, modify, and distribute this software
+      for any purpose with or without fee is hereby granted,
+      provided that this notice is not removed and that neither
+      the authors nor the Technische Universitaet Berlin are
+      deemed to have made any representations as to the suitability
+      of this software for any purpose nor are held responsible
+      for any defects of this software.  THERE IS ABSOLUTELY NO
+      WARRANTY FOR THIS SOFTWARE.
+ .
+ Berkeley/Bremen, 05.04.2009
+ Jutta Degener
+ Carsten Bormann
+
+Name:       miniLZO
+Version:    1.07
+Homepage:   http://www.oberhumer.com/opensource/lzo/#minilzo
+File:	    libmpcodecs/native/minilzo.c libmpcodecs/native/minilzo.h
+Copyright (C) 1996-2000 Markus Franz Xaver Johannes Oberhumer
+License:    GNU General Public License
+
+Name:       liba52
+Version:    0.7.4 + patches
+Homepage:   http://liba52.sourceforge.net/
+Directory:  liba52
+Copyright (C) 2000-2001 Michel Lespinasse <walken@zoy.org>
+Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
+License:    GNU General Public License
+
+Name:       libmpeg2
+Version:    0.4.0b + patches
+Homepage:   http://libmpeg2.sourceforge.net/
+Directory:  libmpeg2
+Copyright (C) 2000-2003 Michel Lespinasse <walken@zoy.org>
+Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
+Copyright (C) 2003 David S. Miller <davem@redhat.com>
+Copyright (c) 2002-2003 Falk Hueffner <falk@debian.org>
+License:    GNU General Public License
+
+Name:       mpg123
+Version:    0.59s + significant changes
+Homepage:   http://www.mpg123.de/
+Directory:  mp3lib
+Copyright (c) 1995 by Michael Hipp
+License:    GNU General Public License
+
+Name:       Tremor
+Version:    1.0 + parts CVS from December 2004 + patches
+Homepage:   http://xiph.org/
+Directory:  tremor
+Copyright (c) 2002, Xiph.org Foundation
+License:    BSD-like:
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ - Neither the name of the Xiph.org Foundation nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION
+ OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Name:       avifile DLL loader
+Version:    0.47 + patches + CVS updates
+Homepage:   http://avifile.sourceforge.net/
+Directory:  loader/
+Copyright 1995 Alexandre Julliard
+Copyright 1994    Eric Youndale & Erik Bos
+Copyright 1996-98 Marcus Meissner
+Copyright 1995 Thomas Sandford
+Copyright 1996 Martin von Loewis
+Copyright 1993 Robert J. Amstadt
+Copyright 1995-1996 Alexandre Julliard
+Copyright 2000-2001 Eugene Kuznetsov  (divx@euro.ru)
+License:    GNU General Public License
+
+Name:       dvbstream
+Version:    0.4.3-pre3 (cvs checkout)
+Homepage:   http://www.linuxstb.org/dvbstream/
+	    now at http://prdownloads.sourceforge.net/dvbtools/
+File:	    libmpdemux/dvbin.h  libmpdemux/dvbin.c libmpdemux/rtp.h
+Copyright (C) 2002 the xine project
+License:    GNU General Public License
+
+Name:       librtsp
+Version:    xine CVS 2003/04/10 + patches
+Homepage:   http://www.xinehq.de
+Directory:  stream/librtsp/
+Copyright (C) 2000-2002 the xine project
+License:    GNU General Public License
+
+Name:       realrtsp
+Version:    xine CVS 2003/04/17 + patches
+Homepage:   http://www.xinehq.de
+Directory:  stream/realrtsp/
+Copyright (C) 2000-2002 the xine project
+License:    GNU General Public License
+
+Name:       id3edit
+Version:    1.9 + patches
+Homepage:   http://id3edit.sourceforge.net/
+Directory:  libmpdemux/genres.h
+Copyright (C) 2001  Jason Carter
+License:    GNU General Public License
+
+Name:       matroxset
+Version:    0.3
+Homepage:   ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/
+Directory:  TOOLS/TVout/matroxset/
+License:    GNU General Public License
+
+Name:       unrarlib
+Version:    0.4.0 + patches
+Homepage:   http://www.unrarlib.org/
+File:	    unrarlib.[ch]
+Copyright (C) 2000-2002 by Christian Scheurer (www.ChristianScheurer.ch)
+  UNIX port copyright (c) 2000-2002 by Johannes Winkelmann (jw@tks6.net)
+License:    GNU General Public License / UniquE RAR File Library License
+
+Name:       uCIFS library
+Version:    development files as of september 2004
+Homepage:   http://ubiqx.org/libcifs/
+Directory:  libvo/md5sum.[ch]
+License:    GNU Lesser General Public License
+
+Name:       FreeSDP
+Version:    0.4.1
+Homepage:   https://savannah.nongnu.org/projects/freesdp/
+Directory:  stream/freesdp/
+Copyright (C) 2001,2002,2003 Federico Montesino Pouzols <fedemp@suidzer0.org>
+License:    GNU General Public License
+
+--- libmpdemux
+libmpdemux is itself a collection of code from different sources
+
+File:	    libmpdemux/pnm.c libmpdemux/pnm.h
+Copyright (C) 2000-2002 the xine project
+License:    GNU General Public License
+
+File:	    libmpdemux/demux_avs.c libmpdemux/demux_avs.h
+Copyright (c) 2005 Gianluigi Tiesi <sherpya@netfarm.it>
+Copyright 2003 Kevin Atkinson
+License:    GNU General Public License
+
+
+Name:	    lavtools
+File:	    libmpdemux/yuv4mpeg.h
+Home:	  mjpeg.sourceforge.net
+Copyright (C) 2001 Matthew J. Marjanovic <maddog@mir.com>
+License:    GNU General Public License
+
+
+Name:   XMMS - Cross-platform multimedia player
+File:  libmpdemux/demux_xmms_plugin.h
+Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+License:
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met: 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer. 2.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+
+--- TOOLS
+
+In the TOOLS directory you can find some nice scripts and code that
+makes using MPlayer and MEncoder easier, for example scripts for DVD
+track encoding in three pass mode or creating SVCDs from a movie.
+
+MPlayer scripts in the TOOLS dir
+--------------------------------
+
+edgedetect.fp, emboss.fp
+
+Author:       Reimar Döffinger
+
+Description:  Examples of custom fragment program for OpenGL video out driver
+
+Usage:        mplayer -vo gl:yuv=4:customprog=edgedetect.fp
+
+
+midentify.sh
+
+Author:       Tobias Diedrich
+
+Description:  Runs 'mplayer -identify' for all arguments while preventing
+              video window flashing.
+
+Usage:        midentify.sh file1 [file2 ...]
+
+
+mpconsole.sh
+
+Author:       Rich Felker
+
+Description:  Script to run MPlayer on the console (fbdev/mga_vid/etc.) without
+              the console text and/or flashing cursor getting in the way.
+
+Usage:        mpconsole.sh [mplayer options]
+
+
+mplmult.sh
+
+Author:       Reimar Döffinger
+
+Description:  Example how to output video on multiple windows in sync. Might
+              be even more useful in combination with -vo ggi to distribute
+              the video arbitrarily.
+
+Usage:        mplmult.sh <n> <options>
+              n        Number of MPlayer instances that display the video.
+              options  Any options you would pass to MPlayer, more than
+                       one file will usually not work.
+
+
+subsearch.sh
+
+Author:       Alex Beregszaszi
+
+Description:  Collects subtitle files from the directory given as argument
+              ('.' if none is given) and its subdirectories and prints
+              them as a comma separated list to stdout.
+
+Usage:        subsearch.sh [directory]
+              mplayer -sub `subsearch.sh` movie
+
+
+wma2ogg.pl
+
+Author:       Peter Simon
+
+Description:  Converts WMA files to Ogg or MP3.
+
+Usage:        wma2ogg [options] <-f FILE1 | -f FILE2 ... | -a>
+              -f, -file   filename
+              -a          converts all WMA files in the current directory
+              -t          output filetype (ogg, mp3) [default=ogg]
+              -lame       I wanna use L.A.M.E. sure enough!
+              -br         bitrate (kb/s) [default=from the WMA]
+              -del        remove WMA file(s) after the transcoding
+
+
+
+MEncoder scripts in the TOOLS dir
+---------------------------------
+
+divx2svcd.sh
+
+Author:       Miklos Vajna
+
+Description:  A simple utility that creates an SVCD from a video in an AVI
+              container.
+
+Usage:        divx2svcd.sh <input_avi> [options]
+              see 'divx2svcd.sh -h' for more info
+
+
+mencvcd.sh
+
+Author:       Jürgen Hammelmann
+
+Description:  Converts DVD (or anything else that MPlayer plays) to (S)VCD
+
+Usage:        mencvcd.sh <basename> [mencvcd.sh options] [mplayer options]
+              see 'mencvcd.sh -h' for more info
+
+Note:         Requires MPlayer, mjpegtools, VCDImager, cdrdao, and optionally
+              LAME, tooLAME and SoX.
+
+
+dvd2divxscript.pl
+
+Author:       Florian Schilhabel
+
+Description:  Yet another DVD to divx helper script.
+              This script encodes a DVD track in three pass mode to MPEG-4 with
+              libavcodec. Optionally it writes the resulting movie file to
+              CD-ROM the corresponding audio track to MP3. It can also shut
+              down the computer when it finishes. If you like, you can
+              watch the MEncoder output on /dev/tty8.
+
+Usage:        --help       show help
+              --abr        (AudioBitRate) Please enter the desired bitrate this
+                           can be either [96|128|192] kbit/sec (default: 128).
+              --lang       Specify the Language of the audio track this can be
+                           for example <en> or <de> (default: <de>).
+              --dvd        Specify the DVD track you want to encode.
+              --cdsize     Specify the size of your CD-ROM (default: 700MB).
+              --shutdown   Shutdown the system, when the encoding process has
+                           finished. Needs appropriate privileges.
+              --out        Specify the name of your encoded movie. The file
+                           extension will be appended automatically.
+              --writecd    Takes the newly created movie and writes it to a
+                           CD-ROM.
+              --writedev   cdrecord device identifier, for example 0,1,0
+              --speed      writing speed (default: 4)
+              --dvd-device device to pull the video off (default: /dev/dvd)
+
+
+aconvert.sh
+
+Author:       Jonas Jermann
+
+Description:  A hack to allow MEncoder to read respectively encode from audio
+              only files.
+
+Usage:        aconvert.sh <"input file"> <"output file"> <"options">
+              If no options are specified the following is assumed:
+              -oac lavc -lavcopts acodec=mp3:abitrate=192
+
+Note:         The script is probably bash dependent and it's just a quick
+              hack, feel free to improve it (or much better: fix MEncoder ;).
+
+
+
+qepdvcd.sh
+
+Author:       Reynaldo H. Verdejo Pinochet
+
+Description:  converter from any supported format to VCD/SVCD PAL/NTSC
+
+Usage:        qepdvcd.sh file <options>
+              Run with no arguments to see the list of options.
+
+Note:         You will need vcdimager/cdrecord to master/burn the resulting
+              files.
+
+
+
+Tech scripts in the TOOLS dir
+-----------------------------
+
+calcbpp.pl
+
+Author:       Moritz Bunkus
+
+Description:  A script that calculates the $bpp for a movie, mentioned in
+              DOCS/tech/encoding-tips.txt, see that document for more info.
+
+Usage:        calcbpp.pl <resolution> <aspect ratio> <bitrate> <fps>
+              resolution:    the cropped but unscaled resolution
+                             (use '-vf cropdetect')
+              aspect ratio:  the encoded aspect ratio. All DVDs come at
+                             720x576 but contain a flag that tells the player
+                             wether it should display the DVD at an aspect
+                             ratio of 4/3 (1.333) or at 16/9 (1.777). Have a
+                             look at MPlayer's output - there's something
+                             about 'prescaling'. That's what you are looking
+                             for.
+              bitrate:       the video bitrate in kbit/s
+              fps:           the fps
+
+              example: calcbpp.pl 720x440 16/9 896 25
+
+
+countquant.pl
+
+Author:       Moritz Bunkus
+
+Description:  Counts the quantizers used for the encoding, mentioned in
+              DOCS/tech/encoding-tips.txt, see that document for more info.
+
+Usage:        countquant.pl < divx2pass.log
+              It will print out which quantizer was used how often. If you see
+              that e.g. the lowest quantizer (vqmin=2) gets used for > 95% of
+              the frames then you can safely increase your picture size.
+
+
+plotpsnr.pl
+
+Author:       Jonas Jermann
+
+Description:  Draw PSNR log graphs using gnuplot.
+
+Usage:        plotpsnr.pl [options] <file>
+              -h, --help    Display this help message
+              -quant        Display quantizers
+              -size         Display size
+              -psnr         Display PSNR
+              -iframes      Display I-frames
+              -pframes      Display P-frames
+              -bframes      Display B-frames
+              -aframes      Display all frames in different colors
+              -cmp <file2>  Compare two files
+              -qs <style>   Quantizer style
+              -ss <style>   Size style
+              -ps <style>   PSNR style
+
+              Default: -quant -size -psnr -qs "p" -ss "i" -ps "p"
+
+Note:         Requires gnuplot. Comparison is based on file2. Comparison
+              assumes that the frame numbers of both files fit.
+
+
+psnr-video.sh
+
+Author:       Matthias Wieser
+
+Description:  Calculates the PSNR between two existing video files.
+              The PSNR is calculated frame by frame.
+              Also prints the overall PSNR.
+              The script can be used to:
+               * Compare different softwarescalers (should I use
+                 -sws 1 or -sws 2 ?)
+               * Compare different resolutions (is it better to scale
+                 down to 640x360 or to 560x320)
+               * Compare different deinterlacers
+               * Compare different video codecs
+               * Compare video filters (is it better to use -vf hqdn3d
+                 or lavcopts:nr=400)
+               * [...]
+
+Usage:        psnr-video.sh <file1> <file2> [<frames>] [<options1>] [<options2>]
+
+              <file1> and <file2> are the video files for which the PSNR
+                should be calculated.
+              [<frames>] is the number of frames to process, starting
+                from frame 1.
+              [<options1>] are additional MPlayer options for <file1>
+              [<options2>] are additional MPlayer options for <file2>
+
+              A file called ./psnr.dat will be created with the following
+              content:
+
+              File;Y;Cb;Cr
+              00000001.ppm;34.23;39.54;40.06;35.426
+              00000002.ppm;33.03;38.71;39.26;34.271
+              00000003.ppm;33.45;38.91;39.28;34.655
+              00000004.ppm;32.72;38.69;38.85;33.972
+              [...]
+              00000247.ppm;35.55;40.84;42.15;36.785
+              PSNR:;35.9887
+
+Note:         This script relies on the the tool "pnmpsnr" for the
+              frame-by-frame PSNR calculation.
+              Be aware that psnr-video.sh needs a lot of temporary space
+              in /tmp/.
+
+
+asfinfo
+
+Author:       Arpi
+
+Description:  a simple ASF header display program
+
+Usage:        asfinfo <filename.asf>
+
+Note:         Also see MPlayer's -identify option.
+
+
+avi-fix
+
+Author:       Arpi
+
+Description:  A simple tool to fix chunk sizes in RIFF AVI files.
+
+Usage:        avi-fix [-fix] <badfile.avi>
+
+Note:         It does not check or fix the index, to do this use
+              'mencoder -forceidx -oac copy -ovc copy'.
+
+
+checktree.sh
+
+Author:       Ivo van Poorten
+
+Description:  Check the source tree for anomalies.
+
+Usage:        checktree.sh -help
+
+Note:         This script is meant for developers to check the current
+              source tree and/or the patches they are working on.
+
+
+mphelp_check.py
+
+Author:       Uoti Urpala
+
+Description:  Check console message translations for common errors.
+
+Usage:        mphelp_check.py [--missing] <master file> <files to check>
+
+Note:         Compares MPlayer translation files against a master file and
+              reports conflicting arguments, extra strings not present in
+              the base file and (optionally) missing strings.
+
+
+cpuinfo
+
+Author:       Jürgen Keil
+
+Description:  the prototype ../cpuinfo.c
+
+Note:         Used by configure to emulate /proc/cpuinfo on non-Linux systems.
+
+
+dump_mp4
+
+Author:       Arpi
+
+Description:  MPEG4-ES stream inspector, dumps the stream startcodes.
+
+
+fastmemcpybench
+
+Author:       Felix Bünemann
+
+Description:  benchmark/testbed for fastmemcpy stuff
+
+Note:         Also see fastmem.sh.
+
+
+movinfo
+
+Author:       Arpi
+
+Description:  Show QuickTime MOV file structure.
+
+Usage:        movinfo <filename.mov>
+
+
+vivodump
+
+Author:       Arpi
+
+Description:  Dump H.263 frame headers from VIVO files.
+
+Usage:        vivodump <input_file> <output_file>
+
+
+
+Miscellaneous scripts in the TOOLS dir
+--------------------------------------
+
+subedit.pl
+
+Author:       Michael Klepikov
+
+Description:  A script for pipelined editing of subtitle files.
+
+Usage:        subedit.pl [switches]
+    -if,--input-format <fmt>   input format; supported: SRT (default: SRT)
+    -of,--output-format <fmt>  output format; supported: SRT
+                               (default: input format)
+    -s,--shift <time>          shift all subtitles by <time>
+                               (format: [-]hh:mm:ss,fraction)
+    -c,--scale <time>          scale by adding <time> to overall duration
+    -f,--split-from <time>     drop subtitles that end before <time>
+    -t,--split-to <time>       drop subtitles that start after <time> (will
+                               truncate timing if it overlaps a boundary)
+    -r,--renumber              renumber SRT subtitles in output
+    -d,--debug                 enable debug output
+    -h,--help                  help message
+
+
+w32codec_dl.pl
+
+Author:       Tom Lees
+
+Description:  This script will use the Windows Media Player codec download
+              infrastructure to aquire the codecs listed in codecs.conf and put
+              them in a directory named "codecs/" below the current directory.
+
+Usage:        w32codec_dl.pl <codecs.conf location>
+
+Note:         You will need the libwww-perl stuff and the cabextract utility
+              which can be found at http://www.kyz.uklinux.net/cabextract.php3.
+
+
+binary_codecs.sh
+
+Author:       Andrea Menucci, thuglife
+
+Description:  Downloads binary codecs from mplayerhq.hu and installs them
+              on a Debian system.
+
+Usage:        binary_codecs.sh install
+              binary_codecs.sh uninstall
+
+
+vobshift.py
+
+Author:       Gábor Farkas
+
+Description:  Adjust the time-info in vobsub files
+
+Usage:        vobshift.py in.idx out.idx +8.3
+              Will shift the time by 8.3 seconds
+
+
+subrip.c
+
+Author:       Kim Minh Kaplan
+
+Description:  Transform VOBsub subtitles into Subrip text subtitles using
+              GOCR/JOCR.
+
+Usage:        subrip <vobsub basename> [subid [output filename] ]
+
+Note:         Requires at least JOCR/GOCR 0.37.
+              You will have to change the 'vobsub_id' value if you want a
+              subtitle different from number 0. Hint: You can view the
+              subtitle that is being decoded with "display subtitle-*.pgm".
+
+
+alaw-gen.c
+
+Author:       Arpi
+
+Description:  Generates alaw/ulaw tables.
+
+Note:         Created to work around a past license issue, no longer useful.
+
+
+avisubdump.c
+
+Author:       Tobias Diedrich
+
+Description:  Dumps vobsub soft subtitles streams embedded in AVI files.
+
+Usage:        avisubdump <movie.avi>
+
+
+vfw2menc.c
+
+Author:       Gianluigi Tiesi
+
+Description:  Creates a codec settings file from the Video for Windows codecs
+              found in the mplayer codec packs.
+
+Usage:        vfw2menc -f <fourcc> -d <codec.dll> -s <settingsfile.mcf>
+              -h|--help            - displays this help
+              -d|--driver filename - dll or drv to load
+              -f|--fourcc fourcc   - fourcc of selected driver
+              -s|--save filename   - save settings to file
+              -c|--check filename  - load and show setting in filename
+              -v|--view            - displays the config dialog and do nothing
+
+Notes:        Works on Windows/Linux x86 only.
+
+
+modify_reg.c
+
+Author:       Alan Nisota
+
+Description:  Modifies registry file (usually ~/.mplayer/registry)
+
+Usage:        modify_reg -r <registry_file> -l
+              modify_reg -r <registry_file> -k <key> [-d|-v <value>[-t <type>]]
+              -r|--registry - path to registry file
+              -l|--list     - shows all keys and values
+              -k|--key      - registry key
+              -d|--del      - delete key
+              -v|--value    - new value for key
+              -t|--type     - key type: string (default) or dword
+
+Notes:        Necessary to use CoreAVC with MPlayer
+
+
+compare.c
+
+Author:       Michael Niedermayer
+
+Description:  Simple file compare program that detects the number of rounding
+              errors and dies if the error is too large.
+
+Usage:        compare <file1> <file2>
+
+
+realcodecs/
+
+Author:       miscellaneous
+
+Description:  Wrappers for Linux Real binary codecs used to analyze, alter and
+              dump the data flow between RealPlayer and its codecs.
+
+Usage:        - Set the path to the RealPlayer codecs directory in the C files.
+              - Run 'make realcodecs'.
+              - Rename the original codecs to match the names expected in the
+                wrapper sources. The default is to give them a "real" prefix,
+                e.g. realcook.so.6.0.
+              - Put the wrappers in the RealPlayer codecs directory.
+
+Notes:        Known to work at least on Linux x86 with RealPlayer8.
+
+
+
+netstream - access remote streams
+---------------------------------
+
+NOTE: netstream does not link at the moment - help welcome.
+
+netstream allows you to access most MPlayer stream types from a remote host.
+The main purpose of this feature is to make it possible to directly use the
+CD or DVD drive of another computer on the network (provided you have the
+required bandwidth). On the downside some stream types (currently TV and MF)
+are not usable remotely because they are implemented at the demuxer level.
+
+Be aware that currently the server is not secure at all.
+
+Compile the server by running 'make netstream' and then copy the netstream
+binary to the right place on your system (usually /usr/local/bin on Unix).
+Start the netstream server on the computer you intend to access remotely.
+There are no command line arguments.
+
+Play the second track of a VCD on the server with:
+
+  mplayer -cache 5000 mpst://servername/vcd://2
+
+Access files on this server with:
+
+  mplayer -cache 5000 mpst://servername//usr/local/movies/lol.avi
+
+Note that paths which do not start with a / will be interpreted as relative to
+the directory where the server is running. The '-cache' option is not needed
+but highly recommended.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/daily-build.sh	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# wrapper around dpkg-buildpackage to generate correct changelog
+# use "debian/daily-build.sh -b" to create binary packages
+# and "debian/daily-build.sh -S" to create a source package only
+
+LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2
+version=$(LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2)
+
+# ensure correct directory
+test -r debian/control || exit 1
+
+rm debian/changelog
+dch --create --empty --package mplayer -v 2:1.0~svn${version} "Daily build"
+
+dpkg-buildpackage -us -uc "$@"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-dbg.links	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,1 @@
+/usr/lib/debug/usr/bin/mplayer /usr/lib/debug/usr/bin/gmplayer
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-doc.doc-base.cs	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,11 @@
+Document: mplayer-cs
+Title: MPlayer documentation (Czech)
+Author: The MPlayer team
+Abstract: This documentation describes the use of MPlayer. (Czech)
+ MPlayer is a movie player for GNU/Linux that supports a wide
+ range of audio and video formats, and output drivers.
+Section: Sound
+
+Format: HTML
+Index: /usr/share/doc/mplayer-doc/HTML/cs/index.html
+Files: /usr/share/doc/mplayer-doc/HTML/cs/*.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-doc.doc-base.de	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,11 @@
+Document: mplayer-de
+Title: MPlayer documentation (German)
+Author: The MPlayer team
+Abstract: This documentation describes the use of MPlayer. (German)
+ MPlayer is a movie player for GNU/Linux that supports a wide
+ range of audio and video formats, and output drivers.
+Section: Sound
+
+Format: HTML
+Index: /usr/share/doc/mplayer-doc/HTML/de/index.html
+Files: /usr/share/doc/mplayer-doc/HTML/de/*.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-doc.doc-base.en	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,11 @@
+Document: mplayer-en
+Title: MPlayer documentation (English)
+Author: The MPlayer team
+Abstract: This documentation describes the use of MPlayer. (English)
+ MPlayer is a movie player for GNU/Linux that supports a wide
+ range of audio and video formats, and output drivers.
+Section: Sound
+
+Format: HTML
+Index: /usr/share/doc/mplayer-doc/HTML/en/index.html
+Files: /usr/share/doc/mplayer-doc/HTML/en/*.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-doc.doc-base.es	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,11 @@
+Document: mplayer-es
+Title: MPlayer documentation (Spanish)
+Author: The MPlayer team
+Abstract: This documentation describes the use of MPlayer. (Spanish)
+ MPlayer is a movie player for GNU/Linux that supports a wide
+ range of audio and video formats, and output drivers.
+Section: Sound
+
+Format: HTML
+Index: /usr/share/doc/mplayer-doc/HTML/es/index.html
+Files: /usr/share/doc/mplayer-doc/HTML/es/*.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-doc.doc-base.fr	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,11 @@
+Document: mplayer-fr
+Title: MPlayer documentation (French)
+Author: The MPlayer team
+Abstract: This documentation describes the use of MPlayer. (French)
+ MPlayer is a movie player for GNU/Linux that supports a wide
+ range of audio and video formats, and output drivers.
+Section: Sound
+
+Format: HTML
+Index: /usr/share/doc/mplayer-doc/HTML/fr/index.html
+Files: /usr/share/doc/mplayer-doc/HTML/fr/*.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-doc.doc-base.hu	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,11 @@
+Document: mplayer-hu
+Title: MPlayer documentation (Hungarian)
+Author: The MPlayer team
+Abstract: This documentation describes the use of MPlayer. (Hungarian)
+ MPlayer is a movie player for GNU/Linux that supports a wide
+ range of audio and video formats, and output drivers.
+Section: Sound
+
+Format: HTML
+Index: /usr/share/doc/mplayer-doc/HTML/hu/index.html
+Files: /usr/share/doc/mplayer-doc/HTML/hu/*.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-doc.doc-base.pl	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,11 @@
+Document: mplayer-pl
+Title: MPlayer documentation (Polish)
+Author: The MPlayer team
+Abstract: This documentation describes the use of MPlayer. (Polish)
+ MPlayer is a movie player for GNU/Linux that supports a wide
+ range of audio and video formats, and output drivers.
+Section: Sound
+
+Format: HTML
+Index: /usr/share/doc/mplayer-doc/HTML/pl/index.html
+Files: /usr/share/doc/mplayer-doc/HTML/pl/*.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-doc.doc-base.ru	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,11 @@
+Document: mplayer-ru
+Title: MPlayer documentation (Russian)
+Author: The MPlayer team
+Abstract: This documentation describes the use of MPlayer. (Russian)
+ MPlayer is a movie player for GNU/Linux that supports a wide
+ range of audio and video formats, and output drivers.
+Section: Sound
+
+Format: HTML
+Index: /usr/share/doc/mplayer-doc/HTML/ru/index.html
+Files: /usr/share/doc/mplayer-doc/HTML/ru/*.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-doc.docs	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,3 @@
+Copyright
+DOCS/HTML
+DOCS/tech
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-gui.menu	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,1 @@
+?package(mplayer):command="/usr/bin/gmplayer" section="Applications/Video" needs="X11" title="gmplayer"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer-gui.mime	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,21 @@
+application/x-ogg; /usr/bin/gmplayer %s; description="OggVorbis Audio"
+application/ogg; /usr/bin/gmplayer %s; description="OggVorbis Audio"
+audio/mpeg; /usr/bin/gmplayer %s; description="MPEG Audio Format"
+audio/x-mpegurl; /usr/bin/gmplayer %s; description="Icecast Playlists"
+audio/x-ms-wax; /usr/bin/gmplayer %s; description="Audio Format"
+audio/x-ms-wma; /usr/bin/gmplayer %s; description="Audio Format"
+audio/x-pls; /usr/bin/gmplayer %s; description="MP3 ShoutCast/IceCast Playlist"
+audio/x-scpls; /usr/bin/gmplayer %s; description="Shoutcast Playlists"
+audio/x-wav; /usr/bin/gmplayer %s; description="Waveform Microsoft Wave/RIFF"
+video/mpeg; /usr/bin/gmplayer %s; description="MPEG Video Format"; test=test -n "$DISPLAY"
+video/quicktime; /usr/bin/gmplayer %s; description="Apple Quicktime Video"; test=test -n "$DISPLAY"
+video/x-mpeg2; /usr/bin/gmplayer %s; description="MPEG Video"; test=test -n "$DISPLAY"
+video/x-mpeg; /usr/bin/gmplayer %s; description="MPEG 2 Video"; test=test -n "$DISPLAY"
+video/mpeg; /usr/bin/gmplayer %s; description="MPEG 2 Video"; test=test -n "$DISPLAY"
+video/x-ms-afs; /usr/bin/gmplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
+video/x-ms-asf; /usr/bin/gmplayer %s; description="MS ASF video"; test=test -n "$DISPLAY"
+video/x-msvideo; /usr/bin/gmplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
+video/x-ms-wma; /usr/bin/gmplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
+video/x-ms-wmv; /usr/bin/gmplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
+video/x-ms-wmx; /usr/bin/gmplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
+video/x-ms-wvx; /usr/bin/gmplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer.conf	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,130 @@
+#
+# MPlayer configuration file
+#
+# Configuration files are read system-wide from /etc/mplayer/mplayer.conf
+# and per user from ~/.mplayer/config, where per-user settings override
+# system-wide settings, all of which are overrriden by the command line.
+#
+# The configuration file settings are the same as the command line
+# options without the preceding '-'.
+#
+# See the CONFIGURATION FILES section in the man page
+# for a detailed description of the syntax.
+
+
+##################
+# video settings #
+##################
+
+# Specify default video driver (see -vo help for a list).
+# vo=xv,x11
+
+# FBdev driver:
+#
+# mode to use (read from fb.modes)
+#fbmode = 640x480-120
+#
+# location of the fb.modes file
+#fbmodeconfig = /etc/fb.modes
+
+# Specify your monitor timings for the vesa and fbdev video output drivers.
+# See /etc/X11/XF86Config for timings. Be careful; if you specify settings
+# that exceed the capabilities of your monitor, you may damage it.
+#
+# horizontal frequency range (k stands for 1000)
+#monitor-hfreq = 31.5k-50k,70k
+#
+# vertical frequency range
+#monitor-vfreq = 50-90
+#
+# dotclock (or pixelclock) range (m stands for 1000000)
+#monitor-dotclock = 30M-300M
+
+# Start in fullscreen mode by default.
+#fs=yes
+
+# Change to a different videomode when going fullscreen.
+#vm=yes
+
+# Override the autodetected color depth, may need 'vm=yes' as well.
+#bpp=0
+
+# Enable software scaling (powerful CPU needed) for video output
+# drivers that do not support hardware scaling.
+#zoom=yes
+
+# standard monitor size, with square pixels
+#monitoraspect=4:3
+
+# Use this for a widescreen monitor, non-square pixels.
+#monitoraspect=16:9
+
+# Keep the player window on top of all other windows.
+#ontop=yes
+
+
+##################
+# audio settings #
+##################
+
+# Use pulse, then alsa, then SDL video with the aalib subdriver by default.
+ao=pulse,alsa,sdl:aalib
+
+# Use SDL audio driver with the esd subdriver by default.
+#ao = sdl:esd
+
+# Specify the mixer device.
+#mixer = /dev/mixer
+
+# Resample the sound to 44100Hz with the lavcresample audio filter.
+#af=lavcresample=44100
+
+
+##################
+# other settings #
+##################
+
+stop-xscreensaver=yes
+
+# Pretend to be Window Media Player.
+# Fixes playback when playlist and media file use the same URL.
+#user-agent=NSPlayer/4.1.0.3856
+
+# Drop frames to preserve audio/video sync.
+#framedrop = yes
+
+# Specify your preferred skin here (skins are searched for in
+# /usr/local/share/mplayer/skins/<name> and ~/.mplayer/skins/<name>).
+#skin = Abyss
+
+# Resample the font alphamap.
+# 0     plain white fonts
+# 0.75  very narrow black outline (default)
+# 1     narrow black outline
+# 10    bold black outline
+#ffactor = 0.75
+
+# cache settings
+#
+# Use 8MB input cache by default.
+#cache = 8192
+#
+# Prefill 20% of the cache before starting playback.
+#cache-min = 20.0
+#
+# Prefill 50% of the cache before restarting playback after the cache emptied.
+#cache-seek-min = 50
+
+# DVD: Display English subtitles if available.
+#slang = en
+
+# DVD: Play English audio tracks if available.
+#alang = en
+
+###################
+# DVDNAV Settings #
+###################
+#vc=ffmpeg12,
+
+# You can also include other configuration files.
+#include = /path/to/the/file/you/want/to/include
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer.examples	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,3 @@
+etc/example.conf
+etc/menu.conf
+etc/input.conf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer.install	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,4 @@
+TOOLS/binary_codecs.sh usr/share/mplayer/
+TOOLS/midentify.sh usr/share/mplayer/
+debian/prefs var/lib/mplayer/
+etc/input.conf etc/menu.conf etc/mplayer
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer.mime	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,21 @@
+application/x-ogg; /usr/bin/mplayer %s; description="OggVorbis Audio"
+application/ogg; /usr/bin/mplayer %s; description="OggVorbis Audio"
+audio/mpeg; /usr/bin/mplayer %s; description="MPEG Audio Format"
+audio/x-mpegurl; /usr/bin/mplayer %s; description="Icecast Playlists"
+audio/x-ms-wax; /usr/bin/mplayer %s; description="Audio Format"
+audio/x-ms-wma; /usr/bin/mplayer %s; description="Audio Format"
+audio/x-pls; /usr/bin/mplayer %s; description="MP3 ShoutCast/IceCast Playlist"
+audio/x-scpls; /usr/bin/mplayer %s; description="Shoutcast Playlists"
+audio/x-wav; /usr/bin/mplayer %s; description="Waveform Microsoft Wave/RIFF"
+video/mpeg; /usr/bin/mplayer %s; description="MPEG Video Format"; test=test -n "$DISPLAY"
+video/quicktime; /usr/bin/mplayer %s; description="Apple Quicktime Video"; test=test -n "$DISPLAY"
+video/x-mpeg2; /usr/bin/mplayer %s; description="MPEG Video"; test=test -n "$DISPLAY"
+video/x-mpeg; /usr/bin/mplayer %s; description="MPEG 2 Video"; test=test -n "$DISPLAY"
+video/mpeg; /usr/bin/mplayer %s; description="MPEG 2 Video"; test=test -n "$DISPLAY"
+video/x-ms-afs; /usr/bin/mplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
+video/x-ms-asf; /usr/bin/mplayer %s; description="MS ASF video"; test=test -n "$DISPLAY"
+video/x-msvideo; /usr/bin/mplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
+video/x-ms-wma; /usr/bin/mplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
+video/x-ms-wmv; /usr/bin/mplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
+video/x-ms-wmx; /usr/bin/mplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
+video/x-ms-wvx; /usr/bin/mplayer %s; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/mplayer.preinst	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,44 @@
+#!/bin/sh
+# preinst script
+#
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+case "$1" in
+    install)
+    ;;
+    upgrade)
+    if dpkg --compare-versions "$2" le "1.0~rc3+svn20090405-1"; then
+        md5=`md5sum /etc/mplayer/mplayer.conf | cut -d' ' -f1`
+	case "$md5" in
+	    9bdac8eb1184daa188d4829575ceafe8|\
+	    46f52a60c07ed788500056dd7ffd27b9)
+		echo "removing obsolete /etc/mplayer/mplayer.conf"
+		rm -f /etc/mplayer/mplayer.conf
+	esac
+    fi
+
+    ;;
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/prefs/MD5SUMS	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,34 @@
+cb4bb06ebc804f5dc4ec0ed516dc20d9  all-20061022.tar.bz2
+0407e8ad132e37ccd3f932448ca201c5  all-20071007.tar.bz2
+c71cbf23c9ac84b85a15801af6fe5fa4  all-alpha-20061028.tar.bz2
+7918b605cca3df7e2c34784f1328e494  all-ppc-20061022.tar.bz2
+abcf4a3abc16cf88c9df7e0a77e9b941  essential-20061022.tar.bz2
+4ea9c2dbd0945c83af1a8d0dd363993c  essential-20071007.tar.bz2
+96fe3d614650531dda6675124f986a13  essential-alpha-20061028.tar.bz2
+af409ba2918dc8f639dded805102fc76  essential-amd64-20061203.tar.bz2
+8e1ceeec51469f5baac65e56fac709e8  essential-amd64-20071007.tar.bz2
+df9ec99d9fa7ef0ab6a633cfb421d637  essential-ppc-20061022.tar.bz2
+6682d5013a91bb80fdde87a516f6a8af  essential-ppc-20071007.tar.bz2
+1f5b8e9d9e31f898b1207a0b3bd70f32  qt5dlls-20040626.tar.bz2
+dbb2e77156a69179473b86f7498e9b29  qt63dlls-20050115.tar.bz2
+9fb88417aef157e2f1f5b7be57eaed7b  qt65dlls-20040704.tar.bz2
+c8cc10f2c9f109fa44fc4dddb91571c4  qt6dlls-20040626.tar.bz2
+a7e750afda31796d322395d77c4184d0  qtextras-20041107.tar.bz2
+c9ae3969ba1e73a8cbeef38f5803fd2e  rp8codecs-20040626.tar.bz2
+32919658c4bdfb3454173e3d64d26dc2  rp8codecs-alpha-20050115.tar.bz2
+4cc9a6270f9aa834b4fef49d71b9faf9  rp8codecs-ppc-20050115.tar.bz2
+534658c867abb81c38e0c05bccc79a79  rp8codecs-win32-20040626.tar.bz2
+a32f4fa1f77593536a57e4b662fde7aa  rp9codecs-20050115.tar.bz2
+6b56c1c127f5ac0c4c8a9878f24477ca  rp9codecs-win32-20050115.tar.bz2
+4558d3690e9479b06df16d0a15b35f9d  unsupported-20040809.tar.bz2
+90ba6a76ded2f9fd9f865024bd8de3d3  win32codecs-20040703.tar.bz2
+58ce4d68001d4f39c3e84d52834fb3ef  win32codecs-essential-20040703.tar.bz2
+a7c980a1a94fbac6ebd34c7485a1891d  xanimdlls-20040626.tar.bz2
+0b4877ac52eb7e84eb3031e6d7a3f65d  xanimdlls-alpha-20061028.tar.bz2
+8965e5f67f39530f293fc6c594bca19a  xanimdlls-ppc-20040626.tar.bz2
+1e409d500336a8318cbe2a67bbf9d9ca  essential-macosx-x86-20060611.zip
+788cf4940280fd787c0a2141d88ce3c7  rp9codecs-macosx-20041107.pkg.zip
+1323e8d46bfc7b8d1d6d172018222e9c  windows-all-20061022.zip
+f96557eeddb4ea9d286a89ff8c91750a  windows-all-20071007.zip
+0cc375cebb4f7820ad82bc2802171193  windows-essential-20061022.zip
+e32bdc9970f0df7da8eb23d2b254b866  windows-essential-20071007.zip
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/prefs/codecs_list	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,10 @@
+i386    @MAINSITE@ releases/codecs essential-20071007.tar.bz2
+powerpc @MAINSITE@ releases/codecs essential-ppc-20071007.tar.bz2
+amd64   @MAINSITE@ releases/codecs essential-amd64-20071007.tar.bz2
+alpha   @MAINSITE@ releases/codecs essential-alpha-20061028.tar.bz2
+
+
+
+
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/prefs/mirrors	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,7 @@
+http://www1.mplayerhq.hu/MPlayer/
+http://www2.mplayerhq.hu/MPlayer/
+http://www3.mplayerhq.hu/MPlayer/
+http://www4.mplayerhq.hu/MPlayer/
+http://www5.mplayerhq.hu/MPlayer/
+http://www7.mplayerhq.hu/MPlayer/
+http://www8.mplayerhq.hu/MPlayer/
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/rules	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,193 @@
+#!/usr/bin/make -f
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+# Support multiple makes at once
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+NUMJOBS = -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+else
+# on i386 and amd64, we query the system unless overriden by DEB_BUILD_OPTIONS
+ifeq      ($(DEB_BUILD_ARCH),i386)
+NUMJOBS := -j$(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
+else ifeq ($(DEB_BUILD_ARCH),amd64)
+NUMJOBS := -j$(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
+endif
+endif
+
+
+# do not run the actual rules of this makefile in parallel. sub-makes
+# can go in parallel
+.NOTPARALLEL:
+
+############
+
+DEB_SOURCE := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
+DEB_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
+UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed -r 's/[^:]+://; s/-[^-]+$$//')
+SVN_VERSION := $(shell echo $(UPSTREAM_VERSION) | sed -nr 's/^[0-9.:-~]+\+svn([0-9]+)$$/\1/p')
+
+
+#UPSTREAMSOURCE := upstream SVN repository
+UPSTREAMSOURCE := http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_ARCH       ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_HOST_ARCH_OS    ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+DEB_HOST_ARCH_CPU   ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+
+
+# XXX enable-menu is frowned upon by upstream
+CONFIGURE_FLAGS = \
+	--prefix=/usr \
+	--confdir=/etc/mplayer \
+	--enable-xvmc \
+	--enable-menu \
+	--disable-arts \
+	--enable-largefiles \
+	--language=all \
+	$(archconf)
+
+ifeq ($(DEB_HOST_ARCH),i386)
+#configure optimizes for the cpu detected at ./configure time
+#in order to build a generic binary, avoid non-standard opcodes through gcc
+  archconf += --target=i586-linux
+  CONFIGURE_FLAGS += --enable-runtime-cpudetection
+endif
+ifeq ($(DEB_HOST_ARCH),amd64)
+  CONFIGURE_FLAGS += --enable-runtime-cpudetection
+endif
+ifeq ($(DEB_HOST_ARCH),kfreebsd-i386)
+  CONFIGURE_FLAGS += --enable-runtime-cpudetection
+endif
+ifeq ($(DEB_HOST_ARCH),kfreebsd-amd64)
+  CONFIGURE_FLAGS += --enable-runtime-cpudetection
+endif
+ifeq ($(DEB_HOST_ARCH),powerpc)
+  CONFIGURE_FLAGS += --enable-runtime-cpudetection
+endif
+ifeq ($(DEB_HOST_ARCH),alpha)
+#Avoid high optimization through gcc.
+# see http://permalink.gmane.org/gmane.linux.debian.ports.alpha/7295
+  archconf += --target=alpha_ev5-linux
+endif
+
+# generate debugging symbols for mplayer-dbg for all archs but mipsen,
+# see bug #520113
+ifeq (,$(findstring mips,$(DEB_HOST_ARCH)))
+CONFIGURE_FLAGS += --enable-debug
+endif
+
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+    CONFIGURE_FLAGS += --enable-mga --enable-3dfx --enable-tdfxfb
+endif
+
+# See http://wiki.debian.org/Teams/Dpkg/DebianRules; #465282  and
+# https://wiki.ubuntu.com/DistCompilerFlags
+CLEAN_ENV=env -u CFLAGS -u CPPFLAGS -u LDFLAGS -u FFLAGS -u CXXFLAGS
+
+build: build-arch build-indep
+
+####### build-arch
+build-arch:
+	dh_testdir
+	dh_prep -a
+	$(MAKE) -f debian/rules debian/mplayer/usr/bin/mplayer
+	$(MAKE) -f debian/rules debian/mencoder/usr/bin/mencoder
+	$(MAKE) -f debian/rules debian/mplayer-gui/usr/bin/gmplayer
+
+# build non-gui version
+# & mencoder
+debian/mplayer/usr/bin/mplayer debian/mencoder/usr/bin/mencoder:
+	dh_testdir
+	$(CLEAN_ENV) \
+	./configure $(CONFIGURE_FLAGS) --disable-gui
+	$(CLEAN_ENV) \
+	$(MAKE) $(NUMJOBS) mplayer mencoder
+	$(MAKE) install-mplayer DESTDIR=$(CURDIR)/debian/mplayer
+	$(MAKE) install-mplayer-man DESTDIR=$(CURDIR)/debian/mplayer
+	$(MAKE) install-mencoder DESTDIR=$(CURDIR)/debian/mencoder
+	$(MAKE) install-mencoder-man DESTDIR=$(CURDIR)/debian/mplayer
+	install -D -m 644 debian/mplayer.conf \
+	                  $(CURDIR)/debian/mplayer/etc/mplayer/mplayer.conf
+
+# build gui version
+debian/mplayer-gui/usr/bin/gmplayer:
+	dh_testdir
+	$(CLEAN_ENV) \
+	./configure $(CONFIGURE_FLAGS) --enable-gui
+	$(CLEAN_ENV) \
+	$(MAKE) $(NUMJOBS) mplayer
+	install -D -m 755 mplayer $(CURDIR)/debian/mplayer-gui/usr/bin/gmplayer
+	install -D -m 644 etc/mplayer.desktop \
+	                  $(CURDIR)/debian/mplayer-gui/usr/share/applications/mplayer.desktop
+	install -D -m 644 etc/mplayer.xpm \
+	                  $(CURDIR)/debian/mplayer-gui/usr/share/pixmaps/mplayer.xpm
+
+
+# binaries already installed via build rules as we have to build several flavors
+install-arch: build-arch
+
+###### build-indep
+DOCS/HTML/en/index.html:
+	sh debian/all-lang-config-mak.sh > config.mak
+	cd DOCS/xml && ./configure
+	$(MAKE) -C DOCS/xml html-chunked
+
+build-indep:
+	dh_testdir
+	dh_prep -i
+	test ! -f DOCS/HTML/en/index.html || $(MAKE) -f debian/rules DOCS/HTML/en/index.html
+
+# commands to compile the documentation
+install-indep: build-indep
+	dh_installchangelogs -i
+	dh_installdocs -i
+	dh_compress -i
+	dh_fixperms -i
+
+################ clean
+
+clean:
+	dh_testdir
+	dh_testroot
+	[ ! -f config.mak ] || $(MAKE) -C DOCS/xml releaseclean && $(MAKE) distclean
+	dh_clean snapshot_version
+
+# Build architecture-independent packages
+binary-indep: install-indep
+
+# Build architecture-dependent packages
+binary-arch: install-arch
+	dh_testdir
+	dh_testroot
+	dh_install -a
+	dh_installchangelogs -a
+	dh_installdocs -a
+	dh_installexamples -a
+	dh_installmenu -a
+	dh_installmime -a
+	dh_installman -a
+	dh_strip -a --dbg-package=mplayer-dbg
+	dh_link
+	dh_compress -a
+	dh_fixperms -a
+	dh_makeshlibs -a
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+
+get-orig-source:
+	dh_testdir
+	sh debian/get-orig-source.sh -d $(SVN_VERSION)
+
+PHONY += build clean binary-indep binary-arch binary-common binary
+PHONY += install binary binary-arch binary-indep clean checkroot get-orig-source
+PHONY += autocontrol fix-orig-source copy-orig-from-svn download-and-unpack-orig
+
+.PHONY: $(PHONY)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/source/format	Tue Aug 03 13:02:07 2010 +0000
@@ -0,0 +1,1 @@
+3.0 (quilt)