Initial Commit
- initial default booting image
This commit is contained in:
@@ -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);
|
||||
}
|
||||
48
package/mpv/Config.in
Normal file
48
package/mpv/Config.in
Normal file
@@ -0,0 +1,48 @@
|
||||
config BR2_PACKAGE_MPV_SUPPORTS_VAAPI
|
||||
bool
|
||||
default y if BR2_PACKAGE_LIBDRM && BR2_PACKAGE_MESA3D_OPENGL_EGL
|
||||
default y if BR2_PACKAGE_WAYLAND
|
||||
default y if BR2_PACKAGE_XORG7
|
||||
|
||||
config BR2_PACKAGE_MPV
|
||||
bool "mpv"
|
||||
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_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
|
||||
select BR2_PACKAGE_LIBXKBCOMMON if BR2_PACKAGE_WAYLAND
|
||||
# Select all necessary X11 dependencies if X.org is enabled
|
||||
select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBXINERAMA if BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBXPRESENT if BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBXSCRNSAVER if BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_XORG7
|
||||
help
|
||||
mpv is a fork of mplayer2 and MPlayer. It shares some features
|
||||
with the former projects while introducing many more.
|
||||
|
||||
https://mpv.io/
|
||||
|
||||
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_10 || \
|
||||
BR2_STATIC_LIBS
|
||||
3
package/mpv/mpv.hash
Normal file
3
package/mpv/mpv.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 10a0f4654f62140a6dd4d380dcf0bbdbdcf6e697556863dc499c296182f081a3 mpv-0.40.0.tar.gz
|
||||
sha256 edaef632cbb643e4e7a221717a6c441a4c1a7c918e6e4d56debc3d8739b233f6 LICENSE.GPL
|
||||
213
package/mpv/mpv.mk
Normal file
213
package/mpv/mpv.mk
Normal file
@@ -0,0 +1,213 @@
|
||||
################################################################################
|
||||
#
|
||||
# mpv
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MPV_VERSION = 0.40.0
|
||||
MPV_SITE = $(call github,mpv-player,mpv,v$(MPV_VERSION))
|
||||
MPV_DEPENDENCIES = \
|
||||
host-pkgconf ffmpeg libass libplacebo zlib \
|
||||
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
||||
MPV_LICENSE = GPL-2.0+
|
||||
MPV_LICENSE_FILES = LICENSE.GPL
|
||||
MPV_CPE_ID_VENDOR = mpv
|
||||
MPV_INSTALL_STAGING = YES
|
||||
|
||||
# Some of these options need testing and/or tweaks
|
||||
MPV_CONF_OPTS = \
|
||||
-Dcaca=disabled \
|
||||
-Dcocoa=disabled \
|
||||
-Dcoreaudio=disabled \
|
||||
-Dcuda-hwaccel=disabled \
|
||||
-Dlibmpv=true \
|
||||
-Dopensles=disabled \
|
||||
-Drubberband=disabled \
|
||||
-Duchardet=disabled \
|
||||
-Dvapoursynth=disabled
|
||||
|
||||
ifeq ($(BR2_REPRODUCIBLE),y)
|
||||
MPV_CONF_OPTS += -Dbuild-date=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
||||
MPV_CONF_OPTS += -Dalsa=enabled
|
||||
MPV_DEPENDENCIES += alsa-lib
|
||||
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
|
||||
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
||||
MPV_CONF_OPTS += -Degl-drm=enabled
|
||||
else
|
||||
MPV_CONF_OPTS += -Degl-drm=disabled
|
||||
endif
|
||||
else
|
||||
MPV_CONF_OPTS += -Dgbm=disabled -Degl-drm=disabled
|
||||
endif
|
||||
|
||||
# jack support
|
||||
# It also requires 64-bit sync intrinsics
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SYNC_8)$(BR2_PACKAGE_JACK2),yy)
|
||||
MPV_CONF_OPTS += -Djack=enabled
|
||||
MPV_DEPENDENCIES += jack2
|
||||
else
|
||||
MPV_CONF_OPTS += -Djack=disabled
|
||||
endif
|
||||
|
||||
# jpeg support
|
||||
ifeq ($(BR2_PACKAGE_JPEG),y)
|
||||
MPV_CONF_OPTS += -Djpeg=enabled
|
||||
MPV_DEPENDENCIES += jpeg
|
||||
else
|
||||
MPV_CONF_OPTS += -Djpeg=disabled
|
||||
endif
|
||||
|
||||
# lcms2 support
|
||||
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
||||
MPV_CONF_OPTS += -Dlcms2=enabled
|
||||
MPV_DEPENDENCIES += lcms2
|
||||
else
|
||||
MPV_CONF_OPTS += -Dlcms2=disabled
|
||||
endif
|
||||
|
||||
# libarchive support
|
||||
ifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
|
||||
MPV_CONF_OPTS += -Dlibarchive=enabled
|
||||
MPV_DEPENDENCIES += libarchive
|
||||
else
|
||||
MPV_CONF_OPTS += -Dlibarchive=disabled
|
||||
endif
|
||||
|
||||
# bluray support
|
||||
ifeq ($(BR2_PACKAGE_LIBBLURAY),y)
|
||||
MPV_CONF_OPTS += -Dlibbluray=enabled
|
||||
MPV_DEPENDENCIES += libbluray
|
||||
else
|
||||
MPV_CONF_OPTS += -Dlibbluray=disabled
|
||||
endif
|
||||
|
||||
# libcdio-paranoia
|
||||
ifeq ($(BR2_PACKAGE_LIBCDIO_PARANOIA),y)
|
||||
MPV_CONF_OPTS += -Dcdda=enabled
|
||||
MPV_DEPENDENCIES += libcdio-paranoia
|
||||
else
|
||||
MPV_CONF_OPTS += -Dcdda=disabled
|
||||
endif
|
||||
|
||||
# libdvdnav
|
||||
ifeq ($(BR2_PACKAGE_LIBDVDNAV),y)
|
||||
MPV_CONF_OPTS += -Ddvdnav=enabled
|
||||
MPV_DEPENDENCIES += libdvdnav
|
||||
else
|
||||
MPV_CONF_OPTS += -Ddvdnav=disabled
|
||||
endif
|
||||
|
||||
# libdrm
|
||||
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
||||
MPV_CONF_OPTS += -Ddrm=enabled
|
||||
MPV_DEPENDENCIES += libdrm
|
||||
else
|
||||
MPV_CONF_OPTS += -Ddrm=disabled
|
||||
endif
|
||||
|
||||
# libvdpau
|
||||
ifeq ($(BR2_PACKAGE_LIBVDPAU),y)
|
||||
MPV_CONF_OPTS += -Dvdpau=enabled
|
||||
MPV_DEPENDENCIES += libvdpau
|
||||
else
|
||||
MPV_CONF_OPTS += -Dvdpau=disabled
|
||||
endif
|
||||
|
||||
# LUA support, only for lua51/lua52/luajit
|
||||
# This enables the controller (OSD) together with libass
|
||||
ifeq ($(BR2_PACKAGE_LUA_5_1)$(BR2_PACKAGE_LUAJIT),y)
|
||||
MPV_CONF_OPTS += -Dlua=enabled
|
||||
MPV_DEPENDENCIES += luainterpreter
|
||||
else
|
||||
MPV_CONF_OPTS += -Dlua=disabled
|
||||
endif
|
||||
|
||||
# OpenGL support
|
||||
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
||||
MPV_CONF_OPTS += -Dgl=enabled
|
||||
MPV_DEPENDENCIES += libgl
|
||||
else ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
|
||||
MPV_CONF_OPTS += -Dgl=enabled
|
||||
MPV_DEPENDENCIES += libgles
|
||||
else ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
|
||||
MPV_CONF_OPTS += -Dgl=enabled
|
||||
MPV_DEPENDENCIES += libegl
|
||||
else
|
||||
MPV_CONF_OPTS += -Dgl=disabled
|
||||
endif
|
||||
|
||||
# pulseaudio support
|
||||
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
||||
MPV_CONF_OPTS += -Dpulse=enabled
|
||||
MPV_DEPENDENCIES += pulseaudio
|
||||
else
|
||||
MPV_CONF_OPTS += -Dpulse=disabled
|
||||
endif
|
||||
|
||||
# SDL support
|
||||
# Sdl2 requires 64-bit sync intrinsics
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SYNC_8)$(BR2_PACKAGE_SDL2),yy)
|
||||
MPV_CONF_OPTS += -Dsdl2=enabled
|
||||
MPV_DEPENDENCIES += sdl2
|
||||
else
|
||||
MPV_CONF_OPTS += -Dsdl2=disabled
|
||||
endif
|
||||
|
||||
# va-api support
|
||||
ifeq ($(BR2_PACKAGE_LIBVA)$(BR2_PACKAGE_MPV_SUPPORTS_VAAPI),yy)
|
||||
MPV_CONF_OPTS += -Dvaapi=enabled
|
||||
MPV_DEPENDENCIES += libva
|
||||
ifeq ($(BR2_PACKAGE_LIBDRM)$(BR2_PACKAGE_MESA3D_OPENGL_EGL),yy)
|
||||
MPV_CONF_OPTS += -Dvaapi-drm=enabled
|
||||
else
|
||||
MPV_CONF_OPTS += -Dvaapi-drm=disabled
|
||||
endif
|
||||
else
|
||||
MPV_CONF_OPTS += -Dvaapi=disabled -Dvaapi-drm=disabled
|
||||
endif
|
||||
|
||||
# wayland support
|
||||
ifeq ($(BR2_PACKAGE_WAYLAND),y)
|
||||
MPV_CONF_OPTS += -Dwayland=enabled
|
||||
MPV_DEPENDENCIES += libxkbcommon wayland wayland-protocols
|
||||
else
|
||||
MPV_CONF_OPTS += -Dwayland=disabled
|
||||
endif
|
||||
|
||||
# Base X11 support. Config.in ensures that if BR2_PACKAGE_XORG7 is
|
||||
# enabled, xlib_libX11, xlib_libXext, xlib_libXinerama,
|
||||
# xlib_libXrandr, xlib_libXScrnSaver.
|
||||
ifeq ($(BR2_PACKAGE_XORG7),y)
|
||||
MPV_CONF_OPTS += -Dx11=enabled
|
||||
MPV_DEPENDENCIES += \
|
||||
xlib_libX11 \
|
||||
xlib_libXext \
|
||||
xlib_libXinerama \
|
||||
xlib_libXpresent \
|
||||
xlib_libXrandr \
|
||||
xlib_libXScrnSaver
|
||||
# XVideo
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXV),y)
|
||||
MPV_CONF_OPTS += -Dxv=enabled
|
||||
MPV_DEPENDENCIES += xlib_libXv
|
||||
else
|
||||
MPV_CONF_OPTS += -Dxv=disabled
|
||||
endif
|
||||
else
|
||||
MPV_CONF_OPTS += -Dx11=disabled
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
Reference in New Issue
Block a user