PKGBUILDs/community/mplayer-vaapi/PKGBUILD

81 lines
2.7 KiB
Bash
Raw Normal View History

2012-05-14 23:37:35 +00:00
# $Id: PKGBUILD 70637 2012-05-13 16:56:17Z foutrelis $
2012-03-22 03:25:08 +00:00
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org
# - remove --enable-runtime-cpudetection from configure
plugrel=1
pkgname=mplayer-vaapi
pkgver=34578
2012-05-14 23:37:35 +00:00
pkgrel=5
2012-03-22 03:25:08 +00:00
pkgdesc="A movie player, compiled with vaapi support"
arch=('i686' 'x86_64')
url="http://gitorious.org/vaapi/mplayer"
license=('GPL')
depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'libcdio' 'libxinerama' 'sdl'
'lame' 'fontconfig' 'libtheora' 'xvidcore' 'libmng' 'libxss' 'mesa'
'smbclient' 'aalib' 'jack' 'libcaca' 'x264' 'faac' 'faad2'
'lirc-utils' 'ttf-dejavu' 'libxvmc' 'enca' 'opencore-amr' 'libdca'
'a52dec' 'schroedinger' 'mpg123' 'libvpx' 'libpulse' 'fribidi' 'faad2'
'libva' 'libass' 'desktop-file-utils')
makedepends=('unzip' 'live-media' 'yasm' 'ladspa' 'git')
provides=("mplayer=$pkgver")
conflicts=('mplayer')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
source=(http://pkgbuild.com/~foutrelis/mplayer-vaapi-$pkgver.tar.xz
2012-05-14 23:37:35 +00:00
tweak-desktop-file.patch
mplayer.png
live-media.patch)
2012-03-22 03:25:08 +00:00
options=('!buildflags' '!emptydirs')
install=mplayer-vaapi.install
sha256sums=('cc35a057c8a64d2cdec2dc0a037811ef0f91dd03cd3d07465c7272a08665a37d'
2012-05-14 23:37:35 +00:00
'5b39f0a61969bf330c4434cb17975101be93c27334f65e154e4a93033033e795'
'061739a8cc267748ad58f168034cc39785d949a5262772535e1b347c7842af48'
'9c1400f27dd2ea54c125c66ed1af0eab19761b1b2ae808fa491cd3732fd8a685')
2012-03-22 03:25:08 +00:00
build() {
cd "$srcdir/mplayer-vaapi-$pkgver"
2012-05-14 23:37:35 +00:00
patch -d etc -Np0 -i "$srcdir/tweak-desktop-file.patch"
patch -Np0 -i "$srcdir/live-media.patch"
2012-03-22 03:25:08 +00:00
./configure --prefix=/usr \
--disable-gui \
--disable-arts \
--disable-liblzo \
--disable-speex \
--disable-cdparanoia \
--disable-openal \
--disable-libdv \
--disable-musepack \
--disable-esd \
--disable-mga \
--disable-ass-internal \
--enable-xvmc \
--disable-vdpau \
--enable-vaapi \
--language=all \
--confdir=/etc/mplayer
[[ $CARCH == i686 ]] && sed -i 's|-march=i486|-march=i686|g' config.mak
make
}
package() {
cd "$srcdir/mplayer-vaapi-$pkgver"
make -j1 DESTDIR="$pkgdir" install-mplayer install-mplayer-man
install -Dm644 etc/{codecs.conf,input.conf,example.conf} "$pkgdir/etc/mplayer/"
2012-05-14 23:37:35 +00:00
install -Dm644 etc/mplayer.desktop "$pkgdir/usr/share/applications/mplayer.desktop"
install -d "$pkgdir/usr/share/mplayer/"
2012-03-22 03:25:08 +00:00
ln -s /usr/share/fonts/TTF/DejaVuSans.ttf "$pkgdir/usr/share/mplayer/subfont.ttf"
rm -rf "$pkgdir/usr/share/mplayer/font"
install -Dm644 "$srcdir/mplayer.png" "$pkgdir/usr/share/pixmaps/mplayer.png"
}
# vim:set ts=2 sw=2 et: