From ca7c217f85721d8f12e237d9d5c8dcf148adc5aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Fri, 28 Jan 2011 12:03:23 -0300 Subject: mplayer-vaapi-32825-1 --- libre/mplayer-vaapi-libre/PKGBUILD | 81 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 libre/mplayer-vaapi-libre/PKGBUILD (limited to 'libre/mplayer-vaapi-libre/PKGBUILD') diff --git a/libre/mplayer-vaapi-libre/PKGBUILD b/libre/mplayer-vaapi-libre/PKGBUILD new file mode 100644 index 000000000..0cc1756df --- /dev/null +++ b/libre/mplayer-vaapi-libre/PKGBUILD @@ -0,0 +1,81 @@ +# $Id: PKGBUILD 32760 2010-11-18 03:40:37Z foutrelis $ +# Maintainer (Parabola): fauno +# Maintainer: Evangelos Foutras +# Contributor: Ionut Biru +# Contributor: Hugo Doria + +pkgname=mplayer-vaapi-libre +pkgver=32669 +_vaapi_version=20101115 +pkgrel=1 +pkgdesc="A movie player, compiled with vaapi support, without faac dependency, added speex support" +arch=('i686' 'x86_64') +url="http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/" +license=('GPL') +depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'cdparanoia' 'libxinerama' 'sdl' + 'lame' 'libtheora' 'xvidcore' 'libmng' 'libxss' 'libgl' 'smbclient' + 'aalib' 'jack' 'libcaca' 'x264' 'lirc-utils' 'ttf-dejavu' 'speex' + 'libxvmc' 'enca' 'opencore-amr' 'libdca' 'a52dec' 'schroedinger' + 'libvpx' 'libpulse' 'libva') +makedepends=('unzip' 'mesa' 'live-media>=2010.01.13' 'yasm') +provides=("mplayer-vaapi=$pkgver") +conflicts=('mplayer' 'mplayer-vaapi') +replaces=("mplayer-vaapi=$pkgver") +backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf') +source=(http://pkgbuild.com/~foutrelis/mplayer-$pkgver.tar.xz + http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/mplayer-vaapi-$_vaapi_version.tar.bz2 + mplayer.desktop + mplayer.png + patch-fixes.patch) +md5sums=('6da7103785e69ac25163e9570185c8b4' + '372ba02746404d3fa2b3aa94657a2efd' + '647b9f4ab5284a7fef3f84f992214e77' + 'd00874ccc644b7f43d6ef1c942fcef28' + 'cbddc2d8b1140e274a2784bdbb1f9b04') + +build() { + cd "$srcdir/mplayer-$pkgver" + + # Custom CFLAGS break the mplayer build + unset CFLAGS LDFLAGS + + # Update vaapi patches for changes introduced in mplayer + patch -d "$srcdir/mplayer-vaapi-$_vaapi_version" -p1 -i \ + "$srcdir/patch-fixes.patch" + + for patch in mplayer-{vaapi{,-{gma500-workaround,0.29}},vdpau}; do + patch -Np1 -i "$srcdir/mplayer-vaapi-$_vaapi_version/patches/$patch.patch" + done + + ./configure --prefix=/usr \ + --disable-faac \ + --enable-runtime-cpudetection \ + --disable-gui \ + --disable-arts \ + --disable-liblzo \ + --disable-openal \ + --disable-fribidi \ + --disable-libdv \ + --disable-musepack \ + --disable-esd \ + --disable-mga \ + --enable-xvmc \ + --disable-vdpau \ + --enable-vaapi \ + --language=all \ + --confdir=/etc/mplayer + + [ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak + + make + make -j1 DESTDIR=$pkgdir install + install -Dm644 etc/{codecs.conf,input.conf,example.conf} "$pkgdir/etc/mplayer/" + install -dm755 "$pkgdir/usr/share/mplayer/" + ln -s /usr/share/fonts/TTF/DejaVuSans.ttf "$pkgdir/usr/share/mplayer/subfont.ttf" + rm -rf "$pkgdir/usr/share/mplayer/font" + # Desktop file (FS#14770) + install -Dm644 "$srcdir/mplayer.desktop" "$pkgdir/usr/share/applications/mplayer.desktop" + install -Dm644 "$srcdir/mplayer.png" "$pkgdir/usr/share/pixmaps/mplayer.png" +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-2-g168b