Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gcc6.git;a=commitdiff;h=8a6bff2bd6a600e40d4b8ca45ce900b64d913c41

commit 8a6bff2bd6a600e40d4b8ca45ce900b64d913c41
Author: crazy <[email protected]>
Date:   Sat Sep 24 16:40:09 2016 +0200

vlc-2.2.4-3-x86_64
* rebuild with tc / ffmpeg3
* added patches to fix the build

diff --git a/source/xmultimedia/vlc/FrugalBuild 
b/source/xmultimedia/vlc/FrugalBuild
index 91f5071..7079007 100644
--- a/source/xmultimedia/vlc/FrugalBuild
+++ b/source/xmultimedia/vlc/FrugalBuild
@@ -9,19 +9,19 @@
pkgname=vlc
pkgver=2.2.4
pkgextraver=
-pkgrel=2
+pkgrel=3
pkgdesc="The cross-platform media player and streaming server."
url="http://www.videolan.org/vlc/";
## TODO: split a lot more -- crazy --
depends=('e2fsprogs' 'libxpm>=3.5.8-1' 'libxdmcp' 'libshout' 'avahi' \
'libdvbpsi>=1.3.0' 'libsmbclient' 'vcdimager>=0.7.24-4' 'alsa-lib>=1.1.0' \
'libgcrypt>=1.6.1' 'lua' 'fribidi' 'freetype2' 'librsvg>=2.26.3' \
-         'ffmpeg>=2.8.6' 'libgl' 'libxvmc' 'aalib' 'libmad' 'libdca' \
+         'ffmpeg>=3.1.3' 'libgl' 'libxvmc' 'aalib' 'libmad' 'libdca' \
'mpeg2dec' 'taglib' 'libmusicbrainz>=5.1.0' 'libid3tag' \
'libmpcdec>=1.2.6-2' 'live' 'xcb-util>=0.3.8' 'gnutls>=3.4.2' \
'libdvdread' 'libbluray' 'libass>=0.10.2' 'libva>=1.6.1-2' \
'x264>=20151115_2245' 'ncurses>=6.0-3' 'libxpm' 'libxext' \
-        'libxinerama' 'qt5-base' 'qt5-x11extras' 'libvpx>=1.6.0')
+        'libxinerama' 'qt5-base>=5.7.0-2' 'qt5-x11extras>=5.7.0-2' 
'libvpx>=1.6.0')
makedepends+=('samba>=4.3.1-10' 'libxtst' 'x11-protos')
rodepends=("libvlc>=$pkgver")
_F_gnome_iconcache="y"
@@ -101,14 +101,23 @@ if ! Fuse $USE_DEVEL; then
bug-14908.patch \
Fix-build-using-old-GCC-intrinsics.patch \
vlc_atomic-atomic_compare_exchange_strong_explicit-t.patch \
-               vlc_atomic-atomic_compare_exchange_weak_explicit-tak.patch )
+               vlc_atomic-atomic_compare_exchange_weak_explicit-tak.patch \
+               vlc-2.1.0-TomWij-bisected-PA-broken-underflow.patch \
+               vlc-9999-libva-1.2.1-compat.patch \
+               vlc-2.2.4-relax_ffmpeg.patch \
+               vlc-2.2.4-ffmpeg3.patch)
sha1sums=('ec171b0ad731d9d114540cd7b7fcb41fc3293696' \
-                 '5d7dba23756ff577a90b8631b187fbeac1f94e17' \
-                 '8c88192908330151f363b95748492bfed0adca05' \
-                 'b1d20239bd0f7ee0666cec8d1f8118ab087f9893' \
-                 'ac4d7eebbb1a3281294cc3b54fb2ac3571e18dcd' \
-                 '38b63efd768137074681ce8cb4bb47e0c78375ea' \
-                 'bafabafd2362c82b52fa6be780bec61d1cde801f')
+               '5d7dba23756ff577a90b8631b187fbeac1f94e17' \
+               '8c88192908330151f363b95748492bfed0adca05' \
+               'b1d20239bd0f7ee0666cec8d1f8118ab087f9893' \
+               'ac4d7eebbb1a3281294cc3b54fb2ac3571e18dcd' \
+               '38b63efd768137074681ce8cb4bb47e0c78375ea' \
+               'bafabafd2362c82b52fa6be780bec61d1cde801f' \
+               '61ce442f390b3f744bbcd5771368c13e9236ea81' \
+               'b435ddbb4df0cbe7f983fba74e5b5747d6a62e9c' \
+               'e09103af98841ca149e26c0ef8051ecef588832b' \
+               'c572727ab1604aed3414ce5622bcc123d2accd7d')
+


