mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
added community/mplayer-vaapi
This commit is contained in:
parent
c0410a626e
commit
5329a7a567
4 changed files with 106 additions and 0 deletions
76
community/mplayer-vaapi/PKGBUILD
Normal file
76
community/mplayer-vaapi/PKGBUILD
Normal file
|
@ -0,0 +1,76 @@
|
|||
# $Id: PKGBUILD 66299 2012-02-23 13:44:43Z allan $
|
||||
# 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
|
||||
pkgrel=4
|
||||
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
|
||||
mplayer.desktop
|
||||
mplayer.png)
|
||||
options=('!buildflags' '!emptydirs')
|
||||
install=mplayer-vaapi.install
|
||||
sha256sums=('cc35a057c8a64d2cdec2dc0a037811ef0f91dd03cd3d07465c7272a08665a37d'
|
||||
'9aa54571b37d15aec2c8e3ddf086753217efc3084ebf466335b2f28d819c74da'
|
||||
'061739a8cc267748ad58f168034cc39785d949a5262772535e1b347c7842af48')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/mplayer-vaapi-$pkgver"
|
||||
|
||||
./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/"
|
||||
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:
|
9
community/mplayer-vaapi/mplayer-vaapi.install
Normal file
9
community/mplayer-vaapi/mplayer-vaapi.install
Normal file
|
@ -0,0 +1,9 @@
|
|||
post_install() {
|
||||
update-desktop-database -q
|
||||
}
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
post_remove() {
|
||||
post_install $1
|
||||
}
|
21
community/mplayer-vaapi/mplayer.desktop
Normal file
21
community/mplayer-vaapi/mplayer.desktop
Normal file
|
@ -0,0 +1,21 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=MPlayer Media Player
|
||||
Name[ca]=Reproductor multimèdia MPlayer
|
||||
Name[pl]=MPlayer odtwarzacz multimedialny
|
||||
GenericName=Multimedia player
|
||||
Comment=Play movies and songs
|
||||
Comment[ca]=Reproduïu vídeos i cançons
|
||||
Comment[de]=Filme und Musik abspielen
|
||||
Comment[es]=Reproduzca vídeos y canciones
|
||||
Comment[fr]=Lecteur multimédia
|
||||
Comment[it]=Lettore multimediale
|
||||
Comment[zh]=多媒体播放器
|
||||
Comment[pl]=Odtwarzaj filmy i muzykę
|
||||
Icon=mplayer
|
||||
TryExec=mplayer
|
||||
Exec=mplayer -really-quiet %F
|
||||
Terminal=false
|
||||
NoDisplay=true
|
||||
Categories=GTK;AudioVideo;Audio;Video;Player;TV;
|
||||
MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;
|
BIN
community/mplayer-vaapi/mplayer.png
Normal file
BIN
community/mplayer-vaapi/mplayer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Loading…
Reference in a new issue