PKGBUILDs/community/mplayer-vaapi/PKGBUILD

95 lines
3.2 KiB
Bash
Raw Normal View History

2012-07-09 21:07:40 +00:00
# $Id: PKGBUILD 73508 2012-07-08 19:34:25Z 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>
2012-07-09 21:07:40 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2012-03-22 03:25:08 +00:00
# - remove --enable-runtime-cpudetection from configure
pkgname=mplayer-vaapi
2013-07-18 13:13:58 +00:00
pkgver=36265
2013-07-18 13:28:09 +00:00
pkgrel=1
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')
2013-01-15 14:03:10 +00:00
depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'libcdio-paranoia' 'libxinerama' 'sdl'
2012-10-14 16:47:46 +00:00
'lame' 'fontconfig' 'libtheora' 'xvidcore' 'libmng' 'libxss' 'glu'
2013-01-15 14:03:10 +00:00
'sdl' 'smbclient' 'aalib' 'jack' 'libcaca' 'x264' 'faac' 'faad2'
2012-03-22 03:25:08 +00:00
'lirc-utils' 'ttf-dejavu' 'libxvmc' 'enca' 'opencore-amr' 'libdca'
2012-07-09 21:07:40 +00:00
'a52dec' 'schroedinger' 'mpg123' 'libvpx' 'libpulse' 'fribidi'
'libbluray' 'libva' 'libass' 'desktop-file-utils')
2012-10-14 16:47:46 +00:00
makedepends=('unzip' 'live-media' 'yasm' 'ladspa' 'git' 'mesa')
2012-03-22 03:25:08 +00:00
provides=("mplayer=$pkgver")
conflicts=('mplayer')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
2013-07-18 13:13:58 +00:00
source=(http://pkgbuild.com/~foutrelis/sources/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}
2013-01-15 14:03:10 +00:00
cdio-includes.patch
2013-05-15 01:04:43 +00:00
tweak-desktop-file.patch
2013-07-18 13:13:58 +00:00
demux-gif.patch
2013-05-15 01:04:43 +00:00
subreader-fix-srt-parsing.patch)
2012-03-22 03:25:08 +00:00
options=('!buildflags' '!emptydirs')
install=mplayer-vaapi.install
2013-07-18 13:13:58 +00:00
sha256sums=('5747c28c30c15d1000fb655a8abaa4b22483746d0e82775b27466948ae0c549a'
'SKIP'
2013-01-15 14:03:10 +00:00
'72e6c654f9733953ad2466d0ea1a52f23e753791d8232d90f13293eb1b358720'
2013-05-15 01:04:43 +00:00
'5a09fb462729a4e573568f9e8c1f57dbe7f69c0b68cfa4f6d70b3e52c450d93b'
2013-07-18 13:13:58 +00:00
'6774f57c027474388497606edfccbb33509cc78b573cdc322dd0955764c6f9c2'
2013-05-26 18:05:01 +00:00
'8b6cd325d89ff8bce3662c6aaa9b61b8e6163c6574e09b575426a1eed02b8ad3')
2012-03-22 03:25:08 +00:00
2013-05-15 01:04:43 +00:00
prepare() {
2013-07-18 13:13:58 +00:00
cd "$srcdir/$pkgname-$pkgver"
2012-03-22 03:25:08 +00:00
2013-07-18 13:13:58 +00:00
patch -Np0 -i "$srcdir/cdio-includes.patch"
2012-05-14 23:37:35 +00:00
patch -d etc -Np0 -i "$srcdir/tweak-desktop-file.patch"
2013-07-18 13:13:58 +00:00
# https://bugs.archlinux.org/task/36039
patch -Np0 -i "$srcdir/demux-gif.patch"
2013-05-15 01:04:43 +00:00
# http://bugzilla.mplayerhq.hu/show_bug.cgi?id=2139
2013-05-26 18:05:01 +00:00
patch -Np0 -i "$srcdir/subreader-fix-srt-parsing.patch"
2013-05-15 01:04:43 +00:00
}
build() {
2013-07-18 13:13:58 +00:00
cd "$srcdir/$pkgname-$pkgver"
2013-05-15 01:04:43 +00:00
2012-07-09 21:07:40 +00:00
./configure \
--prefix=/usr \
2012-03-22 03:25:08 +00:00
--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 \
2012-07-09 21:07:40 +00:00
--enable-radio \
--enable-radio-capture \
2012-03-22 03:25:08 +00:00
--disable-vdpau \
--enable-vaapi \
--language=all \
--confdir=/etc/mplayer
[[ $CARCH == i686 ]] && sed -i 's|-march=i486|-march=i686|g' config.mak
make
}
package() {
2013-07-18 13:13:58 +00:00
cd "$srcdir/$pkgname-$pkgver"
2012-03-22 03:25:08 +00:00
2012-07-09 21:07:40 +00:00
make DESTDIR="$pkgdir" install-mplayer install-mplayer-man
2012-03-22 03:25:08 +00:00
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"
2012-07-09 21:07:40 +00:00
install -Dm644 etc/mplayer256x256.png "$pkgdir/usr/share/pixmaps/mplayer.png"
2012-03-22 03:25:08 +00:00
}
# vim:set ts=2 sw=2 et: