package/ffmpeg: bump to version 3.0.1
v2 cover package/ffmpeg: bump to version 3.0.1
Hi,
in the v2 series of the remaining patches to bump ffmpeg to 3.0.x I only updated the vlc patch. In vlc.mk I added some explanation for the updated code, two source code fixes needed to build VLC with buildroot were accepted today upstream:
http://git.videolan.org/?p=vlc.git;a=search;s=Bernd+Kuhls;st=author
and for the patch included as 0008- the discussion is still going on ;)
Since I finished my ffmpeg work today I post this patch series as-is for further discussion with you.
Regards, Bernd
Bernd Kuhls (3):
package/freerdp: add support for ffmpeg 3.0 package/ffmpeg: Add patch required by Kodi 16.0-Jarvis package/vlc: bump version to git master (to be released as 3.0)
Vicente Olivert Riera (3):
package/ffmpeg: bump to version 3.0.1 package/ffmpeg: cosmetic change for the mips fpu option package/ffmpeg: default to --cpu=generic for MIPS architecture
.../ffmpeg/0013-hevc-support-main10-decoding.patch | 77 ++++++++++++++++++++++ package/ffmpeg/ffmpeg.hash | 2 +- package/ffmpeg/ffmpeg.mk | 24 +++---- package/freerdp/0004-ffmpeg30.patch | 74 +++++++++++++++++++++ package/vlc/0001-vlc-static.patch | 10 +-- ...ac-add-check-for-libgcrypt-config-program.patch | 36 +++++----- .../vlc/0004-implicit-function-declaration.patch | 4 +- package/vlc/0006-qt-x11.patch | 12 ++-- package/vlc/0007-strerror.patch | 10 +-- ...-error-using-uClibc-by-adding-sys-types.h.patch | 44 +++++++++++++ package/vlc/Config.in | 6 +- package/vlc/vlc.mk | 24 +++++-- 12 files changed, 263 insertions(+), 60 deletions(-) create mode 100644 package/ffmpeg/0013-hevc-support-main10-decoding.patch create mode 100644 package/freerdp/0004-ffmpeg30.patch create mode 100644 package/vlc/0008-Fix-build-error-using-uClibc-by-adding-sys-types.h.patch
Signature · 1 line
2.8.0.rc3
PATCH v2 1/6 package/freerdp: add support for ffmpeg 3.0
--- package/freerdp/0004-ffmpeg30.patch | 74 +++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 package/freerdp/0004-ffmpeg30.patch
package/freerdp/0004-ffmpeg30.patch new file +74 -0
@@ -0,0 +1,74 @@ +From b7b66968f93f6ce75dd06d12638e14029bf3717b Mon Sep 17 00:00:00 2001 +From: Alexis Ballier <[email protected]> +Date: Thu, 17 Sep 2015 10:36:44 +0200 +Subject: [PATCH] channels/tsmf/client/ffmpeg: Fix build with ffmpeg git + master. + +Replace old, deprecated and now removed, APIs with their new equivalent while retaining backward compatibility with old ffmpeg versions. + +Signed-off-by: Bernd Kuhls <[email protected]> +[Downloaded from upstream commit: + https://github.com/FreeRDP/FreeRDP/commit/f8ceb3f6061583c650bd4f6cddc10bc0471f2076] +--- + channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c | 17 ++++++++++++++++- + 1 file changed, 16 insertions(+), 1 deletion(-) + +diff --git a/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c b/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c +index d0880e7..e1b9f83 100644 +--- a/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c ++++ b/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c +@@ -61,6 +61,9 @@ + #define AV_CODEC_ID_AC3 CODEC_ID_AC3 + #endif + ++#if LIBAVUTIL_VERSION_MAJOR < 52 ++#define AV_PIX_FMT_YUV420P PIX_FMT_YUV420P ++#endif + + typedef struct _TSMFFFmpegDecoder + { +@@ -102,7 +105,11 @@ static BOOL tsmf_ffmpeg_init_video_stream(ITSMFDecoder* decoder, const TS_AM_MED + mdecoder->codec_context->bit_rate = media_type->BitRate; + mdecoder->codec_context->time_base.den = media_type->SamplesPerSecond.Numerator; + mdecoder->codec_context->time_base.num = media_type->SamplesPerSecond.Denominator; ++#if LIBAVCODEC_VERSION_MAJOR < 55 + mdecoder->frame = avcodec_alloc_frame(); ++#else ++ mdecoder->frame = av_frame_alloc(); ++#endif + return TRUE; + } + +@@ -328,7 +335,11 @@ static BOOL tsmf_ffmpeg_decode_video(ITSMFDecoder* decoder, const BYTE *data, UI + if (!mdecoder->decoded_data) + return FALSE; + ++#if LIBAVCODEC_VERSION_MAJOR < 55 + frame = avcodec_alloc_frame(); ++#else ++ frame = av_frame_alloc(); ++#endif + avpicture_fill((AVPicture*) frame, mdecoder->decoded_data, + mdecoder->codec_context->pix_fmt, + mdecoder->codec_context->width, mdecoder->codec_context->height); +@@ -400,7 +411,11 @@ static BOOL tsmf_ffmpeg_decode_audio(ITSMFDecoder* decoder, const BYTE *data, UI + (int16_t *) dst, &frame_size, src, src_size); + #else + { ++#if LIBAVCODEC_VERSION_MAJOR < 55 + AVFrame *decoded_frame = avcodec_alloc_frame(); ++#else ++ AVFrame *decoded_frame = av_frame_alloc(); ++#endif + int got_frame = 0; + AVPacket pkt; + av_init_packet(&pkt); +@@ -480,7 +495,7 @@ static UINT32 tsmf_ffmpeg_get_decoded_format(ITSMFDecoder* decoder) + + switch (mdecoder->codec_context->pix_fmt) + { +- case PIX_FMT_YUV420P: ++ case AV_PIX_FMT_YUV420P: + return RDP_PIXFMT_I420; + default: + WLog_ERR(TAG, "unsupported pixel format %u",
Signature · 1 line
2.8.0.rc3
PATCH v2 2/6 package/ffmpeg: bump to version 3.0.1
In reply to Bernd KuhlsFrom: Vicente Olivert Riera <[email protected]>
- Remove non-existen configure options:
- --disable-mips32r2
- --disable-libvo-aacenc
- Amend renamed configure options:
- --disable-mipsdspr1 has been renamed to --disable-mipsdsp
--- package/ffmpeg/ffmpeg.hash | 2 +- package/ffmpeg/ffmpeg.mk | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-)
package/ffmpeg/ffmpeg.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 25bcedbdafadac3d09c325c1d46a51f53d858b26a260d5aed6b4f17fea6e07fa ffmpeg-2.8.6.tar.xz +sha256 c389ca5e3c29e758dd82ee6981130fe79e73b06e26db1a3aa971daea63598bc1 ffmpeg-3.0.1.tar.xz
package/ffmpeg/ffmpeg.mk +2 -11
@@ -4,7 +4,7 @@ # ################################################################################ -FFMPEG_VERSION = 2.8.6 +FFMPEG_VERSION = 3.0.1 FFMPEG_SOURCE = ffmpeg-$(FFMPEG_VERSION).tar.xz FFMPEG_SITE = http://ffmpeg.org/releases FFMPEG_INSTALL_STAGING = YES
@@ -41,7 +41,7 @@ FFMPEG_CONF_OPTS = \ --enable-runtime-cpudetect \ --disable-hardcoded-tables \ --disable-memalign-hack \ - --disable-mipsdspr1 \ + --disable-mipsdsp \ --disable-mipsdspr2 \ --disable-msa \ --enable-hwaccels \
@@ -58,7 +58,6 @@ FFMPEG_CONF_OPTS = \ --disable-libnut \ --disable-libopenjpeg \ --disable-libschroedinger \ - --disable-libvo-aacenc \ --disable-libvo-amrwbenc \ --disable-symver \ --disable-doc
@@ -437,14 +436,6 @@ FFMPEG_CONF_OPTS += \ --enable-mipsfpu endif -ifeq ($(BR2_mips_32r2),y) -FFMPEG_CONF_OPTS += \ - --enable-mips32r2 -else -FFMPEG_CONF_OPTS += \ - --disable-mips32r2 -endif - ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y) FFMPEG_CONF_OPTS += --enable-altivec else
Signature · 1 line
2.8.0.rc3
PATCH v2 3/6 package/ffmpeg: cosmetic change for the mips fpu option
In reply to Bernd KuhlsFrom: Vicente Olivert Riera <[email protected]>
--- package/ffmpeg/ffmpeg.mk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
package/ffmpeg/ffmpeg.mk +2 -4
@@ -429,11 +429,9 @@ FFMPEG_CONF_OPTS += --enable-neon endif ifeq ($(BR2_MIPS_SOFT_FLOAT),y) -FFMPEG_CONF_OPTS += \ - --disable-mipsfpu +FFMPEG_CONF_OPTS += --disable-mipsfpu else -FFMPEG_CONF_OPTS += \ - --enable-mipsfpu +FFMPEG_CONF_OPTS += --enable-mipsfpu endif ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
Signature · 1 line
2.8.0.rc3
PATCH v2 4/6 package/ffmpeg: default to --cpu=generic for MIPS architecture
In reply to Bernd KuhlsFrom: Vicente Olivert Riera <[email protected]>
This option is needed to prevent this message from configure:
WARNING: unknown CPU. Disabling all MIPS optimizations.
--- package/ffmpeg/ffmpeg.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/ffmpeg/ffmpeg.mk +5 -0
@@ -452,6 +452,11 @@ else ifneq ($(call qstrip,$(BR2_GCC_TARGET_ARCH)),) FFMPEG_CONF_OPTS += --cpu=$(BR2_GCC_TARGET_ARCH) endif +# Default to --cpu=generic for MIPS architecture +ifeq ($(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el),y) +FFMPEG_CONF_OPTS += --cpu=generic +endif + FFMPEG_CONF_OPTS += $(call qstrip,$(BR2_PACKAGE_FFMPEG_EXTRACONF)) # Override FFMPEG_CONFIGURE_CMDS: FFmpeg does not support --target and others
Signature · 1 line
2.8.0.rc3
PATCH v2 5/6 package/ffmpeg: Add patch required by Kodi 16.0-Jarvis
In reply to Bernd Kuhls--- .../ffmpeg/0013-hevc-support-main10-decoding.patch | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 package/ffmpeg/0013-hevc-support-main10-decoding.patch
package/ffmpeg/0013-hevc-support-main10-decoding.patch new file +77 -0
@@ -0,0 +1,77 @@ +From bbab50b66f61f38415ea1fbc93314712b90901e2 Mon Sep 17 00:00:00 2001 +From: Hendrik Leppkes <[email protected]> +Date: Sat, 30 Jan 2016 17:10:56 +0100 +Subject: [PATCH] hevc: support Main10 decoding through dxva2 + +Patch is part of the Kodi patch set for ffmpeg, downloaded from +https://github.com/xbmc/FFmpeg/. + +Patch was backported from upstream commit: +http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=ccb94789e2968329947f1c2e00d019f387f9c409 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + Changelog | 4 ++++ + libavcodec/hevc.c | 13 ++++++++++++- + libavcodec/version.h | 2 +- + 3 files changed, 17 insertions(+), 2 deletions(-) + +diff --git a/Changelog b/Changelog +index 2e1cd36..1c60cde 100644 +--- a/Changelog ++++ b/Changelog +@@ -1,6 +1,10 @@ + Entries are sorted chronologically from oldest to youngest within each release, + releases are sorted from youngest to oldest. + ++version <next>: ++- DXVA2-accelerated HEVC Main10 decoding ++ ++ + version 3.0: + - Common Encryption (CENC) MP4 encoding and decoding support + - DXV decoding +diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c +index 203f90a..0d53a33 100644 +--- a/libavcodec/hevc.c ++++ b/libavcodec/hevc.c +@@ -347,7 +347,9 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps, enum AVPixelFormat pix_fm + + export_stream_params(s->avctx, &s->ps, sps); + +- if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P) { ++ switch (sps->pix_fmt) { ++ case AV_PIX_FMT_YUV420P: ++ case AV_PIX_FMT_YUVJ420P: + #if CONFIG_HEVC_DXVA2_HWACCEL + *fmt++ = AV_PIX_FMT_DXVA2_VLD; + #endif +@@ -360,6 +362,15 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps, enum AVPixelFormat pix_fm + #if CONFIG_HEVC_VDPAU_HWACCEL + *fmt++ = AV_PIX_FMT_VDPAU; + #endif ++ break; ++ case AV_PIX_FMT_YUV420P10: ++#if CONFIG_HEVC_DXVA2_HWACCEL ++ *fmt++ = AV_PIX_FMT_DXVA2_VLD; ++#endif ++#if CONFIG_HEVC_D3D11VA_HWACCEL ++ *fmt++ = AV_PIX_FMT_D3D11VA_VLD; ++#endif ++ break; + } + + if (pix_fmt == AV_PIX_FMT_NONE) { +diff --git a/libavcodec/version.h b/libavcodec/version.h +index 37a35e0..08140b0 100644 +--- a/libavcodec/version.h ++++ b/libavcodec/version.h +@@ -30,7 +30,7 @@ + + #define LIBAVCODEC_VERSION_MAJOR 57 + #define LIBAVCODEC_VERSION_MINOR 24 +-#define LIBAVCODEC_VERSION_MICRO 102 ++#define LIBAVCODEC_VERSION_MICRO 103 + + #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ + LIBAVCODEC_VERSION_MINOR, \
Signature · 1 line
2.8.0.rc3
PATCH v2 6/6 package/vlc: bump version to git master (to be released as 3.0)
In reply to Bernd KuhlsThis patch adds support for ffmpeg 3.0 by bumping vlc to its git master branch since vlc 2.2 will not get support for ffmpeg 3.0:
https://trac.macports.org/ticket/50697#comment:3
gcc >= 4.9 is needed to solve this build error seen with gcc-Version 4.8.5 (Buildroot 2016.05-git-00772-g09cf3c2-dirty):
CXX demux/sid.lo
In file included from ../config.h:890:0,
from demux/sid.cpp:33:
../include/vlc_fixups.h:297:104: error: types may not be defined in 'sizeof' expressions
# define _Static_assert(x, s) extern char STATIC_ASSERT_CONCAT(static_assert_, __LINE__)[sizeof(struct { unsigned:-!(x); })]
^
../include/vlc_fixups.h:297:124: error: storage class specified for 'static_assert_935'
# define _Static_assert(x, s) extern char STATIC_ASSERT_CONCAT(static_assert_, __LINE__)[sizeof(struct { unsigned:-!(x); })]
^
/home/bernd/buildroot/br4/output/host/usr/i586-buildroot-linux-uclibc/include/c++/4.8.5/type_traits: In function 'typename std::add_rvalue_reference< <template-parameter-1-1> >::type std::declval()':
../include/vlc_fixups.h:297:104: error: types may not be defined in 'sizeof' expressions
# define _Static_assert(x, s) extern char STATIC_ASSERT_CONCAT(static_assert_, __LINE__)[sizeof(struct { unsigned:-!(x); })]
^
/home/bernd/buildroot/br4/output/host/usr/i586-buildroot-linux-uclibc/include/c++/4.8.5/bits/move.h: In function 'constexpr _Tp&& std::forward(typename std::remove_reference<_From>::type&&)':
../include/vlc_fixups.h:297:104: error: types may not be defined in 'sizeof' expressions
# define _Static_assert(x, s) extern char STATIC_ASSERT_CONCAT(static_assert_, __LINE__)[sizeof(struct { unsigned:-!(x); })]
^
Makefile:18342: recipe for target 'demux/sid.lo' failed--- package/vlc/0001-vlc-static.patch | 10 ++--- ...ac-add-check-for-libgcrypt-config-program.patch | 36 +++++++++--------- .../vlc/0004-implicit-function-declaration.patch | 4 +- package/vlc/0006-qt-x11.patch | 12 +++--- package/vlc/0007-strerror.patch | 10 ++--- ...-error-using-uClibc-by-adding-sys-types.h.patch | 44 ++++++++++++++++++++++ package/vlc/Config.in | 6 ++- package/vlc/vlc.mk | 24 +++++++++--- 8 files changed, 102 insertions(+), 44 deletions(-) create mode 100644 package/vlc/0008-Fix-build-error-using-uClibc-by-adding-sys-types.h.patch
package/vlc/0001-vlc-static.patch +5 -5
@@ -1,19 +1,19 @@ diff -uNr vlc-2.1.5.org/bin/Makefile.am vlc-2.1.5/bin/Makefile.am --- vlc-2.1.5.org/bin/Makefile.am 2013-12-03 10:12:34.000000000 +0100 +++ vlc-2.1.5/bin/Makefile.am 2014-08-03 12:30:06.722154518 +0200 -@@ -1,7 +1,7 @@ - # Building vlc - # +@@ -5,7 +5,7 @@ + noinst_PROGRAMS = vlc-osx-static + else bin_PROGRAMS = vlc -noinst_PROGRAMS = vlc-static +noinst_PROGRAMS = + endif noinst_DATA = vlclib_PROGRAMS = vlc-cache-gen - EXTRA_PROGRAMS = vlc-wrapper diff -uNr vlc-2.1.5.org/Makefile.am vlc-2.1.5/Makefile.am --- vlc-2.1.5.org/Makefile.am 2014-02-14 18:40:50.000000000 +0100 +++ vlc-2.1.5/Makefile.am 2014-08-03 12:29:52.059010766 +0200 -@@ -932,7 +932,7 @@ +@@ -926,7 +926,7 @@ cd lib && $(MAKE) $(AM_MAKEFLAGS) libvlc.la core: libvlc vlc$(EXEEXT)
package/vlc/0002-configure.ac-add-check-for-libgcrypt-config-program.patch +18 -18
@@ -19,25 +19,25 @@ diff --git a/configure.ac b/configure.ac index 02fb8aa..5a2267b 100644 --- a/configure.ac +++ b/configure.ac -@@ -4020,16 +4020,17 @@ - AC_ARG_ENABLE(libgcrypt, +diff -uNr vlc-3001875707021c028efb3bb953059344cef9a154.org/configure.ac vlc-3001875707021c028efb3bb953059344cef9a154/configure.ac +--- vlc-3001875707021c028efb3bb953059344cef9a154.org/configure.ac 2016-03-18 20:05:44.000000000 +0100 ++++ vlc-3001875707021c028efb3bb953059344cef9a154/configure.ac 2016-03-26 20:29:01.978968157 +0100 +@@ -4056,6 +4056,7 @@ [ --disable-libgcrypt gcrypt support (default enabled)]) + # require libgcrypt >= 1.6.0 AS_IF([test "${enable_libgcrypt}" != "no"], [ + AC_PATH_PROG([GCRYPT_CONFIG],[libgcrypt-config],[libgcrypt-config]) - AC_CHECK_DECL([GCRYCTL_SET_THREAD_CBS], [ -- libgcrypt-config --version >/dev/null || \ -+ ${GCRYPT_CONFIG} --version >/dev/null || \ - AC_MSG_ERROR([gcrypt.h present but libgcrypt-config could not be found]) - AC_CHECK_LIB(gcrypt, gcry_control, [ - have_libgcrypt="yes" -- GCRYPT_CFLAGS="`libgcrypt-config --cflags`" -- GCRYPT_LIBS="`libgcrypt-config --libs`" -+ GCRYPT_CFLAGS="`${GCRYPT_CONFIG} --cflags`" -+ GCRYPT_LIBS="`${GCRYPT_CONFIG} --libs`" - ], [ - AC_MSG_ERROR([libgcrypt not found. Install libgcrypt or pass --disable-libgcrypt.]) -- ], [`libgcrypt-config --libs`]) -+ ], [`${GCRYPT_CONFIG} --libs`]) + AC_TRY_COMPILE([ + #include <gcrypt.h> + #if GCRYPT_VERSION_NUMBER < 0x010600 +@@ -4064,8 +4065,8 @@ + [], [ + have_libgcrypt="yes" + AC_DEFINE([HAVE_GCRYPT], 1, [Defined if having gcrypt]) +- GCRYPT_CFLAGS="`libgcrypt-config --cflags`" +- GCRYPT_LIBS="`libgcrypt-config --libs`" ++ GCRYPT_CFLAGS="`${GCRYPT_CONFIG} --cflags`" ++ GCRYPT_LIBS="`${GCRYPT_CONFIG} --libs`" ], [ - AC_MSG_ERROR([libgcrypt version 1.1.94 or higher not found. Install libgcrypt or pass --disable-libgcrypt.]) - ], [#include <gcrypt.h>] + AS_IF([test "${enable_libgcrypt}" == "yes"], [ + AC_MSG_ERROR([libgcrypt version 1.6.0 or higher not found. Install libgcrypt or pass --disable-libgcrypt.])
package/vlc/0004-implicit-function-declaration.patch +2 -2
@@ -13,8 +13,8 @@ diff -uNr vlc-2.2.1.org/configure.ac vlc-2.2.1/configure.ac dnl Compiler warnings dnl --RDC_PROG_CC_WFLAGS([all extra sign-compare undef pointer-arith bad-function-cast write-strings missing-prototypes volatile-register-var error-implicit-function-declaration]) -+RDC_PROG_CC_WFLAGS([all extra sign-compare undef pointer-arith bad-function-cast write-strings missing-prototypes volatile-register-var]) +-RDC_PROG_CC_WFLAGS([all extra sign-compare undef pointer-arith bad-function-cast write-strings missing-prototypes volatile-register-var error-implicit-function-declaration init-self logical-op format-security]) ++RDC_PROG_CC_WFLAGS([all extra sign-compare undef pointer-arith bad-function-cast write-strings missing-prototypes volatile-register-var init-self logical-op format-security]) RDC_PROG_CC_FLAGS([-pipe]) AC_LANG_PUSH([C++]) RDC_PROG_CXX_WFLAGS([all extra sign-compare undef pointer-arith volatile-register-var])
package/vlc/0006-qt-x11.patch +6 -6
@@ -1,16 +1,16 @@ -libX11 is an optional dependency for the qt4 module +libX11 is an optional dependency for the qt module Signed-off-by: Bernd Kuhls <[email protected]> diff -uNr vlc-2.2.1.org/modules/gui/qt4/Makefile.am vlc-2.2.1/modules/gui/qt4/Makefile.am ---- vlc-2.2.1.org/modules/gui/qt4/Makefile.am 2014-11-29 12:34:15.000000000 +0100 -+++ vlc-2.2.1/modules/gui/qt4/Makefile.am 2015-04-27 18:53:36.968611490 +0200 +--- vlc-2.2.1.org/modules/gui/qt/Makefile.am 2014-11-29 12:34:15.000000000 +0100 ++++ vlc-2.2.1/modules/gui/qt/Makefile.am 2015-04-27 18:53:36.968611490 +0200 @@ -22,7 +22,7 @@ if HAVE_WIN32 - libqt4_plugin_la_LIBADD += -lole32 -lcomctl32 -luuid + libqt_plugin_la_LIBADD += -lole32 -lcomctl32 -luuid else --libqt4_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIB) -lX11 -+libqt4_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIB) +-libqt_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIB) -lX11 ++libqt_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIB) endif endif if HAVE_DARWIN
package/vlc/0007-strerror.patch +5 -5
@@ -11,15 +11,15 @@ Signed-off-by: Bernd Kuhls <[email protected]> diff -uNr vlc-2.2.1.org/configure.ac vlc-2.2.1/configure.ac --- vlc-2.2.1.org/configure.ac 2015-04-13 09:57:54.000000000 +0200 +++ vlc-2.2.1/configure.ac 2015-05-02 16:13:22.800448380 +0200 -@@ -534,7 +534,7 @@ +@@ -574,7 +574,7 @@ dnl Check for usual libc functions AC_CHECK_DECLS([nanosleep],,,[#include <time.h>]) --AC_CHECK_FUNCS([daemon fcntl fstatvfs fork getenv getpwuid_r isatty lstat memalign mmap open_memstream openat pread posix_fadvise posix_madvise setlocale stricmp strnicmp strptime uselocale]) -+AC_CHECK_FUNCS([daemon fcntl fstatvfs fork getenv getpwuid_r isatty lstat memalign mmap open_memstream openat pread posix_fadvise posix_madvise setlocale strerror_l stricmp strnicmp strptime uselocale]) - AC_REPLACE_FUNCS([atof atoll dirfd fdopendir flockfile fsync getdelim getpid gmtime_r lldiv localtime_r nrand48 poll posix_memalign rewind setenv strcasecmp strcasestr strdup strlcpy strndup strnlen strsep strtof strtok_r strtoll swab tdestroy strverscmp]) +-AC_CHECK_FUNCS([daemon fcntl flock fstatvfs fork getenv getpwuid_r isatty lstat memalign mkostemp mmap open_memstream openat pread posix_fadvise posix_madvise setlocale stricmp strnicmp strptime uselocale pthread_cond_timedwait_monotonic_np pthread_condattr_setclock]) ++AC_CHECK_FUNCS([daemon fcntl flock fstatvfs fork getenv getpwuid_r isatty lstat memalign mkostemp mmap open_memstream openat pread posix_fadvise posix_madvise setlocale strerror_l stricmp strnicmp strptime uselocale pthread_cond_timedwait_monotonic_np pthread_condattr_setclock]) + AC_REPLACE_FUNCS([atof atoll dirfd fdopendir ffsll flockfile fsync getdelim getpid lldiv nrand48 poll posix_memalign recvmsg rewind sendmsg setenv strcasecmp strcasestr strdup strlcpy strndup strnlen strnstr strsep strtof strtok_r strtoll swab tdestroy timegm timespec_get strverscmp]) + AC_REPLACE_FUNCS([gettimeofday]) AC_CHECK_FUNCS(fdatasync,, - [AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.]) diff -uNr vlc-2.2.1.org/src/posix/error.c vlc-2.2.1/src/posix/error.c --- vlc-2.2.1.org/src/posix/error.c 2014-08-14 09:20:04.000000000 +0200 +++ vlc-2.2.1/src/posix/error.c 2015-05-02 16:25:24.075378369 +0200
package/vlc/0008-Fix-build-error-using-uClibc-by-adding-sys-types.h.patch new file +44 -0
44 lines not on this page · raw message
package/vlc/Config.in +4 -2
@@ -9,6 +9,7 @@ config BR2_PACKAGE_VLC depends on BR2_INSTALL_LIBSTDCPP depends on !BR2_STATIC_LIBS depends on BR2_USE_WCHAR + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 select BR2_PACKAGE_LIBVORBIS if BR2_PACKAGE_OPUS
@@ -32,7 +33,8 @@ config BR2_PACKAGE_VLC_OPENCV3_BACKEND select BR2_PACKAGE_OPENCV3_LIB_IMGPROC select BR2_PACKAGE_OPENCV3_LIB_OBJDETECT -comment "vlc needs a toolchain w/ C++, dynamic library, wchar, threads, headers >= 3.7" +comment "vlc needs a toolchain w/ C++, dynamic library, wchar, threads, gcc >= 4.9, headers >= 3.7" depends on BR2_USE_MMU depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || !BR2_USE_WCHAR \ - || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 + || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 \ + || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
package/vlc/vlc.mk +18 -6
@@ -4,17 +4,22 @@ # ################################################################################ -VLC_VERSION = 2.2.2 -VLC_SITE = http://get.videolan.org/vlc/$(VLC_VERSION) -VLC_SOURCE = vlc-$(VLC_VERSION).tar.xz +VLC_VERSION = f30e0d9eda38591b970295f441f6517aa2f0d32c +VLC_SITE = https://git.videolan.org/git/vlc.git +VLC_SITE_METHOD = git VLC_LICENSE = GPLv2+ LGPLv2.1+ VLC_LICENSE_FILES = COPYING COPYING.LIB VLC_DEPENDENCIES = host-pkgconf -VLC_AUTORECONF = YES - -# Install vlc libraries in staging. VLC_INSTALL_STAGING = YES +# we can not use plain autoreconf because the vlc bootstrap script +# creates more makefiles, quote from $(@D)/bootstrap: +# "Generate the modules makefile, by parsing modules/**/Modules.am" +define VLC_BOOTSTRAP + cd $(@D) && PATH=$(BR_PATH) ./bootstrap +endef +VLC_PRE_CONFIGURE_HOOKS += VLC_BOOTSTRAP + # VLC defines two autoconf functions which are also defined by our own pkg.m4 # from pkgconf. Unfortunately, they are defined in a different way: VLC adds # --enable- options, but pkg.m4 adds --with- options. To make sure we use
@@ -26,6 +31,13 @@ define VLC_OVERRIDE_PKG_M4 endef VLC_POST_PATCH_HOOKS += VLC_OVERRIDE_PKG_M4 +# VLC needs the current git revision stored in a text file for the make +# target stamp-revision +define VLC_VERSION_TO_REVISION_TXT + echo $(VLC_VERSION) > $(@D)/src/revision.txt +endef +VLC_POST_PATCH_HOOKS += VLC_VERSION_TO_REVISION_TXT + VLC_CONF_OPTS += \ --disable-gles1 \ --disable-a52 \
Signature · 1 line
2.8.0.rc3