else
@@ -247,7 +256,7 @@ subarchs+=('i686 x86_64')
subpkgs+=('libvlc')
subdescs+=('VLC media player external control library')
subrodepends+=("")
-subdepends+=("glibc>=2.22-7 libidn dbus>=1.10.6-5 libsystemd>=228 xz lz4 
libgcrypt libgpg-error")
+subdepends+=("glibc>=2.24-4 libidn dbus>=1.10.6-5 libsystemd>=228 xz lz4 
libgcrypt libgpg-error")
subgroups+=('lib')
subarchs+=('i686 x86_64')

@@ -256,8 +265,8 @@ build()
export CXXFLAGS+=" -std=c++11"

Fpatchall
-       Fsed '#include <va/va_x11.h>' '#include <va/va_x11.h>\n#include 
<va/va_compat.h>' modules/codec/avcodec/vaapi.c
Fsed 'truetype/freefont' 'X11/TTF' modules/text_renderer/freetype.c
+       Fautoreconf
Fmake
Fmakeinstall

diff --git 
a/source/xmultimedia/vlc/vlc-2.1.0-TomWij-bisected-PA-broken-underflow.patch 
b/source/xmultimedia/vlc/vlc-2.1.0-TomWij-bisected-PA-broken-underflow.patch
new file mode 100644
index 0000000..3163410
--- /dev/null
+++ b/source/xmultimedia/vlc/vlc-2.1.0-TomWij-bisected-PA-broken-underflow.patch
@@ -0,0 +1,23 @@
+index 2debbcd..72e7fcf 100644
+--- a/modules/audio_output/pulse.c
++++ b/modules/audio_output/pulse.c
+@@ -472,8 +472,17 @@ static void stream_underflow_cb(pa_stream *s, void 
*userdata)
+ {
++    uint32_t rate = pa_stream_get_sample_spec(s)->rate;
+     audio_output_t *aout = userdata;
+
+-    msg_Dbg(aout, "underflow");
+-    (void) s;
++    msg_Warn(aout, "underflow");
++    stream_stop(s, aout);
++
++    aout_sys_t *sys = aout->sys;
++    sys->first_pts = VLC_TS_INVALID;
++
++    pa_operation *op = pa_stream_update_sample_rate(s, rate, NULL, NULL);
++    if (unlikely(op == NULL))
++        return;
++    pa_operation_unref(op);
+ }
+
+ static int stream_wait(pa_stream *stream, pa_threaded_mainloop *mainloop)
diff --git a/source/xmultimedia/vlc/vlc-2.2.4-ffmpeg3.patch 
b/source/xmultimedia/vlc/vlc-2.2.4-ffmpeg3.patch
new file mode 100644
index 0000000..3bc5954
--- /dev/null
+++ b/source/xmultimedia/vlc/vlc-2.2.4-ffmpeg3.patch
@@ -0,0 +1,160 @@
+Index: vlc-2.2.4/configure.ac
+===================================================================
+--- vlc-2.2.4.orig/configure.ac
++++ vlc-2.2.4/configure.ac
+@@ -2323,8 +2323,8 @@ AC_ARG_ENABLE(avcodec,
+ [  --enable-avcodec        libavcodec codec (default enabled)])
+ AS_IF([test "${enable_avcodec}" != "no"], [
+   PKG_CHECK_MODULES(AVCODEC,[libavcodec >= 53.34.0 libavutil >= 51.22.0], [
+-    PKG_CHECK_EXISTS([libavutil < 55],, [
+-      AC_MSG_ERROR([libavutil versions 55 and later are not supported.])
++    PKG_CHECK_EXISTS([libavutil < 56],, [
++      AC_MSG_ERROR([libavutil versions 56 and later are not supported.])
+     ])
+     VLC_SAVE_FLAGS
+     CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}"
+Index: vlc-2.2.4/modules/codec/avcodec/audio.c
+===================================================================
+--- vlc-2.2.4.orig/modules/codec/avcodec/audio.c
++++ vlc-2.2.4/modules/codec/avcodec/audio.c
+@@ -39,8 +39,6 @@
+ #include <libavcodec/avcodec.h>
+ #include <libavutil/mem.h>
+
+-#include <libavutil/audioconvert.h>
+-
+ #include "avcodec.h"
+
+ /*****************************************************************************
+Index: vlc-2.2.4/modules/codec/avcodec/encoder.c
+===================================================================
+--- vlc-2.2.4.orig/modules/codec/avcodec/encoder.c
++++ vlc-2.2.4/modules/codec/avcodec/encoder.c
+@@ -41,7 +41,6 @@
+ #include <vlc_cpu.h>
+
+ #include <libavcodec/avcodec.h>
+-#include <libavutil/audioconvert.h>
+
+ #include "avcodec.h"
+ #include "avcommon.h"
+@@ -311,7 +310,7 @@ int OpenEncoder( vlc_object_t *p_this )
+     else if( !GetFfmpegCodec( p_enc->fmt_out.i_codec, &i_cat, &i_codec_id,
+                              &psz_namecodec ) )
+     {
+-        if( FindFfmpegChroma( p_enc->fmt_out.i_codec ) == PIX_FMT_NONE )
++        if( FindFfmpegChroma( p_enc->fmt_out.i_codec ) == AV_PIX_FMT_NONE )
+             return VLC_EGENERIC; /* handed chroma output */
+
+         i_cat      = VIDEO_ES;
+@@ -555,7 +554,7 @@ int OpenEncoder( vlc_object_t *p_this )
+
+         if( p_codec->pix_fmts )
+         {
+-            const enum PixelFormat *p = p_codec->pix_fmts;
++            const enum AVPixelFormat *p = p_codec->pix_fmts;
+             for( ; *p != -1; p++ )
+             {
+                 if( *p == p_context->pix_fmt ) break;
+@@ -1017,7 +1016,7 @@ errmsg:
+         }
+     }
+
+-    p_sys->frame = avcodec_alloc_frame();
++    p_sys->frame = av_frame_alloc();
+     if( !p_sys->frame )
+     {
+         goto error;
+@@ -1088,7 +1087,7 @@ static block_t *EncodeVideo( encoder_t *
+     AVFrame *frame = NULL;
+     if( likely(p_pict) ) {
+         frame = p_sys->frame;
+-        avcodec_get_frame_defaults( frame );
++        av_frame_unref( frame );
+         for( i_plane = 0; i_plane < p_pict->i_planes; i_plane++ )
+         {
+             p_sys->frame->data[i_plane] = p_pict->p[i_plane].p_pixels;
+@@ -1329,7 +1328,7 @@ static block_t *handle_delay_buffer( enc
+     //How much we need to copy from new packet
+     const int leftover = leftover_samples * p_sys->p_context->channels * 
p_sys->i_sample_bytes;
+
+-    avcodec_get_frame_defaults( p_sys->frame );
++    av_frame_unref( p_sys->frame );
+     p_sys->frame->format     = p_sys->p_context->sample_fmt;
+     p_sys->frame->nb_samples = leftover_samples + p_sys->i_samples_delay;
+
+@@ -1451,7 +1450,7 @@ static block_t *EncodeAudio( encoder_t *
+     while( ( p_aout_buf->i_nb_samples >= p_sys->i_frame_size ) ||
+            ( p_sys->b_variable && p_aout_buf->i_nb_samples ) )
+     {
+-        avcodec_get_frame_defaults( p_sys->frame );
++        av_frame_unref( p_sys->frame );
+         if( p_sys->b_variable )
+             p_sys->frame->nb_samples = p_aout_buf->i_nb_samples;
+         else
+Index: vlc-2.2.4/modules/codec/avcodec/vaapi.c
+===================================================================
+--- vlc-2.2.4.orig/modules/codec/avcodec/vaapi.c
++++ vlc-2.2.4/modules/codec/avcodec/vaapi.c
+@@ -598,7 +598,7 @@ static int Create( vlc_va_t *p_va, AVCod
+         return err;
+
+     /* Only VLD supported */
+-    p_va->pix_fmt = PIX_FMT_VAAPI_VLD;
++    p_va->pix_fmt = AV_PIX_FMT_VAAPI_VLD;
+     p_va->setup = Setup;
+     p_va->get = Get;
+     p_va->release = Release;
+Index: vlc-2.2.4/modules/codec/avcodec/video.c
+===================================================================
+--- vlc-2.2.4.orig/modules/codec/avcodec/video.c
++++ vlc-2.2.4/modules/codec/avcodec/video.c
+@@ -108,8 +108,8 @@ static int lavc_GetFrame(struct AVCodecC
+ static int  ffmpeg_GetFrameBuf    ( struct AVCodecContext *, AVFrame * );
+ static void ffmpeg_ReleaseFrameBuf( struct AVCodecContext *, AVFrame * );
+ #endif
+-static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *,
+-                                          const enum PixelFormat * );
++static enum AVPixelFormat ffmpeg_GetFormat( AVCodecContext *,
++                                          const enum AVPixelFormat * );
+
+ static uint32_t ffmpeg_CodecTag( vlc_fourcc_t fcc )
+ {
+@@ -234,7 +234,7 @@ int InitVideoDec( decoder_t *p_dec, AVCo
+     p_sys->p_codec = p_codec;
+     p_sys->i_codec_id = i_codec_id;
+     p_sys->psz_namecodec = psz_namecodec;
+-    p_sys->p_ff_pic = avcodec_alloc_frame();
++    p_sys->p_ff_pic = av_frame_alloc();
+     p_sys->b_delayed_open = true;
+     p_sys->p_va = NULL;
+     vlc_sem_init( &p_sys->sem_mt, 0 );
+@@ -446,7 +446,7 @@ int InitVideoDec( decoder_t *p_dec, AVCo
+     if( ffmpeg_OpenCodec( p_dec ) < 0 )
+     {
+         msg_Err( p_dec, "cannot open codec (%s)", p_sys->psz_namecodec );
+-        avcodec_free_frame( &p_sys->p_ff_pic );
++        av_frame_free( &p_sys->p_ff_pic );
+         vlc_sem_destroy( &p_sys->sem_mt );
+         free( p_sys );
+         return VLC_EGENERIC;
+@@ -826,7 +826,7 @@ void EndVideoDec( decoder_t *p_dec )
+     wait_mt( p_sys );
+
+     if( p_sys->p_ff_pic )
+-        avcodec_free_frame( &p_sys->p_ff_pic );
++        av_frame_free( &p_sys->p_ff_pic );
+
+     if( p_sys->p_va )
+         vlc_va_Delete( p_sys->p_va );
+@@ -1313,8 +1313,8 @@ static void ffmpeg_ReleaseFrameBuf( stru
+ }
+ #endif
+
+-static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
+-                                          const enum PixelFormat *pi_fmt )
++static enum AVPixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
++                                          const enum AVPixelFormat *pi_fmt )
+ {
+     decoder_t *p_dec = p_context->opaque;
+     decoder_sys_t *p_sys = p_dec->p_sys;
diff --git a/source/xmultimedia/vlc/vlc-2.2.4-relax_ffmpeg.patch 
b/source/xmultimedia/vlc/vlc-2.2.4-relax_ffmpeg.patch
new file mode 100644
index 0000000..218af58
--- /dev/null
+++ b/source/xmultimedia/vlc/vlc-2.2.4-relax_ffmpeg.patch
@@ -0,0 +1,45 @@
+commit b8869f97ea66ac7ec9912a74c2e8b5e15daf7752
+Author: Rafaël Carré <[email protected]>
+Date:   Fri Feb 26 00:36:26 2016 +0000
+
+    Relax requirements for FFmpeg hwaccel
+
+    It doesn't error out anymore since 5edd1f62ca1
+
+Index: vlc-2.2.4/configure.ac
+===================================================================
+--- vlc-2.2.4.orig/configure.ac
++++ vlc-2.2.4/configure.ac
+@@ -2383,7 +2383,9 @@ AS_IF([test "${have_vaapi}" = "yes" -a "
+   case "${avfork}" in
+     ffmpeg)
+       PKG_CHECK_EXISTS([libavcodec >= 57.10.100], [
+-        AC_MSG_ERROR([VA API requires FFmpeg libavcodec < 57.10 or libav.])
++        PKG_CHECK_EXISTS([libavcodec <= 57.12.100], [
++          AC_MSG_ERROR([VA API requires FFmpeg libavcodec < 57.10 or > 57.12 
or libav.])
++        ])
+       ])
+       ;;
+   esac
+@@ -2417,7 +2419,9 @@ AS_IF([test "${enable_dxva2}" != "no"],
+     case "${avfork}" in
+       ffmpeg)
+         PKG_CHECK_EXISTS([libavcodec >= 57.10.100], [
+-          AC_MSG_ERROR([DXVA2 requires FFmpeg libavcodec < 57.10 or libav.])
++          PKG_CHECK_EXISTS([libavcodec <= 57.12.100], [
++            AC_MSG_ERROR([DXVA2 requires FFmpeg libavcodec < 57.10 or > 57.12 
or libav.])
++          ])
+         ])
+         ;;
+     esac
+@@ -3181,7 +3185,9 @@ AS_IF([test "${have_vdpau}" = "yes" -a "
+     libav) av_vdpau_ver="55.26.0" ;;
+     ffmpeg) av_vdpau_ver="55.42.100"
+       PKG_CHECK_EXISTS([libavcodec >= 57.10.100], [
+-        AC_MSG_ERROR([VDPAU requires FFmpeg libavcodec < 57.10 or libav.])
++        PKG_CHECK_EXISTS([libavcodec <= 57.12.100], [
++          AC_MSG_ERROR([VDPAU requires FFmpeg libavcodec < 57.10 or > 57.12 
or libav.])
++        ])
+       ])
+       ;;
+   esac
diff --git a/source/xmultimedia/vlc/vlc-9999-libva-1.2.1-compat.patch 
b/source/xmultimedia/vlc/vlc-9999-libva-1.2.1-compat.patch
new file mode 100644
index 0000000..adfdefe
--- /dev/null
+++ b/source/xmultimedia/vlc/vlc-9999-libva-1.2.1-compat.patch
@@ -0,0 +1,12 @@
+--- a/modules/codec/avcodec/vaapi.c
++++ b/modules/codec/avcodec/vaapi.c
+@@ -34,6 +34,9 @@
+ #ifdef VLC_VA_BACKEND_XLIB
+ # include <vlc_xlib.h>
+ # include <va/va_x11.h>
++#if VA_MINOR_VERSION >= 34
++# include <va/va_compat.h>
++#endif
+ #endif
+ #ifdef VLC_VA_BACKEND_DRM
+ # include <sys/types.h>
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to