2011-02-11 02:17:51 +08:00
|
|
|
pkgname=mplayer-vaapi
|
2013-12-08 11:02:21 +08:00
|
|
|
pkgver=36265
|
2018-06-05 06:08:13 +08:00
|
|
|
pkgrel=5
|
2011-02-11 02:17:51 +08:00
|
|
|
pkgdesc="A movie player, compiled with vaapi support"
|
2012-11-23 06:03:14 +08:00
|
|
|
arch=('x86_64')
|
2012-06-02 02:46:51 +08:00
|
|
|
url="http://gitorious.org/vaapi/mplayer"
|
2011-02-11 02:17:51 +08:00
|
|
|
license=('GPL')
|
2012-12-19 14:00:39 +08:00
|
|
|
depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'libcdio' 'libxinerama' 'sdl' 'lame' 'fontconfig'
|
2013-12-08 11:02:21 +08:00
|
|
|
'libtheora' 'xvidcore' 'libmng' 'libxss' 'mesa' 'smbclient' 'aalib' 'jack' 'libcaca' 'x264'
|
2012-12-19 14:00:39 +08:00
|
|
|
'faac' 'faad2' 'lirc-utils' 'ttf-dejavu' 'libxvmc' 'enca' 'opencore-amr' 'libdca' 'a52dec'
|
|
|
|
'schroedinger' 'mpg123' 'libvpx' 'pulseaudio' 'fribidi' 'faad2' 'libva' 'desktop-file-utils'
|
2015-12-31 22:30:38 +08:00
|
|
|
'nas' 'libass' 'giflib' 'glu')
|
2012-06-02 02:46:51 +08:00
|
|
|
makedepends=('unzip' 'live-media' 'yasm' 'ladspa' 'git')
|
2013-12-08 11:02:21 +08:00
|
|
|
optdepends=('libva-intel-driver: video acceleration for Intel graphic cards')
|
2012-12-20 05:08:08 +08:00
|
|
|
provides=("mplayer=${pkgver}" 'mencoder')
|
2011-02-11 02:17:51 +08:00
|
|
|
conflicts=('mplayer')
|
|
|
|
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
|
2012-06-02 02:46:51 +08:00
|
|
|
categories=('multimedia')
|
|
|
|
options=('!buildflags' '!emptydirs')
|
2012-09-07 13:39:22 +08:00
|
|
|
install=${pkgname}.install
|
2013-07-25 08:14:48 +08:00
|
|
|
source=("http://pkgbuild.com/~foutrelis/sources/${pkgname}/${pkgname}-${pkgver}.tar.xz"
|
2013-12-08 11:02:21 +08:00
|
|
|
'tweak-desktop-file.patch'
|
2018-06-05 06:08:13 +08:00
|
|
|
'subreader-fix-srt-parsing.patch'
|
|
|
|
'ffmpeg-2.8.1-libvpxenc-remove-some-unused-ctrl-id-mappings.patch')
|
2013-12-08 11:02:21 +08:00
|
|
|
md5sums=('dda55251fd65c046ddeaf5927c676ec2'
|
|
|
|
'5e9a31281933ab5fd1c0c2b094eae4a7'
|
2018-06-05 06:08:13 +08:00
|
|
|
'4f2b5b0a5801ca607c8dbbe62047feab'
|
|
|
|
'71be9bcd297cb9ce833bbc5d425c0470')
|
2013-12-08 11:02:21 +08:00
|
|
|
|
2018-06-05 06:08:13 +08:00
|
|
|
prepare() {
|
2013-12-08 11:02:21 +08:00
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
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"
|
2018-06-05 06:08:13 +08:00
|
|
|
|
|
|
|
# https://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=6540fe04a3f9a11ba7084a49b3ee5fa2fc5b32ab
|
|
|
|
patch -d ffmpeg -Np1 -i "$srcdir/ffmpeg-2.8.1-libvpxenc-remove-some-unused-ctrl-id-mappings.patch"
|
2013-12-08 11:02:21 +08:00
|
|
|
}
|
2011-02-11 02:17:51 +08:00
|
|
|
|
|
|
|
build() {
|
2012-09-10 02:01:21 +08:00
|
|
|
cd "${srcdir}/mplayer-vaapi-${pkgver}"
|
2011-02-11 02:17:51 +08:00
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
2012-06-02 02:46:51 +08:00
|
|
|
--enable-runtime-cpudetection \
|
|
|
|
--enable-xvmc \
|
2012-08-27 19:24:55 +08:00
|
|
|
--enable-radio \
|
|
|
|
--enable-radio-capture \
|
2012-06-02 02:46:51 +08:00
|
|
|
--enable-vaapi \
|
|
|
|
--language=all \
|
|
|
|
--confdir=/etc/mplayer
|
2011-02-11 02:17:51 +08:00
|
|
|
|
|
|
|
make
|
2011-11-24 03:06:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-09-10 02:01:21 +08:00
|
|
|
cd "${srcdir}/mplayer-vaapi-${pkgver}"
|
2011-11-24 03:06:04 +08:00
|
|
|
|
2013-01-15 03:04:50 +08:00
|
|
|
make -j1 DESTDIR="${pkgdir}" install
|
2012-09-10 02:01:21 +08:00
|
|
|
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"
|
2011-02-11 02:17:51 +08:00
|
|
|
}
|