--- /dev/null
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/mplayer/
+-rw-r--r-- root/root etc/mplayer/input.conf
+-rw-r--r-- root/root etc/mplayer/mplayer.conf
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/mencoder
+-rwxr-xr-x root/root usr/bin/mplayer
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+lrwxrwxrwx root/root usr/man/man1/mencoder.1.gz -> mplayer.1.gz
+-rw-r--r-- root/root usr/man/man1/mplayer.1.gz
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/mplayer/
+lrwxrwxrwx root/root usr/share/mplayer/font -> font-arial-14-iso-8859-1
+drwxr-xr-x root/root usr/share/mplayer/font-arial-14-iso-8859-1/
+-rw-r--r-- root/root usr/share/mplayer/font-arial-14-iso-8859-1/font.desc
+-rw-r--r-- root/root usr/share/mplayer/font-arial-14-iso-8859-1/iso-8859-1-a.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-14-iso-8859-1/iso-8859-1-b.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-14-iso-8859-1/osd-mplayer-a.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-14-iso-8859-1/osd-mplayer-b.raw
+drwxr-xr-x root/root usr/share/mplayer/font-arial-18-iso-8859-1/
+-rw-r--r-- root/root usr/share/mplayer/font-arial-18-iso-8859-1/font.desc
+-rw-r--r-- root/root usr/share/mplayer/font-arial-18-iso-8859-1/iso-8859-1-a.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-18-iso-8859-1/iso-8859-1-b.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-18-iso-8859-1/osd-mplayer-a.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-18-iso-8859-1/osd-mplayer-b.raw
+drwxr-xr-x root/root usr/share/mplayer/font-arial-24-iso-8859-1/
+-rw-r--r-- root/root usr/share/mplayer/font-arial-24-iso-8859-1/font.desc
+-rw-r--r-- root/root usr/share/mplayer/font-arial-24-iso-8859-1/iso-8859-1-a.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-24-iso-8859-1/iso-8859-1-b.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-24-iso-8859-1/osd-mplayer-a.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-24-iso-8859-1/osd-mplayer-b.raw
+drwxr-xr-x root/root usr/share/mplayer/font-arial-28-iso-8859-1/
+-rw-r--r-- root/root usr/share/mplayer/font-arial-28-iso-8859-1/font.desc
+-rw-r--r-- root/root usr/share/mplayer/font-arial-28-iso-8859-1/iso-8859-1-a.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-28-iso-8859-1/iso-8859-1-b.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-28-iso-8859-1/osd-mplayer-a.raw
+-rw-r--r-- root/root usr/share/mplayer/font-arial-28-iso-8859-1/osd-mplayer-b.raw
--- /dev/null
+# Description: Versatile media player and encoder/converter
+# URL: http://www.mplayerhq.hu/
+# Packager: Matt Housh, jaeger at morpheus dot net
+# Maintainer: Thomas Penteker, tek at serverop dot de
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: expat freetype xorg-libxinerama xorg-libxv xorg-libxxf86dga xorg-libxxf86vm yasm
+# Nice to have: libsdl libjpeg libpng lame zlib libogg libvorbis cdparanoia win32-essential-codecs faac x264 libdvdnav libdca
+
+name=mplayer
+version=export-2011-08-16
+release=1
+source=(http://crux.nu/~tek/$name-$version.tar.bz2
+ http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
+ mplayer.conf)
+
+build() {
+ cd $name-$version
+ # We avoid thumb instructions over CFLAGS
+ export CFLAGS="$(echo $CFLAGS | sed -e 's/\-mthumb//')"
+ # Keep in line with mplayer CFLAGS, but allow people to set their own march/mtune values.
+ export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer -fno-strict-aliasing"
+
+ rm -f ffmpeg/mp_auto_pull
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/man \
+ --codecsdir=/usr/share/codecs \
+ --confdir=/etc/mplayer
+ make
+ make DESTDIR=$PKG install
+
+ (cd $PKG/usr/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
+
+ # fonts
+ mkdir -p $PKG/usr/share/mplayer
+ cp -a $SRC/font-arial-iso-8859-1/font-arial-??-iso-8859-1 \
+ $PKG/usr/share/mplayer
+ ln -s font-arial-14-iso-8859-1 $PKG/usr/share/mplayer/font
+
+ # config
+ mkdir -p $PKG/etc/mplayer
+ install -m 644 $SRC/mplayer.conf $PKG/etc/mplayer/
+ install -m 644 etc/input.conf $PKG/etc/mplayer/
+
+ # finish up
+ rmdir $PKG/usr/lib
+ find $PKG -name '*.desc' | xargs chmod g-w
+}