diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-03-28 21:37:03 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-03-28 21:37:03 -0300 |
commit | 5be6ed546c79eb2c412d02b5b78831de1a9cfbd8 (patch) | |
tree | 76553f112f8ea3e7351192400da2eac0ad1b262b /libre/mplayer-libre-vaapi/PKGBUILD | |
parent | 17a49b9d2e08b62e536cf536288821a86afe07d5 (diff) |
rename mplayer-vaapi-libre to mplayer-libre-vaapi and rebuild against libx264.so.142
Diffstat (limited to 'libre/mplayer-libre-vaapi/PKGBUILD')
-rw-r--r-- | libre/mplayer-libre-vaapi/PKGBUILD | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/libre/mplayer-libre-vaapi/PKGBUILD b/libre/mplayer-libre-vaapi/PKGBUILD new file mode 100644 index 000000000..68873d749 --- /dev/null +++ b/libre/mplayer-libre-vaapi/PKGBUILD @@ -0,0 +1,95 @@ +# $Id: PKGBUILD 108189 2014-03-24 13:39:00Z foutrelis $ +# Maintainer: Evangelos Foutras <evangelos@foutrelis.com> +# Contributor: Ionut Biru <ibiru@archlinux.org> +# Contributor: Hugo Doria <hugo@archlinux.org> +# Maintainer (Parabola): André Silva <emulatorman@parabola.nu> +# Contributor (Parabola): Nicolás Reynolds <fauno@kiwwwi.com.ar> +# Contributor (Parabola): Márcio Silva <coadde@parabola.nu> + +_pkgname=mplayer-vaapi +pkgname=mplayer-libre-vaapi +pkgver=36265 +pkgrel=9 +pkgdesc="A movie player, compiled with vaapi support, without nonfree faac support" +arch=('i686' 'x86_64') +url="http://gitorious.org/vaapi/mplayer" +license=('GPL') +depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'libcdio-paranoia' 'libxinerama' + 'lame' 'fontconfig' 'libtheora' 'xvidcore' 'libmng' 'libxss' 'glu' + 'sdl' 'smbclient' 'aalib' 'jack' 'libcaca' 'x264' 'speex' 'faad2' + 'lirc-utils' 'ttf-dejavu' 'libxvmc' 'enca' 'opencore-amr' 'libdca' + 'a52dec' 'schroedinger' 'mpg123' 'libvpx' 'libpulse' 'fribidi' + 'libbluray' 'libva' 'libass' 'desktop-file-utils') +makedepends=('unzip' 'live-media' 'yasm' 'ladspa' 'git' 'mesa') +provides=("mplayer=$pkgver" "mplayer-vaapi=$pkgver" 'mplayer-vaapi-libre') +conflicts=('mplayer' 'mplayer-vaapi' 'mplayer-vaapi-libre') +replaces=('mplayer-vaapi' 'mplayer-vaapi-libre') +backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf') +source=(http://pkgbuild.com/~foutrelis/sources/$_pkgname/$_pkgname-$pkgver.tar.xz{,.sig} + cdio-includes.patch + tweak-desktop-file.patch + subreader-fix-srt-parsing.patch) +options=('!buildflags' '!emptydirs') +install=mplayer-vaapi.install +sha256sums=('5747c28c30c15d1000fb655a8abaa4b22483746d0e82775b27466948ae0c549a' + 'SKIP' + '72e6c654f9733953ad2466d0ea1a52f23e753791d8232d90f13293eb1b358720' + '5a09fb462729a4e573568f9e8c1f57dbe7f69c0b68cfa4f6d70b3e52c450d93b' + '8b6cd325d89ff8bce3662c6aaa9b61b8e6163c6574e09b575426a1eed02b8ad3') + + +prepare() { + cd "$srcdir/$_pkgname-$pkgver" + + patch -Np0 -i "$srcdir/cdio-includes.patch" + patch -d etc -Np0 -i "$srcdir/tweak-desktop-file.patch" + + # http://bugzilla.mplayerhq.hu/show_bug.cgi?id=2139 + patch -Np0 -i "$srcdir/subreader-fix-srt-parsing.patch" +} + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + ./configure \ + --prefix=/usr \ + --enable-runtime-cpudetection \ + --disable-gui \ + --disable-arts \ + --disable-gif \ + --disable-liblzo \ + --enable-speex \ + --disable-cdparanoia \ + --disable-openal \ + --disable-libdv \ + --disable-musepack \ + --disable-esd \ + --disable-mga \ + --disable-ass-internal \ + --disable-faac \ + --enable-xvmc \ + --enable-radio \ + --enable-radio-capture \ + --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/$_pkgname-$pkgver" + + make DESTDIR="$pkgdir" install-mplayer install-mplayer-man + install -Dm644 etc/{codecs.conf,input.conf,example.conf} "$pkgdir/etc/mplayer/" + install -Dm644 etc/mplayer.desktop "$pkgdir/usr/share/applications/mplayer.desktop" + install -d "$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" + install -Dm644 etc/mplayer256x256.png "$pkgdir/usr/share/pixmaps/mplayer.png" +} + +# vim:set ts=2 sw=2 et: |