From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- libre/mplayer-vaapi-libre/PKGBUILD | 82 +++++++++++++++ libre/mplayer-vaapi-libre/mplayer-vaapi.install | 9 ++ libre/mplayer-vaapi-libre/mplayer.desktop | 21 ++++ libre/mplayer-vaapi-libre/mplayer.png | Bin 0 -> 1982 bytes libre/mplayer-vaapi-libre/patch-fixes.patch | 131 ++++++++++++++++++++++++ 5 files changed, 243 insertions(+) create mode 100644 libre/mplayer-vaapi-libre/PKGBUILD create mode 100644 libre/mplayer-vaapi-libre/mplayer-vaapi.install create mode 100644 libre/mplayer-vaapi-libre/mplayer.desktop create mode 100644 libre/mplayer-vaapi-libre/mplayer.png create mode 100644 libre/mplayer-vaapi-libre/patch-fixes.patch (limited to 'libre/mplayer-vaapi-libre') diff --git a/libre/mplayer-vaapi-libre/PKGBUILD b/libre/mplayer-vaapi-libre/PKGBUILD new file mode 100644 index 000000000..2f1028119 --- /dev/null +++ b/libre/mplayer-vaapi-libre/PKGBUILD @@ -0,0 +1,82 @@ +# $Id: PKGBUILD 32760 2010-11-18 03:40:37Z foutrelis $ +# Maintainer (Parabola): fauno +# Maintainer: Evangelos Foutras +# Contributor: Ionut Biru +# Contributor: Hugo Doria + +pkgname=mplayer-vaapi-libre +pkgver=33025 +_vaapi_version=20110127 +pkgrel=3 +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' 'fribidi' 'libva' 'desktop-file-utils') +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) +install=mplayer-vaapi.install +md5sums=('3814e5c47458de4bf0878d3996820341' + 'b39bd73ae8241dcb21dd1a8fa5eb87eb' + '647b9f4ab5284a7fef3f84f992214e77' + 'd00874ccc644b7f43d6ef1c942fcef28' + '9f96a03dddbea8be5ff2fa3925311d04') + +build() { + cd "$srcdir/mplayer-$pkgver" + + # Custom CFLAGS break the mplayer build + unset CFLAGS LDFLAGS + + # Update vaapi patches for changes introduced in mplayer/ffmpeg + 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 \ + --enable-speex \ + --disable-openal \ + --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-vaapi.install b/libre/mplayer-vaapi-libre/mplayer-vaapi.install new file mode 100644 index 000000000..2f38769cb --- /dev/null +++ b/libre/mplayer-vaapi-libre/mplayer-vaapi.install @@ -0,0 +1,9 @@ +post_install() { + update-desktop-database -q +} +post_upgrade() { + post_install $1 +} +post_remove() { + post_install $1 +} 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 new file mode 100644 index 000000000..799769335 Binary files /dev/null and b/libre/mplayer-vaapi-libre/mplayer.png differ diff --git a/libre/mplayer-vaapi-libre/patch-fixes.patch b/libre/mplayer-vaapi-libre/patch-fixes.patch new file mode 100644 index 000000000..73153b3fe --- /dev/null +++ b/libre/mplayer-vaapi-libre/patch-fixes.patch @@ -0,0 +1,131 @@ +diff -upr mplayer-vaapi-20110127.orig/patches/mplayer-vaapi.patch mplayer-vaapi-20110127/patches/mplayer-vaapi.patch +--- mplayer-vaapi-20110127.orig/patches/mplayer-vaapi.patch 2011-01-27 17:15:29.000000000 +0200 ++++ mplayer-vaapi-20110127/patches/mplayer-vaapi.patch 2011-03-05 06:47:20.000000000 +0200 +@@ -449,14 +449,15 @@ diff --git a/fmt-conversion.c b/fmt-conv + index 9e88100..bd32ce8 100644 + --- a/fmt-conversion.c + +++ b/fmt-conversion.c +-@@ -18,12 +18,14 @@ ++@@ -18,6 +18,7 @@ + + #include "mp_msg.h" + #include "libavutil/avutil.h" + +#include "libavcodec/avcodec.h" + #include "libmpcodecs/img_format.h" +- #include "fmt-conversion.h" +- ++ #include "libavutil/samplefmt.h" ++ #include "libaf/af_format.h" ++@@ -26,6 +27,7 @@ + static const struct { + int fmt; + enum PixelFormat pix_fmt; +@@ -503,14 +504,15 @@ diff --git a/fmt-conversion.h b/fmt-conv + index 9e133a8..962ca4e 100644 + --- a/fmt-conversion.h + +++ b/fmt-conversion.h +-@@ -23,6 +23,6 @@ +- #include "libavutil/avutil.h" ++@@ -24,7 +24,7 @@ ++ #include "libavutil/samplefmt.h" + + enum PixelFormat imgfmt2pixfmt(int fmt); + -int pixfmt2imgfmt(enum PixelFormat pix_fmt); + +int pixfmt2imgfmt(enum PixelFormat pix_fmt, int codec_id); ++ enum AVSampleFormat affmt2samplefmt(int fmt); ++ int samplefmt2affmt(enum AVSampleFormat sample_fmt); + +- #endif /* MPLAYER_FMT_CONVERSION_H */ + diff --git a/gui/mplayer/gtk/opts.c b/gui/mplayer/gtk/opts.c + index 4f7ffb2..0da5434 100644 + --- a/gui/mplayer/gtk/opts.c +diff -upr mplayer-vaapi-20110127.orig/patches/mplayer-vdpau.patch mplayer-vaapi-20110127/patches/mplayer-vdpau.patch +--- mplayer-vaapi-20110127.orig/patches/mplayer-vdpau.patch 2010-11-15 08:41:19.000000000 +0200 ++++ mplayer-vaapi-20110127/patches/mplayer-vdpau.patch 2011-03-05 07:07:15.000000000 +0200 +@@ -133,7 +133,7 @@ index b0d00f4..745d3e4 100644 + + videocodec ffh264 + info "FFmpeg H.264" +-@@ -993,19 +947,8 @@ videocodec ffh264 ++@@ -993,21 +947,8 @@ videocodec ffh264 + driver ffmpeg + dll h264 + out VAAPI_H264 +@@ -146,6 +146,8 @@ index b0d00f4..745d3e4 100644 + - fourcc X264,x264 + - fourcc avc1,AVC1 + - fourcc davc,DAVC ++- fourcc ai55,ai15 ; flip4mac avc intra ++- fourcc ai1q,ai5q ; flip4mac avc intra + - format 0x10000005 + - driver ffmpeg + - dll h264_vdpau +@@ -362,13 +364,13 @@ index f99f7ea..faafa97 100644 + context_count++; + } + break; +-@@ -3408,20 +3392,3 @@ AVCodec h264_decoder = { ++@@ -3408,21 +3392,3 @@ AVCodec h264_decoder = { + .flush= flush_dpb, + .long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"), + }; + - + -#if CONFIG_H264_VDPAU_DECODER +--AVCodec h264_vdpau_decoder = { ++-AVCodec ff_h264_vdpau_decoder = { + - "h264_vdpau", + - AVMEDIA_TYPE_VIDEO, + - CODEC_ID_H264, +@@ -381,6 +383,7 @@ index f99f7ea..faafa97 100644 + - .flush= flush_dpb, + - .long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)"), + - .pix_fmts = (const enum PixelFormat[]){PIX_FMT_VDPAU_H264, PIX_FMT_NONE}, ++- .profiles = NULL_IF_CONFIG_SMALL(profiles), + -}; + -#endif + diff --git a/ffmpeg/libavcodec/mpeg12.c b/ffmpeg/libavcodec/mpeg12.c +@@ -458,7 +461,7 @@ index 6a331eb..c226797 100644 + #endif + - + -#if CONFIG_MPEG_VDPAU_DECODER +--AVCodec mpeg_vdpau_decoder = { ++-AVCodec ff_mpeg_vdpau_decoder = { + - "mpegvideo_vdpau", + - AVMEDIA_TYPE_VIDEO, + - CODEC_ID_MPEG2VIDEO, +@@ -474,7 +477,7 @@ index 6a331eb..c226797 100644 + -#endif + - + -#if CONFIG_MPEG1_VDPAU_DECODER +--AVCodec mpeg1_vdpau_decoder = { ++-AVCodec ff_mpeg1_vdpau_decoder = { + - "mpeg1video_vdpau", + - AVMEDIA_TYPE_VIDEO, + - CODEC_ID_MPEG1VIDEO, +@@ -500,7 +503,7 @@ index b339f78..1928d03 100644 + - + - + -#if CONFIG_MPEG4_VDPAU_DECODER +--AVCodec mpeg4_vdpau_decoder = { ++-AVCodec ff_mpeg4_vdpau_decoder = { + - "mpeg4_vdpau", + - AVMEDIA_TYPE_VIDEO, + - CODEC_ID_MPEG4, +@@ -588,7 +591,7 @@ index c9a547b..71c50e7 100644 + #endif + - + -#if CONFIG_WMV3_VDPAU_DECODER +--AVCodec wmv3_vdpau_decoder = { ++-AVCodec ff_wmv3_vdpau_decoder = { + - "wmv3_vdpau", + - AVMEDIA_TYPE_VIDEO, + - CODEC_ID_WMV3, +@@ -605,7 +608,7 @@ index c9a547b..71c50e7 100644 + -#endif + - + -#if CONFIG_VC1_VDPAU_DECODER +--AVCodec vc1_vdpau_decoder = { ++-AVCodec ff_vc1_vdpau_decoder = { + - "vc1_vdpau", + - AVMEDIA_TYPE_VIDEO, + - CODEC_ID_VC1, -- cgit v1.2.3-54-g00ecf