From 88ea9f701cd24f37189b91573f17ef4d0a5aaad5 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 24 Aug 2011 09:34:41 +0000 Subject: [PATCH] mplayer: fixed build avoiding thumb instructions. --- mplayer/.footprint | 39 +++++++++++++++++++++++++++++++++++ mplayer/.md5sum | 3 +++ mplayer/Pkgfile | 48 ++++++++++++++++++++++++++++++++++++++++++++ mplayer/README | 2 ++ mplayer/mplayer.conf | 8 ++++++++ 5 files changed, 100 insertions(+) create mode 100644 mplayer/.footprint create mode 100644 mplayer/.md5sum create mode 100644 mplayer/Pkgfile create mode 100644 mplayer/README create mode 100644 mplayer/mplayer.conf diff --git a/mplayer/.footprint b/mplayer/.footprint new file mode 100644 index 0000000..b60db63 --- /dev/null +++ b/mplayer/.footprint @@ -0,0 +1,39 @@ +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 diff --git a/mplayer/.md5sum b/mplayer/.md5sum new file mode 100644 index 0000000..8256242 --- /dev/null +++ b/mplayer/.md5sum @@ -0,0 +1,3 @@ +1ecd31d17b51f16332b1fcc7da36b312 font-arial-iso-8859-1.tar.bz2 +441e311dcc5b82e6993a89b4ba7b2a2f mplayer-export-2011-08-16.tar.bz2 +c64631601912913f3e5dfbecc3b79d44 mplayer.conf diff --git a/mplayer/Pkgfile b/mplayer/Pkgfile new file mode 100644 index 0000000..246be3e --- /dev/null +++ b/mplayer/Pkgfile @@ -0,0 +1,48 @@ +# 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 +} diff --git a/mplayer/README b/mplayer/README new file mode 100644 index 0000000..1486428 --- /dev/null +++ b/mplayer/README @@ -0,0 +1,2 @@ +More information can be found at http://www.mplayerhq.hu/DOCS/codecs.html and +http://www.mplayerhq.hu/DOCS/HTML/en/index.html diff --git a/mplayer/mplayer.conf b/mplayer/mplayer.conf new file mode 100644 index 0000000..c64d991 --- /dev/null +++ b/mplayer/mplayer.conf @@ -0,0 +1,8 @@ +# MPlayer system-wide configuration file +# refer to the mplayer manpage for more information + +vo=xv +double=yes +ao=alsa +framedrop=yes +cache=8192 -- 2.26.2