package/mpv: bump version to 0.4.0
Added upstream patch to fix build with ffmpeg 8.0. Added dependency to libplacebo: https://github.com/mpv-player/mpv/commit/f5ca11e12bc55d14bd6895b619c4abfd470c6452 Added optional dependency to libdisplay-info when libdrm is enabled: https://github.com/mpv-player/mpv/commit/a4d9bdd262b808d0c8663d28023ff21fef862803 Removed -Drpi option: https://github.com/mpv-player/mpv/commit/343a5fd345a84572ea5693a805119067d5b0fbc8 Removed configure options for atomic support: https://github.com/mpv-player/mpv/commit/2fa695c3f9d4164344228ef4083e87369de3bb33 Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
006aab8d64
commit
7325494780
@@ -0,0 +1,39 @@
|
||||
From 26b29fba02a2782f68e2906f837d21201fc6f1b9 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <kasper93@gmail.com>
|
||||
Date: Fri, 28 Mar 2025 19:12:01 +0100
|
||||
Subject: [PATCH] demux_mkv: fix compilation after deprecated definitions
|
||||
removal
|
||||
|
||||
See: https://github.com/FFmpeg/FFmpeg/commit/822432769868da325ba03774df1084aa78b9a5a0
|
||||
|
||||
Upstream: https://github.com/mpv-player/mpv/commit/26b29fba02a2782f68e2906f837d21201fc6f1b9
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
demux/demux_mkv.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/demux/demux_mkv.c b/demux/demux_mkv.c
|
||||
index 135edcc23d82b..cc7ce3e98f4f6 100644
|
||||
--- a/demux/demux_mkv.c
|
||||
+++ b/demux/demux_mkv.c
|
||||
@@ -2200,16 +2200,16 @@ static int demux_mkv_open_sub(demuxer_t *demuxer, mkv_track_t *track)
|
||||
// [0x30..0x37] are component tags utilized for
|
||||
// non-mobile captioning service ("profile A").
|
||||
if (component_tag >= 0x30 && component_tag <= 0x37)
|
||||
- lav->profile = FF_PROFILE_ARIB_PROFILE_A;
|
||||
+ lav->profile = AV_PROFILE_ARIB_PROFILE_A;
|
||||
break;
|
||||
case 0x0012:
|
||||
// component tag 0x87 signifies a mobile/partial reception
|
||||
// (1seg) captioning service ("profile C").
|
||||
if (component_tag == 0x87)
|
||||
- lav->profile = FF_PROFILE_ARIB_PROFILE_C;
|
||||
+ lav->profile = AV_PROFILE_ARIB_PROFILE_C;
|
||||
break;
|
||||
}
|
||||
- if (lav->profile == FF_PROFILE_UNKNOWN)
|
||||
+ if (lav->profile == AV_PROFILE_UNKNOWN)
|
||||
MP_WARN(demuxer, "ARIB caption profile %02x / %04x not supported.\n",
|
||||
component_tag, data_component_id);
|
||||
}
|
||||
@@ -6,18 +6,21 @@ config BR2_PACKAGE_MPV_SUPPORTS_VAAPI
|
||||
|
||||
config BR2_PACKAGE_MPV
|
||||
bool "mpv"
|
||||
depends on BR2_INSTALL_LIBSTDCPP # libass
|
||||
depends on BR2_INSTALL_LIBSTDCPP # libass, libplacebo
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libass
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_10 # libplacebo
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on !BR2_STATIC_LIBS # libplacebo
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER if BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_ALSA_LIB_PCM if BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_LIBDISPLAY_INFO if BR2_PACKAGE_LIBDRM
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
select BR2_PACKAGE_FFMPEG
|
||||
select BR2_PACKAGE_FFMPEG_SWSCALE
|
||||
select BR2_PACKAGE_LIBASS
|
||||
select BR2_PACKAGE_LIBPLACEBO
|
||||
select BR2_PACKAGE_ZLIB
|
||||
select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_WAYLAND
|
||||
# Select xkbcommon for wayland to avoid being mysterious
|
||||
@@ -35,10 +38,11 @@ config BR2_PACKAGE_MPV
|
||||
|
||||
https://mpv.io/
|
||||
|
||||
comment "mpv needs a toolchain w/ C++, NPTL, gcc >= 4.9"
|
||||
comment "mpv needs a toolchain w/ C++, NPTL, gcc >= 10, dynamic library"
|
||||
depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||
!BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_10 || \
|
||||
BR2_STATIC_LIBS
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 41df981b7b84e33a2ef4478aaf81d6f4f5c8b9cd2c0d337ac142fc20b387d1a9 mpv-0.35.1.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE.GPL
|
||||
sha256 10a0f4654f62140a6dd4d380dcf0bbdbdcf6e697556863dc499c296182f081a3 mpv-0.40.0.tar.gz
|
||||
sha256 edaef632cbb643e4e7a221717a6c441a4c1a7c918e6e4d56debc3d8739b233f6 LICENSE.GPL
|
||||
|
||||
+7
-10
@@ -4,10 +4,10 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MPV_VERSION = 0.35.1
|
||||
MPV_VERSION = 0.40.0
|
||||
MPV_SITE = $(call github,mpv-player,mpv,v$(MPV_VERSION))
|
||||
MPV_DEPENDENCIES = \
|
||||
host-pkgconf ffmpeg libass zlib \
|
||||
host-pkgconf ffmpeg libass libplacebo zlib \
|
||||
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
||||
MPV_LICENSE = GPL-2.0+
|
||||
MPV_LICENSE_FILES = LICENSE.GPL
|
||||
@@ -24,8 +24,7 @@ MPV_CONF_OPTS = \
|
||||
-Dopensles=disabled \
|
||||
-Drubberband=disabled \
|
||||
-Duchardet=disabled \
|
||||
-Dvapoursynth=disabled \
|
||||
-Drpi=disabled
|
||||
-Dvapoursynth=disabled
|
||||
|
||||
ifeq ($(BR2_REPRODUCIBLE),y)
|
||||
MPV_CONF_OPTS += -Dbuild-date=false
|
||||
@@ -38,6 +37,10 @@ else
|
||||
MPV_CONF_OPTS += -Dalsa=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBDISPLAY_INFO),y)
|
||||
MPV_DEPENDENCIES += libdisplay-info
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_GBM),y)
|
||||
MPV_CONF_OPTS += -Dgbm=enabled
|
||||
MPV_DEPENDENCIES += mesa3d
|
||||
@@ -207,10 +210,4 @@ else
|
||||
MPV_CONF_OPTS += -Dx11=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
MPV_CONF_OPTS += -Dstdatomic=enabled
|
||||
else
|
||||
MPV_CONF_OPTS += -Dstdatomic=disabled
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
|
||||
Reference in New Issue
Block a user