added my Recipes
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
SUMMARY = "libdvdcss is a simple library for accessing DVDs like block devices"
|
||||
DESCRIPTION = "libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption."
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
SRC_URI = "http://download.videolan.org/pub/libdvdcss/${PV}/libdvdcss-${PV}.tar.bz2"
|
||||
|
||||
inherit autotools
|
||||
|
||||
EXTRA_OECONF = " --disable-doc "
|
||||
|
||||
SRC_URI[md5sum] = "7b74f2e142b13c9de6dc8d807ab912d4"
|
||||
SRC_URI[sha256sum] = "78c2ed77ec9c0d8fbed7bf7d3abc82068b8864be494cfad165821377ff3f2575"
|
||||
@@ -0,0 +1,27 @@
|
||||
Recent opencv API changes break upstream filter and example.
|
||||
Make opencv explicitly configurable.
|
||||
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
|
||||
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1892,7 +1892,16 @@ PKG_ENABLE_MODULES_VLC([BLURAY], [libblu
|
||||
dnl
|
||||
dnl OpenCV wrapper and example filters
|
||||
dnl
|
||||
-PKG_ENABLE_MODULES_VLC([OPENCV], [opencv_example opencv_wrapper], [opencv > 2.0], (OpenCV (computer vision) filter), [auto])
|
||||
+AC_ARG_ENABLE(opencv,
|
||||
+ [AS_HELP_STRING([--disable-opencv],
|
||||
+ [disable OpenCV computer vision filter and example (default auto)])])
|
||||
+if test "${enable_opencv}" != "no"
|
||||
+then
|
||||
+ PKG_ENABLE_MODULES_VLC([OPENCV],
|
||||
+ [opencv_example opencv_wrapper],
|
||||
+ [opencv > 2.0],
|
||||
+ (OpenCV (computer vision) filter), [auto])
|
||||
+fi
|
||||
|
||||
|
||||
dnl
|
||||
@@ -0,0 +1,17 @@
|
||||
* tremor provides libvorbisidec, use it instead of libvorbisdec
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
|
||||
|
||||
--- a/modules/codec/Makefile.am
|
||||
+++ b/modules/codec/Makefile.am
|
||||
@@ -321,7 +321,7 @@ codec_LTLIBRARIES += $(LTLIBdaala)
|
||||
libtremor_plugin_la_SOURCES = codec/vorbis.c
|
||||
libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
|
||||
libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
|
||||
-libtremor_plugin_la_LIBADD = -lvorbisdec -logg
|
||||
+libtremor_plugin_la_LIBADD = -lvorbisidec -logg
|
||||
EXTRA_LTLIBRARIES += libtremor_plugin.la
|
||||
codec_LTLIBRARIES += $(LTLIBtremor)
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
* luaL_checkint and luaL_optint were deprecated in lua 5.3
|
||||
* replacement functions are luaL_checkinteger and luaL_optinteger
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
|
||||
|
||||
--- a/modules/lua/demux.c
|
||||
+++ b/modules/lua/demux.c
|
||||
@@ -52,7 +52,7 @@ struct vlclua_playlist
|
||||
static int vlclua_demux_peek( lua_State *L )
|
||||
{
|
||||
stream_t *s = (stream_t *)vlclua_get_this(L);
|
||||
- int n = luaL_checkint( L, 1 );
|
||||
+ int n = luaL_checkinteger( L, 1 );
|
||||
const uint8_t *p_peek;
|
||||
|
||||
ssize_t val = vlc_stream_Peek(s->p_source, &p_peek, n);
|
||||
@@ -66,7 +66,7 @@ static int vlclua_demux_peek( lua_State
|
||||
static int vlclua_demux_read( lua_State *L )
|
||||
{
|
||||
stream_t *s = (stream_t *)vlclua_get_this(L);
|
||||
- int n = luaL_checkint( L, 1 );
|
||||
+ int n = luaL_checkinteger( L, 1 );
|
||||
char *buf = malloc(n);
|
||||
|
||||
if (buf != NULL)
|
||||
--- a/modules/lua/libs/net.c
|
||||
+++ b/modules/lua/libs/net.c
|
||||
@@ -179,7 +179,7 @@ static int vlclua_net_listen_tcp( lua_St
|
||||
{
|
||||
vlc_object_t *p_this = vlclua_get_this( L );
|
||||
const char *psz_host = luaL_checkstring( L, 1 );
|
||||
- int i_port = luaL_checkint( L, 2 );
|
||||
+ int i_port = luaL_checkinteger( L, 2 );
|
||||
int *pi_fd = net_ListenTCP( p_this, psz_host, i_port );
|
||||
if( pi_fd == NULL )
|
||||
return luaL_error( L, "Cannot listen on %s:%d", psz_host, i_port );
|
||||
@@ -251,7 +251,7 @@ static int vlclua_net_connect_tcp( lua_S
|
||||
{
|
||||
vlc_object_t *p_this = vlclua_get_this( L );
|
||||
const char *psz_host = luaL_checkstring( L, 1 );
|
||||
- int i_port = luaL_checkint( L, 2 );
|
||||
+ int i_port = luaL_checkinteger( L, 2 );
|
||||
int i_fd = net_ConnectTCP( p_this, psz_host, i_port );
|
||||
lua_pushinteger( L, vlclua_fd_map_safe( L, i_fd ) );
|
||||
return 1;
|
||||
@@ -259,14 +259,14 @@ static int vlclua_net_connect_tcp( lua_S
|
||||
|
||||
static int vlclua_net_close( lua_State *L )
|
||||
{
|
||||
- int i_fd = luaL_checkint( L, 1 );
|
||||
+ int i_fd = luaL_checkinteger( L, 1 );
|
||||
vlclua_fd_unmap_safe( L, i_fd );
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vlclua_net_send( lua_State *L )
|
||||
{
|
||||
- int fd = vlclua_fd_get( L, luaL_checkint( L, 1 ) );
|
||||
+ int fd = vlclua_fd_get( L, luaL_checkinteger( L, 1 ) );
|
||||
size_t i_len;
|
||||
const char *psz_buffer = luaL_checklstring( L, 2, &i_len );
|
||||
|
||||
@@ -278,7 +278,7 @@ static int vlclua_net_send( lua_State *L
|
||||
|
||||
static int vlclua_net_recv( lua_State *L )
|
||||
{
|
||||
- int fd = vlclua_fd_get( L, luaL_checkint( L, 1 ) );
|
||||
+ int fd = vlclua_fd_get( L, luaL_checkinteger( L, 1 ) );
|
||||
size_t i_len = (size_t)luaL_optinteger( L, 2, 1 );
|
||||
char psz_buffer[i_len];
|
||||
|
||||
@@ -312,7 +312,7 @@ static int vlclua_net_poll( lua_State *L
|
||||
lua_pushnil( L );
|
||||
for( int i = 0; lua_next( L, 1 ); i++ )
|
||||
{
|
||||
- luafds[i] = luaL_checkint( L, -2 );
|
||||
+ luafds[i] = luaL_checkinteger( L, -2 );
|
||||
p_fds[i].fd = vlclua_fd_get( L, luafds[i] );
|
||||
p_fds[i].events = luaL_checkinteger( L, -1 );
|
||||
p_fds[i].events &= POLLIN | POLLOUT | POLLPRI;
|
||||
@@ -360,7 +360,7 @@ static int vlclua_fd_open( lua_State *L
|
||||
#ifndef _WIN32
|
||||
static int vlclua_fd_write( lua_State *L )
|
||||
{
|
||||
- int fd = vlclua_fd_get( L, luaL_checkint( L, 1 ) );
|
||||
+ int fd = vlclua_fd_get( L, luaL_checkinteger( L, 1 ) );
|
||||
size_t i_len;
|
||||
const char *psz_buffer = luaL_checklstring( L, 2, &i_len );
|
||||
|
||||
@@ -371,7 +371,7 @@ static int vlclua_fd_write( lua_State *L
|
||||
|
||||
static int vlclua_fd_read( lua_State *L )
|
||||
{
|
||||
- int fd = vlclua_fd_get( L, luaL_checkint( L, 1 ) );
|
||||
+ int fd = vlclua_fd_get( L, luaL_checkinteger( L, 1 ) );
|
||||
size_t i_len = (size_t)luaL_optinteger( L, 2, 1 );
|
||||
char psz_buffer[i_len];
|
||||
|
||||
--- a/modules/lua/libs/osd.c
|
||||
+++ b/modules/lua/libs/osd.c
|
||||
@@ -154,7 +154,7 @@ static int vlc_osd_slider_type_from_stri
|
||||
|
||||
static int vlclua_osd_slider( lua_State *L )
|
||||
{
|
||||
- int i_position = luaL_checkint( L, 1 );
|
||||
+ int i_position = luaL_checkinteger( L, 1 );
|
||||
const char *psz_type = luaL_checkstring( L, 2 );
|
||||
int i_type = vlc_osd_slider_type_from_string( psz_type );
|
||||
int i_chan = (int)luaL_optinteger( L, 3, VOUT_SPU_CHANNEL_OSD );
|
||||
@@ -198,7 +198,7 @@ static int vlclua_spu_channel_register(
|
||||
|
||||
static int vlclua_spu_channel_clear( lua_State *L )
|
||||
{
|
||||
- int i_chan = luaL_checkint( L, 1 );
|
||||
+ int i_chan = luaL_checkinteger( L, 1 );
|
||||
input_thread_t *p_input = vlclua_get_input_internal( L );
|
||||
if( !p_input )
|
||||
return luaL_error( L, "Unable to find input." );
|
||||
--- a/modules/lua/libs/playlist.c
|
||||
+++ b/modules/lua/libs/playlist.c
|
||||
@@ -69,7 +69,7 @@ static int vlclua_playlist_next( lua_Sta
|
||||
|
||||
static int vlclua_playlist_skip( lua_State * L )
|
||||
{
|
||||
- int i_skip = luaL_checkint( L, 1 );
|
||||
+ int i_skip = luaL_checkinteger( L, 1 );
|
||||
playlist_t *p_playlist = vlclua_get_playlist_internal( L );
|
||||
playlist_Skip( p_playlist, i_skip );
|
||||
return 0;
|
||||
@@ -127,7 +127,7 @@ static int vlclua_playlist_random( lua_S
|
||||
|
||||
static int vlclua_playlist_gotoitem( lua_State * L )
|
||||
{
|
||||
- int i_id = luaL_checkint( L, 1 );
|
||||
+ int i_id = luaL_checkinteger( L, 1 );
|
||||
playlist_t *p_playlist = vlclua_get_playlist_internal( L );
|
||||
PL_LOCK;
|
||||
playlist_ViewPlay( p_playlist, NULL,
|
||||
@@ -138,7 +138,7 @@ static int vlclua_playlist_gotoitem( lua
|
||||
|
||||
static int vlclua_playlist_delete( lua_State * L )
|
||||
{
|
||||
- int i_id = luaL_checkint( L, 1 );
|
||||
+ int i_id = luaL_checkinteger( L, 1 );
|
||||
playlist_t *p_playlist = vlclua_get_playlist_internal( L );
|
||||
|
||||
PL_LOCK;
|
||||
@@ -152,8 +152,8 @@ static int vlclua_playlist_delete( lua_S
|
||||
|
||||
static int vlclua_playlist_move( lua_State * L )
|
||||
{
|
||||
- int i_item = luaL_checkint( L, 1 );
|
||||
- int i_target = luaL_checkint( L, 2 );
|
||||
+ int i_item = luaL_checkinteger( L, 1 );
|
||||
+ int i_target = luaL_checkinteger( L, 2 );
|
||||
playlist_t *p_playlist = vlclua_get_playlist_internal( L );
|
||||
PL_LOCK;
|
||||
playlist_item_t *p_item = playlist_ItemGetById( p_playlist, i_item );
|
||||
--- a/modules/lua/libs/stream.c
|
||||
+++ b/modules/lua/libs/stream.c
|
||||
@@ -123,7 +123,7 @@ static int vlclua_stream_read( lua_State
|
||||
{
|
||||
int i_read;
|
||||
stream_t **pp_stream = (stream_t **)luaL_checkudata( L, 1, "stream" );
|
||||
- int n = luaL_checkint( L, 2 );
|
||||
+ int n = luaL_checkinteger( L, 2 );
|
||||
uint8_t *p_read = malloc( n );
|
||||
if( !p_read ) return vlclua_error( L );
|
||||
|
||||
--- a/modules/lua/libs/volume.c
|
||||
+++ b/modules/lua/libs/volume.c
|
||||
@@ -48,7 +48,7 @@
|
||||
static int vlclua_volume_set( lua_State *L )
|
||||
{
|
||||
playlist_t *p_this = vlclua_get_playlist_internal( L );
|
||||
- int i_volume = luaL_checkint( L, 1 );
|
||||
+ int i_volume = luaL_checkinteger( L, 1 );
|
||||
if( i_volume < 0 )
|
||||
i_volume = 0;
|
||||
int i_ret = playlist_VolumeSet( p_this, i_volume/(float)AOUT_VOLUME_DEFAULT );
|
||||
--- a/modules/lua/libs/dialog.c
|
||||
+++ b/modules/lua/libs/dialog.c
|
||||
@@ -382,7 +382,7 @@ static int lua_GetDialogUpdate( lua_Stat
|
||||
/* Read entry in the Lua registry */
|
||||
lua_pushlightuserdata( L, (void*) &key_update );
|
||||
lua_gettable( L, LUA_REGISTRYINDEX );
|
||||
- return luaL_checkint( L, -1 );
|
||||
+ return luaL_checkinteger( L, -1 );
|
||||
}
|
||||
|
||||
/** Manually update a dialog
|
||||
@@ -573,22 +573,22 @@ static int vlclua_create_widget_inner( l
|
||||
|
||||
/* Set common arguments: col, row, hspan, vspan, width, height */
|
||||
if( lua_isnumber( L, arg ) )
|
||||
- p_widget->i_column = luaL_checkint( L, arg );
|
||||
+ p_widget->i_column = luaL_checkinteger( L, arg );
|
||||
else goto end_of_args;
|
||||
if( lua_isnumber( L, ++arg ) )
|
||||
- p_widget->i_row = luaL_checkint( L, arg );
|
||||
+ p_widget->i_row = luaL_checkinteger( L, arg );
|
||||
else goto end_of_args;
|
||||
if( lua_isnumber( L, ++arg ) )
|
||||
- p_widget->i_horiz_span = luaL_checkint( L, arg );
|
||||
+ p_widget->i_horiz_span = luaL_checkinteger( L, arg );
|
||||
else goto end_of_args;
|
||||
if( lua_isnumber( L, ++arg ) )
|
||||
- p_widget->i_vert_span = luaL_checkint( L, arg );
|
||||
+ p_widget->i_vert_span = luaL_checkinteger( L, arg );
|
||||
else goto end_of_args;
|
||||
if( lua_isnumber( L, ++arg ) )
|
||||
- p_widget->i_width = luaL_checkint( L, arg );
|
||||
+ p_widget->i_width = luaL_checkinteger( L, arg );
|
||||
else goto end_of_args;
|
||||
if( lua_isnumber( L, ++arg ) )
|
||||
- p_widget->i_height = luaL_checkint( L, arg );
|
||||
+ p_widget->i_height = luaL_checkinteger( L, arg );
|
||||
else goto end_of_args;
|
||||
|
||||
end_of_args:
|
||||
--- a/modules/lua/libs/io.c
|
||||
+++ b/modules/lua/libs/io.c
|
||||
@@ -139,7 +139,7 @@ static int vlclua_io_file_seek( lua_Stat
|
||||
const char* psz_mode = luaL_optstring( L, 2, NULL );
|
||||
if ( psz_mode != NULL )
|
||||
{
|
||||
- long i_offset = luaL_optlong( L, 3, 0 );
|
||||
+ long i_offset = (long)luaL_optinteger( L, 3, 0 );
|
||||
int i_mode;
|
||||
if ( !strcmp( psz_mode, "set" ) )
|
||||
i_mode = SEEK_SET;
|
||||
@@ -0,0 +1,57 @@
|
||||
From e8716a7755eef93e1033bb913e1eb4faee54658f Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 15 Apr 2020 18:29:26 -0700
|
||||
Subject: [PATCH] Use packageconfig to detect mmal support
|
||||
|
||||
This needs userland graphics libraries, because distros may install it
|
||||
in different locations, therefore its best to rely on pkgconf to find
|
||||
the libs and header locations instead of assuming /opt/vc which might
|
||||
work on some distros ( like raspbian ) but not everywhere
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
configure.ac | 31 +++++++++++--------------------
|
||||
1 file changed, 11 insertions(+), 20 deletions(-)
|
||||
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -3461,27 +3461,18 @@ AC_ARG_ENABLE(mmal,
|
||||
AS_HELP_STRING([--enable-mmal],
|
||||
[Multi-Media Abstraction Layer (MMAL) hardware plugin (default enable)]))
|
||||
if test "${enable_mmal}" != "no"; then
|
||||
- VLC_SAVE_FLAGS
|
||||
- LDFLAGS="${LDFLAGS} -L/opt/vc/lib -lvchostif"
|
||||
- CPPFLAGS="${CPPFLAGS} -isystem /opt/vc/include -isystem /opt/vc/include/interface/vcos/pthreads -isystem /opt/vc/include/interface/vmcs_host/linux"
|
||||
- AC_CHECK_HEADERS(interface/mmal/mmal.h,
|
||||
- [ AC_CHECK_LIB(bcm_host, vc_tv_unregister_callback_full, [
|
||||
- have_mmal="yes"
|
||||
- VLC_ADD_PLUGIN([mmal])
|
||||
- VLC_ADD_LDFLAGS([mmal],[ -L/opt/vc/lib ])
|
||||
- VLC_ADD_CFLAGS([mmal],[ -isystem /opt/vc/include -isystem /opt/vc/include/interface/vcos/pthreads -isystem /opt/vc/include/interface/vmcs_host/linux ])
|
||||
- VLC_ADD_LIBS([mmal],[ -lbcm_host -lmmal -lmmal_core -lmmal_components -lmmal_util -lvchostif ]) ], [
|
||||
- AS_IF([test "${enable_mmal}" = "yes"],
|
||||
- [ AC_MSG_ERROR([Cannot find bcm library...]) ],
|
||||
- [ AC_MSG_WARN([Cannot find bcm library...]) ])
|
||||
- ],
|
||||
- [])
|
||||
- ] , [ AS_IF([test "${enable_mmal}" = "yes"],
|
||||
- [ AC_MSG_ERROR([Cannot find development headers for mmal...]) ],
|
||||
- [ AC_MSG_WARN([Cannot find development headers for mmal...]) ]) ])
|
||||
- VLC_RESTORE_FLAGS
|
||||
+ PKG_CHECK_MODULES(BCMHOST, [bcm_host], [
|
||||
+ HAVE_BCMHOST=yes
|
||||
+ AC_DEFINE(HAVE_BCMHOST, 1, [Define this if you have have userlang graphics installed])
|
||||
+ VLC_ADD_LIBS([bcmhost],[$BCMHOST_LIBS])
|
||||
+ VLC_ADD_CFLAGS([bcmhost],[$BCMHOST_CFLAGS])
|
||||
+ ],:
|
||||
+ [AC_MSG_WARN([${BCMHOST_PKG_ERRORS}: userland graphics not available.])
|
||||
+ HAVE_BCMHOST=no])
|
||||
+
|
||||
+ AC_CHECK_HEADERS(interface/mmal/mmal.h)
|
||||
fi
|
||||
-AM_CONDITIONAL([HAVE_MMAL], [test "${have_mmal}" = "yes"])
|
||||
+AM_CONDITIONAL([HAVE_MMAL], [test "${have_bcmhost}" = "yes"])
|
||||
|
||||
dnl
|
||||
dnl evas plugin
|
||||
@@ -0,0 +1,47 @@
|
||||
From a46cee56d05884b8020ace6f67ef8389ac1845da Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 5 Mar 2023 13:50:40 -0800
|
||||
Subject: [PATCH 1/3] ioctl does not have same signature between glibc and musl
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
modules/access/v4l2/lib.c | 4 ++++
|
||||
modules/access/v4l2/v4l2.h | 4 ++++
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/modules/access/v4l2/lib.c b/modules/access/v4l2/lib.c
|
||||
index b212e1bc5f..ff7c66bf35 100644
|
||||
--- a/modules/access/v4l2/lib.c
|
||||
+++ b/modules/access/v4l2/lib.c
|
||||
@@ -43,7 +43,11 @@ int (*v4l2_fd_open) (int, int) = fd_open;
|
||||
//int (*v4l2_open) (const char *, int, ...) = open;
|
||||
//int (*v4l2_dup) (const char *, int, ...) = dup;
|
||||
int (*v4l2_close) (int) = close;
|
||||
+#ifdef __GLIBC__
|
||||
int (*v4l2_ioctl) (int, unsigned long int, ...) = ioctl;
|
||||
+#else
|
||||
+int (*v4l2_ioctl) (int, int, ...) = ioctl;
|
||||
+#endif
|
||||
ssize_t (*v4l2_read) (int, void *, size_t) = read;
|
||||
//ssize_t (*v4l2_write) (int, const void *, size_t) = write;
|
||||
void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t) = mmap;
|
||||
diff --git a/modules/access/v4l2/v4l2.h b/modules/access/v4l2/v4l2.h
|
||||
index ac4562e269..727e83e9b1 100644
|
||||
--- a/modules/access/v4l2/v4l2.h
|
||||
+++ b/modules/access/v4l2/v4l2.h
|
||||
@@ -23,7 +23,11 @@
|
||||
/* libv4l2 functions */
|
||||
extern int (*v4l2_fd_open) (int, int);
|
||||
extern int (*v4l2_close) (int);
|
||||
+#ifdef __GLIBC__
|
||||
extern int (*v4l2_ioctl) (int, unsigned long int, ...);
|
||||
+#else
|
||||
+extern int (*v4l2_ioctl) (int, int, ...);
|
||||
+#endif
|
||||
extern ssize_t (*v4l2_read) (int, void *, size_t);
|
||||
extern void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t);
|
||||
extern int (*v4l2_munmap) (void *, size_t);
|
||||
--
|
||||
2.39.2
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From 048e4fdd08ac588feb27b03e3ec1824e24f77d62 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 5 Mar 2023 14:13:25 -0800
|
||||
Subject: [PATCH 3/3] configure: Disable incompatible-function-pointer-types
|
||||
warning
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
configure.ac | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 9f1c099e13..8e45a05808 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -98,6 +98,11 @@ AS_IF([test -n "${with_binary_version}"],[
|
||||
dnl Prevent clang from accepting unknown flags with a mere warning
|
||||
AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CFLAGS])
|
||||
AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CXXFLAGS])
|
||||
+dnl disable clang from erroring on function pointer protype mismatch, vlc seems to rely on that
|
||||
+dnl especially in modules/video_filter/deinterlace/algo_yadif.c how it interpolates 'filter` variable
|
||||
+dnl between different functions yadif_filter_line_c_16bit() and yadif_filter_line_c()
|
||||
+AX_APPEND_COMPILE_FLAGS([-Wno-error=incompatible-function-pointer-types -Wno-error=incompatible-function-pointer-types], [CFLAGS])
|
||||
+AX_APPEND_COMPILE_FLAGS([-Wno-error=incompatible-function-pointer-types -Wno-error=incompatible-function-pointer-types], [CXXFLAGS])
|
||||
|
||||
dnl
|
||||
dnl Check the operating system
|
||||
--
|
||||
2.39.2
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
DESCRIPTION = "Video player and streamer - davinci edition"
|
||||
HOMEPAGE = "http://www.videolan.org"
|
||||
SECTION = "multimedia"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
DEPENDS = "coreutils-native fribidi libtool libgcrypt libgcrypt-native bison-native \
|
||||
dbus libxml2 gnutls \
|
||||
tremor faad2 ffmpeg flac alsa-lib \
|
||||
lua-native lua libidn \
|
||||
avahi jpeg xz libmodplug mpeg2dec \
|
||||
libmtp libopus orc libsamplerate0 libusb1 schroedinger taglib \
|
||||
tiff"
|
||||
|
||||
LDFLAGS:append:riscv64 = " -latomic"
|
||||
LDFLAGS:append:riscv32 = " -latomic"
|
||||
|
||||
SRC_URI = "git://github.com/videolan/vlc.git;protocol=https;branch=3.0.x \
|
||||
file://0001-make-opencv-configurable.patch \
|
||||
file://0002-use-vorbisidec.patch \
|
||||
file://0003-fix-luaL-checkint.patch \
|
||||
file://0004-Use-packageconfig-to-detect-mmal-support.patch \
|
||||
file://0005-ioctl-does-not-have-same-signature-between-glibc-and.patch \
|
||||
file://0006-configure-Disable-incompatible-function-pointer-type.patch \
|
||||
"
|
||||
SRCREV = "e9eceaed4d838dbd84638bfb2e4bdd08294163b1"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools-brokensep features_check gettext pkgconfig mime-xdg
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "x11"
|
||||
|
||||
export BUILDCC = "${BUILD_CC}"
|
||||
EXTRA_OECONF = "\
|
||||
--enable-run-as-root \
|
||||
--enable-xvideo \
|
||||
--disable-screen --disable-caca \
|
||||
--enable-vlm \
|
||||
--enable-freetype \
|
||||
--enable-tremor \
|
||||
--enable-v4l2 --disable-aa --disable-faad \
|
||||
--enable-dbus \
|
||||
--without-contrib \
|
||||
--without-kde-solid \
|
||||
--enable-realrtsp \
|
||||
--disable-libtar \
|
||||
--enable-avcodec \
|
||||
ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
|
||||
ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
|
||||
ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
|
||||
"
|
||||
|
||||
PACKAGECONFIG ?= " \
|
||||
live555 dc1394 dv1394 notify fontconfig fluidsynth freetype dvdread png \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
|
||||
x264 \
|
||||
"
|
||||
|
||||
inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)}
|
||||
|
||||
PACKAGECONFIG[mmal] = "--enable-omxil --enable-omxil-vout --enable-rpi-omxil --enable-mmal,,userland"
|
||||
PACKAGECONFIG[x264] = "--enable-x264,--disable-x264,x264"
|
||||
PACKAGECONFIG[fluidsynth] = ",,fluidsynth"
|
||||
PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
|
||||
PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
|
||||
PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
|
||||
PACKAGECONFIG[live555] = "--enable-live555 LIVE555_PREFIX=${STAGING_DIR_HOST}${prefix},--disable-live555,live555"
|
||||
PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
|
||||
PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
|
||||
PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva"
|
||||
PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
|
||||
PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
|
||||
PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
|
||||
PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
|
||||
PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg"
|
||||
PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
|
||||
PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
|
||||
PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
|
||||
PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp"
|
||||
PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss"
|
||||
PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2"
|
||||
PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg"
|
||||
PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg"
|
||||
PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
|
||||
PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394"
|
||||
PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg"
|
||||
PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo"
|
||||
PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+3"
|
||||
PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig"
|
||||
PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype"
|
||||
PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss"
|
||||
PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver"
|
||||
PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama"
|
||||
PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
|
||||
PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
|
||||
PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland wayland-native"
|
||||
|
||||
do_configure:append() {
|
||||
# moc needs support: precreate build paths
|
||||
for qtpath in adapters components/epg components/playlist components/sout dialogs managers styles util/buttons; do
|
||||
mkdir -p "${B}/modules/gui/qt/$qtpath"
|
||||
done
|
||||
}
|
||||
|
||||
# This recipe packages vlc as a library as well, so qt4 dependencies
|
||||
# can be avoided when only the library is installed.
|
||||
PACKAGES =+ "libvlc"
|
||||
|
||||
LEAD_SONAME_libvlc = "libvlc.so.5"
|
||||
FILES:libvlc = "${libdir}/lib*.so.*"
|
||||
|
||||
FILES:${PN} += "\
|
||||
${bindir}/vlc \
|
||||
${libdir}/vlc/vlc/libvlc_vdpau.so \
|
||||
${datadir}/applications \
|
||||
${datadir}/vlc/ \
|
||||
${datadir}/icons \
|
||||
${datadir}/metainfo/vlc.appdata.xml \
|
||||
"
|
||||
|
||||
FILES:${PN}-dbg += "\
|
||||
${libdir}/vlc/*/.debug \
|
||||
${libdir}/vlc/plugins/*/.debug \
|
||||
"
|
||||
|
||||
FILES:${PN}-staticdev += "\
|
||||
${libdir}/vlc/plugins/*/*.a \
|
||||
"
|
||||
|
||||
INSANE_SKIP:${PN} = "dev-so"
|
||||
|
||||
EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "0", "1", d)}"
|
||||
Reference in New Issue
Block a user