diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-01-28 12:03:23 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-01-28 12:03:23 -0300 |
commit | ca7c217f85721d8f12e237d9d5c8dcf148adc5aa (patch) | |
tree | d2859ed8aab59dc1f4449f40c9d1f67cf4dca410 /libre | |
parent | 5e3df826584c6dbde610119dfdcb687fd0b8d316 (diff) | |
download | abslibre-ca7c217f85721d8f12e237d9d5c8dcf148adc5aa.tar.gz abslibre-ca7c217f85721d8f12e237d9d5c8dcf148adc5aa.tar.bz2 abslibre-ca7c217f85721d8f12e237d9d5c8dcf148adc5aa.zip |
mplayer-vaapi-32825-1
Diffstat (limited to 'libre')
-rw-r--r-- | libre/mplayer-vaapi-libre/PKGBUILD | 81 | ||||
-rw-r--r-- | libre/mplayer-vaapi-libre/mplayer.desktop | 21 | ||||
-rw-r--r-- | libre/mplayer-vaapi-libre/mplayer.png | bin | 0 -> 1982 bytes | |||
-rw-r--r-- | libre/mplayer-vaapi-libre/patch-fixes.patch | 26 |
4 files changed, 128 insertions, 0 deletions
diff --git a/libre/mplayer-vaapi-libre/PKGBUILD b/libre/mplayer-vaapi-libre/PKGBUILD new file mode 100644 index 000000000..0cc1756df --- /dev/null +++ b/libre/mplayer-vaapi-libre/PKGBUILD @@ -0,0 +1,81 @@ +# $Id: PKGBUILD 32760 2010-11-18 03:40:37Z foutrelis $ +# Maintainer (Parabola): fauno <fauno@kiwwwi.com.ar> +# Maintainer: Evangelos Foutras <foutrelis@gmail.com> +# Contributor: Ionut Biru <ibiru@archlinux.org> +# Contributor: Hugo Doria <hugo@archlinux.org> + +pkgname=mplayer-vaapi-libre +pkgver=32669 +_vaapi_version=20101115 +pkgrel=1 +pkgdesc="A movie player, compiled with vaapi support, without faac dependency, added speex support" +arch=('i686' 'x86_64') +url="http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/" +license=('GPL') +depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'cdparanoia' 'libxinerama' 'sdl' + 'lame' 'libtheora' 'xvidcore' 'libmng' 'libxss' 'libgl' 'smbclient' + 'aalib' 'jack' 'libcaca' 'x264' 'lirc-utils' 'ttf-dejavu' 'speex' + 'libxvmc' 'enca' 'opencore-amr' 'libdca' 'a52dec' 'schroedinger' + 'libvpx' 'libpulse' 'libva') +makedepends=('unzip' 'mesa' 'live-media>=2010.01.13' 'yasm') +provides=("mplayer-vaapi=$pkgver") +conflicts=('mplayer' 'mplayer-vaapi') +replaces=("mplayer-vaapi=$pkgver") +backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf') +source=(http://pkgbuild.com/~foutrelis/mplayer-$pkgver.tar.xz + http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/mplayer-vaapi-$_vaapi_version.tar.bz2 + mplayer.desktop + mplayer.png + patch-fixes.patch) +md5sums=('6da7103785e69ac25163e9570185c8b4' + '372ba02746404d3fa2b3aa94657a2efd' + '647b9f4ab5284a7fef3f84f992214e77' + 'd00874ccc644b7f43d6ef1c942fcef28' + 'cbddc2d8b1140e274a2784bdbb1f9b04') + +build() { + cd "$srcdir/mplayer-$pkgver" + + # Custom CFLAGS break the mplayer build + unset CFLAGS LDFLAGS + + # Update vaapi patches for changes introduced in mplayer + patch -d "$srcdir/mplayer-vaapi-$_vaapi_version" -p1 -i \ + "$srcdir/patch-fixes.patch" + + for patch in mplayer-{vaapi{,-{gma500-workaround,0.29}},vdpau}; do + patch -Np1 -i "$srcdir/mplayer-vaapi-$_vaapi_version/patches/$patch.patch" + done + + ./configure --prefix=/usr \ + --disable-faac \ + --enable-runtime-cpudetection \ + --disable-gui \ + --disable-arts \ + --disable-liblzo \ + --disable-openal \ + --disable-fribidi \ + --disable-libdv \ + --disable-musepack \ + --disable-esd \ + --disable-mga \ + --enable-xvmc \ + --disable-vdpau \ + --enable-vaapi \ + --language=all \ + --confdir=/etc/mplayer + + [ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak + + make + make -j1 DESTDIR=$pkgdir install + 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: diff --git a/libre/mplayer-vaapi-libre/mplayer.desktop b/libre/mplayer-vaapi-libre/mplayer.desktop new file mode 100644 index 000000000..e3229d042 --- /dev/null +++ b/libre/mplayer-vaapi-libre/mplayer.desktop @@ -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; diff --git a/libre/mplayer-vaapi-libre/mplayer.png b/libre/mplayer-vaapi-libre/mplayer.png Binary files differnew file mode 100644 index 000000000..799769335 --- /dev/null +++ b/libre/mplayer-vaapi-libre/mplayer.png diff --git a/libre/mplayer-vaapi-libre/patch-fixes.patch b/libre/mplayer-vaapi-libre/patch-fixes.patch new file mode 100644 index 000000000..99df9e267 --- /dev/null +++ b/libre/mplayer-vaapi-libre/patch-fixes.patch @@ -0,0 +1,26 @@ +diff -upr mplayer-vaapi-20101115.orig/patches/mplayer-vaapi.patch mplayer-vaapi-20101115/patches/mplayer-vaapi.patch +--- mplayer-vaapi-20101115.orig/patches/mplayer-vaapi.patch 2010-11-15 11:14:06.000000000 +0200 ++++ mplayer-vaapi-20101115/patches/mplayer-vaapi.patch 2010-11-18 05:14:41.000000000 +0200 +@@ -3688,10 +3688,10 @@ index 0000000..f920d91 + + enable_osd(); + +} + + +-+static void draw_eosd(EOSD_ImageList *imgs) +++static void draw_eosd(struct mp_eosd_image_list *imgs) + +{ +-+ ASS_Image *img = imgs->imgs; +-+ ASS_Image *i; +++ struct mp_eosd_image_list *img = eosd_image_first(imgs); +++ struct mp_eosd_image *i; + + VAStatus status; + + + + if (!va_eosd_draw_alpha) +@@ -3717,7 +3717,7 @@ index 0000000..f920d91 + + + + memset(va_eosd_image_data, 0, va_eosd_image.data_size); + + +-+ for (i = img; i; i = i->next) +++ for (i = img; i; i = eosd_image_next(imgs)) + + va_eosd_draw_alpha(i->bitmap, i->w, i->h, i->stride, + + i->dst_x, i->dst_y, i->color); + + |