diff options
author | Thomas Penteker <tek@serverop.de> | 2013-10-07 02:47:27 +0200 |
---|---|---|
committer | Thomas Penteker <tek@serverop.de> | 2013-10-07 02:47:27 +0200 |
commit | 956cce7087ae78d93c6c0635a83c7f13307e53a3 (patch) | |
tree | 2bf3539453c1cbf6ab98de487b2d6c1a617d89ff /mplayer-vaapi/Pkgfile | |
parent | aab0cf0c579fa27d29fee1878b70609aec5ff2b3 (diff) | |
download | contrib-956cce7087ae78d93c6c0635a83c7f13307e53a3.tar.gz contrib-956cce7087ae78d93c6c0635a83c7f13307e53a3.tar.xz |
mplayer-vaapi: initial import
Diffstat (limited to 'mplayer-vaapi/Pkgfile')
-rw-r--r-- | mplayer-vaapi/Pkgfile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/mplayer-vaapi/Pkgfile b/mplayer-vaapi/Pkgfile new file mode 100644 index 000000000..27508cb53 --- /dev/null +++ b/mplayer-vaapi/Pkgfile @@ -0,0 +1,48 @@ +# Description: Versatile media player and encoder/converter +# URL: https://gitorious.org/vaapi/mplayer/ +# Maintainer: Thomas Penteker, tek at serverop dot de +# Packager: Matt Housh, jaeger at morpheus dot net +# Depends on: expat, freetype, xorg-libxinerama, xorg-libxv, # xorg-libxxf86dga, xorg-libxxf86vm, yasm, libva +# Nice to have: libva-intel, libsdl, libjpeg, libpng, lame, zlib, libogg, libvorbis, cdparanoia, win32-essential-codecs, faac, x264, libdvdnav, libdca + +name=mplayer-vaapi +version=2013-09-12 +release=1 +source=(http://crux.nu/~tek/mplayer-vaapi-$version.tar.xz + http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 + mplayer.conf) + +build() { + cd mplayer-vaapi-$version + + # 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 \ + --enable-vaapi + + 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 +} |