summaryrefslogtreecommitdiff
path: root/media-video/mpv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-22 11:40:14 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-22 11:40:14 +0000
commit8ef9b8c62c1aa79c0bceaf3c0d6fe1e7cdd976d0 (patch)
treef77288f305460b2e91e979db14bf06b8f882238f /media-video/mpv
parente621d36783ba0760925a62dd23c71495436fe753 (diff)
gentoo auto-resync : 22:02:2024 - 11:40:14
Diffstat (limited to 'media-video/mpv')
-rw-r--r--media-video/mpv/Manifest6
-rw-r--r--media-video/mpv/files/mpv-0.36.0-sub-match-audio.patch35
-rw-r--r--media-video/mpv/files/mpv-0.36.0-tests-odr.patch30
-rw-r--r--media-video/mpv/metadata.xml1
-rw-r--r--media-video/mpv/mpv-0.36.0-r1.ebuild292
5 files changed, 1 insertions, 363 deletions
diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest
index 94c36f743282..21cd0efd92de 100644
--- a/media-video/mpv/Manifest
+++ b/media-video/mpv/Manifest
@@ -1,10 +1,6 @@
-AUX mpv-0.36.0-sub-match-audio.patch 1621 BLAKE2B aa774960703d3b5f2f5a8c3dc327bba0fa8865fdc676c68fdaf79cf46f7209fd629db5e523f4f845ce0aaf17d0a8c910c6c1c2c8fabe98340e5c61a31d8c4d36 SHA512 c260ad68a7e003f43b0b4525fb7eff5f5784851beba303a934b90b0e69476c5912cc75217a78820884d1fdcc1e7431574bdb6b55cb9e434735cdfbdeadfb3a0e
-AUX mpv-0.36.0-tests-odr.patch 1118 BLAKE2B 8a87385922af6ee08adc3972ce2271f1f700842dba8415ac27f04ba7147b070b665279c7b4d50e06b85d258a9ab47db23a82a9f9a4db444efb97a677ef2f6317 SHA512 8ccec2ce0108468c8fc048d3e892b1c8f177f434809d899f38a00526515b1453e0cb5cd2bfd5843568a025fda314fd172c94c548c8e144514353904066b917f3
AUX mpv-0.37.0-drm-fix.patch 1444 BLAKE2B e0645e9b12ebbd0088b10aed34cabadbdb1b06d9cab14c40e9108c09d068c1ccba133dd91ba4c1d0735c67d0a8010003c77b85466343504cb220498fa24ac964 SHA512 8ce946f6043abb274b3051e787f5445ad40a3ea404cb2effcf9a4415a589483861381e54762e31f72d03c4975d01b67b662b6fb8a8a9194d7cd7d8acb4cab084
-DIST mpv-0.36.0.tar.gz 3409178 BLAKE2B 7260c265f02918d4caf72d8d8ecc9d4ab9783d66d675bd683a2f9c228404ad978c6fe0aa50f486b5257740176bc26f8abde7eff20d89019d5f701ec78c7743e1 SHA512 51f455a425ea5aac47acb3582d0f958a34248a2290a8d6887d22bcb9385fe8d1ab5d7f09d5408cfecfb73c1ec85d1b8ec8958e45a4941d3f711a2e580187472f
DIST mpv-0.37.0.tar.gz 3384190 BLAKE2B 31d8d47ed7ae94540189fe05b7ea63f5b0d5c987a22191f931e4bd90664d05dca4c7e0bd0e05fcdf48b977e38e5f8eec0d2572265f2cf4a969a8a9a9dbf83d68 SHA512 a2f7fb3837312ec59c50427af7be3b2b1b6175a53ccc7463e81503284fc4047dff32cb105d665d80be77ee1ae775d4512b71584f324d6d202c9a7fc1fab53257
-EBUILD mpv-0.36.0-r1.ebuild 7509 BLAKE2B b019ec3c189c4f1499506c44d71a5c460ace26b8de690b5ff16ecece67ba3749224690fafec149a68785cc02324ee2c7b291a323f17c5c31653423f9ec6b445a SHA512 ca82b7f1eb70e684e24abcafa8c93f25a2541b0c178c8b7bd299cc599946e115722f2234ff2a460dead755f8586523277331ccc17800383ffb5c81c5a9faddae
EBUILD mpv-0.37.0-r1.ebuild 6995 BLAKE2B a4a45da1baa5d2157a9727e8e41d94ada7cb15e0052970a758f93a35de2f5f50159a7fd35f344641dba5049986bd849a92505943a21b57b5e661c3aeb81bb94b SHA512 84c5e2e834728e470af2b221cfb87d9824defa069da231b2ea9fcc88871396562c0e01fed72b2924b68a5c1d94a268186aaa5fcfb3efd922506aad75aa1cd1c0
EBUILD mpv-0.37.0.ebuild 7090 BLAKE2B 4c1e7df2155e0efa7bedb2b86d37644763a47cb4ad7f086adee9348a01ac5cea3e4ec13ac7191cb5d7784c24af3e3b1443a8be228e2c10e7660c22664c144e6a SHA512 a48defc31dbead64f4beabcce63db757d2ad3a03e18b55e37135ffc25c744c0829184155b75d8dd78f56bd6d83cacb96139f67f635e6857bc12d0ebae2831272
EBUILD mpv-9999.ebuild 6884 BLAKE2B d8c7ee354ba8a03ff08742fe12584614cbbc59877ef5e4ab70b37ed40a53271e6d0cce78169d52210621307757b0b14901cac0081e63691180e0b2d2664e4226 SHA512 9108731725f0c5bc38eebe3728c94d834337ac7602b62fc64a1b32e3d36b98ad9a2f4ff85d5419d272f9b95a0c2175d9cbcfa9d5297e5e82a436d990187360f6
-MISC metadata.xml 2370 BLAKE2B d55cd3de4d841ef0e6f5494327e11b1633fe9982192371a07c7ece63795b77023dc5019fe15fca9757508b473a0bdc1dbdab92a26c7911366cb2a5aa71a1f497 SHA512 1e44ba602e743e166abbc23aa438b31e704650e3df2bc1d0df47cb2fda2c8dabd6307d8b61517104c26a149f6cb43558c0c3ff883b1708869309f70d184d2fa2
+MISC metadata.xml 2248 BLAKE2B 384962e209948418c928a4a8d903f57a226116929db253847e7977d0febbf3fc23b18f947e9896b5a16e816267eb06c0e64145fc15270f66dca4fe7321c36897 SHA512 c4f1191adacde565a5d6ff6fdf10a9dedc84fae3d04792baac456e37fabcd80f04858031f442dcf1dd07c3d59e2343319c955969b23d0aef456c2d927a76bcbf
diff --git a/media-video/mpv/files/mpv-0.36.0-sub-match-audio.patch b/media-video/mpv/files/mpv-0.36.0-sub-match-audio.patch
deleted file mode 100644
index d893b7b78c12..000000000000
--- a/media-video/mpv/files/mpv-0.36.0-sub-match-audio.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-Backport to restore --subs-with-matching-audio back to "yes" by default
-like it was in <0.36 to spare users from confusion and/or needlessly
-adjusting their configs until next version.
-
-https://github.com/mpv-player/mpv/issues/11854
-https://github.com/mpv-player/mpv/pull/12015
-https://github.com/mpv-player/mpv/commit/a2dd78fbc0932a4f47edbe4c41fe268095075c88
---- a/DOCS/man/options.rst
-+++ b/DOCS/man/options.rst
-@@ -140,11 +140,11 @@ Track Selection
-
- ``--subs-with-matching-audio=<yes|no>``
- When autoselecting a subtitle track, select a full/non-forced one even if the selected
-- audio stream matches your preferred subtitle language (default: no).
-+ audio stream matches your preferred subtitle language (default: yes).
-
- ``--subs-fallback=<yes|default|no>``
- When autoselecting a subtitle track, if no tracks match your preferred languages,
-- select a full track even if it doesn't match your preferred subtitle language (default: no).
-+ select a full track even if it doesn't match your preferred subtitle language (default: default).
- Setting this to `default` means that only streams flagged as `default` will be selected.
-
- ``--subs-fallback-forced=<yes|no>``
---- a/options/options.c
-+++ b/options/options.c
-@@ -1040,7 +1040,8 @@ static const struct MPOpts mp_default_opts = {
- [STREAM_SUB] = (char *[]){ "auto", NULL },
- },
- .stream_auto_sel = true,
-- .subs_with_matching_audio = false,
-+ .subs_with_matching_audio = true,
-+ .subs_fallback = 1,
- .subs_fallback_forced = true,
- .audio_display = 1,
- .audio_output_format = 0, // AF_FORMAT_UNKNOWN
diff --git a/media-video/mpv/files/mpv-0.36.0-tests-odr.patch b/media-video/mpv/files/mpv-0.36.0-tests-odr.patch
deleted file mode 100644
index 1c7c05c20f78..000000000000
--- a/media-video/mpv/files/mpv-0.36.0-tests-odr.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-Quickfix for USE=test with -Werror=odr (stubs, so have no real consequences).
-
-timer.h gets indirectly included and can declare these differently, have not
-looked closer yet.
---- a/test/test_utils.c
-+++ b/test/test_utils.c
-@@ -110,6 +110,6 @@
- #ifndef WIN32_TESTS
--void mp_add_timeout(void) {};
--void mp_rel_time_to_timespec(void) {};
--void mp_time_us(void) {};
--void mp_time_us_to_timespec(void) {};
-+void mp_add_timeout(int64_t time_us, double timeout_sec) {};
-+struct timespec mp_rel_time_to_timespec(double timeout_sec) {return (struct timespec){0};};
-+int64_t mp_time_us(void) {return 0;};
-+struct timespec mp_time_us_to_timespec(int64_t time_us) {return (struct timespec){0};};
- #endif
---- a/test/test_utils.h
-+++ b/test/test_utils.h
-@@ -61,6 +61,6 @@
- #ifndef WIN32_TESTS
--void mp_add_timeout(void);
--void mp_rel_time_to_timespec(void);
--void mp_time_us(void);
--void mp_time_us_to_timespec(void);
-+void mp_add_timeout(int64_t time_us, double timeout_sec);
-+struct timespec mp_rel_time_to_timespec(double timeout_sec);
-+int64_t mp_time_us(void);
-+struct timespec mp_time_us_to_timespec(int64_t time_us);
- #endif
diff --git a/media-video/mpv/metadata.xml b/media-video/mpv/metadata.xml
index 560695642b8f..4fb09acf0a6a 100644
--- a/media-video/mpv/metadata.xml
+++ b/media-video/mpv/metadata.xml
@@ -12,7 +12,6 @@
<flag name="drm">Enable Kernel Mode Setting / Direct Rendering Manager based video outputs</flag>
<flag name="gamepad">Enable gamepad input support</flag>
<flag name="libmpv">Enable the shared library and headers (used by frontends / plugins)</flag>
- <flag name="libplacebo">Enable support for GPU accelerated video rendering with <pkg>media-libs/libplacebo</pkg></flag>
<flag name="lua">Enable Lua scripting, OSC (On Screen Controller) GUI, and <pkg>net-misc/yt-dlp</pkg> support</flag>
<flag name="mmal">Enable Multi-Media Abstraction Layer (MMAL) decoding support: Available e.g. on the Raspberry Pi</flag>
<flag name="opengl">Enable support for OpenGL-based video backends
diff --git a/media-video/mpv/mpv-0.36.0-r1.ebuild b/media-video/mpv/mpv-0.36.0-r1.ebuild
deleted file mode 100644
index 7aa8c51ed9aa..000000000000
--- a/media-video/mpv/mpv-0.36.0-r1.ebuild
+++ /dev/null
@@ -1,292 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LUA_COMPAT=( lua5-1 luajit )
-PYTHON_COMPAT=( python3_{10..12} )
-inherit flag-o-matic lua-single meson optfeature pax-utils python-single-r1 xdg
-
-if [[ ${PV} == 9999 ]]; then
- inherit git-r3
- EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
-else
- SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="amd64 ~arm arm64 ~loong ppc ppc64 ~riscv x86 ~amd64-linux"
-fi
-
-DESCRIPTION="Media player for the command line"
-HOMEPAGE="https://mpv.io/"
-
-LICENSE="LGPL-2.1+ GPL-2+ BSD ISC MIT" #506946
-SLOT="0/2" # soname
-IUSE="
- +X +alsa aqua archive bluray cdda +cli coreaudio debug +drm dvb
- dvd +egl gamepad +iconv jack javascript jpeg lcms libcaca +libmpv
- +libplacebo +lua mmal nvenc openal opengl pipewire pulseaudio
- raspberry-pi rubberband sdl selinux sixel sndio test tools +uchardet
- vaapi vdpau vulkan wayland xv zimg zlib"
-REQUIRED_USE="
- ${PYTHON_REQUIRED_USE}
- || ( cli libmpv )
- egl? ( || ( X drm wayland ) )
- libplacebo? ( || ( egl opengl vulkan ) )
- lua? ( ${LUA_REQUIRED_USE} )
- nvenc? ( || ( egl opengl vulkan ) )
- opengl? ( || ( X aqua ) )
- test? ( cli )
- tools? ( cli )
- uchardet? ( iconv )
- vaapi? (
- || ( X egl libplacebo wayland )
- wayland? ( drm )
- )
- vdpau? ( X )
- vulkan? ( || ( X wayland ) libplacebo )
- xv? ( X )"
-RESTRICT="!test? ( test )"
-
-# raspberry-pi: default to -bin given non-bin is known broken (bug #893422)
-COMMON_DEPEND="
- media-libs/libass:=[fontconfig]
- >=media-video/ffmpeg-4.4:=[encode,threads,vaapi?,vdpau?]
- X? (
- x11-libs/libX11
- x11-libs/libXScrnSaver
- x11-libs/libXext
- x11-libs/libXinerama
- x11-libs/libXpresent
- x11-libs/libXrandr
- xv? ( x11-libs/libXv )
- )
- alsa? ( media-libs/alsa-lib )
- archive? ( app-arch/libarchive:= )
- bluray? ( media-libs/libbluray:= )
- cdda? (
- dev-libs/libcdio-paranoia:=
- dev-libs/libcdio:=
- )
- drm? (
- media-libs/mesa[gbm(+)]
- x11-libs/libdrm
- )
- dvd? (
- media-libs/libdvdnav
- media-libs/libdvdread:=
- )
- egl? ( media-libs/libglvnd )
- gamepad? ( media-libs/libsdl2[joystick] )
- iconv? (
- virtual/libiconv
- uchardet? ( app-i18n/uchardet )
- )
- jack? ( virtual/jack )
- javascript? ( dev-lang/mujs:= )
- jpeg? ( media-libs/libjpeg-turbo:= )
- lcms? ( media-libs/lcms:2 )
- libcaca? ( media-libs/libcaca )
- libplacebo? (
- >=media-libs/libplacebo-4.157:=[opengl?,vulkan?]
- egl? ( media-libs/libplacebo[opengl] )
- )
- lua? ( ${LUA_DEPS} )
- openal? ( media-libs/openal )
- opengl? ( media-libs/libglvnd[X?] )
- pipewire? ( media-video/pipewire:= )
- pulseaudio? ( media-libs/libpulse )
- raspberry-pi? (
- || (
- media-libs/raspberrypi-userland-bin
- media-libs/raspberrypi-userland
- )
- )
- rubberband? ( media-libs/rubberband )
- sdl? ( media-libs/libsdl2[sound,threads,video] )
- sixel? ( media-libs/libsixel )
- sndio? ( media-sound/sndio:= )
- vaapi? ( media-libs/libva:=[X?,drm(+)?,wayland?] )
- vdpau? ( x11-libs/libvdpau )
- vulkan? (
- media-libs/shaderc
- media-libs/vulkan-loader[X?,wayland?]
- )
- wayland? (
- dev-libs/wayland
- dev-libs/wayland-protocols
- x11-libs/libxkbcommon
- )
- zimg? ( media-libs/zimg )
- zlib? ( sys-libs/zlib:= )"
-RDEPEND="
- ${COMMON_DEPEND}
- selinux? ( sec-policy/selinux-mplayer )
- tools? ( ${PYTHON_DEPS} )"
-DEPEND="
- ${COMMON_DEPEND}
- X? ( x11-base/xorg-proto )
- dvb? ( virtual/linuxtv-dvb-headers )
- nvenc? ( media-libs/nv-codec-headers )
- wayland? ( dev-libs/wayland-protocols )"
-BDEPEND="
- ${PYTHON_DEPS}
- virtual/pkgconfig
- cli? ( dev-python/docutils )
- wayland? ( dev-util/wayland-scanner )"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-0.36.0-tests-odr.patch
- "${FILESDIR}"/${PN}-0.36.0-sub-match-audio.patch
-)
-
-pkg_setup() {
- use lua && lua-single_pkg_setup
- python-single-r1_pkg_setup
-}
-
-src_configure() {
- if use !debug; then
- if use test; then
- einfo "Skipping -DNDEBUG due to USE=test"
- else
- append-cppflags -DNDEBUG # treated specially
- fi
- fi
-
- mpv_feature_multi() {
- local use set
- for use in ${1} ${2}; do
- use ${use} || set=disabled
- done
- echo -D${3-${2}}=${set-enabled}
- }
-
- local emesonargs=(
- $(meson_use cli cplayer)
- $(meson_use libmpv)
- $(meson_use test tests)
-
- $(meson_feature cli html-build)
- $(meson_feature cli manpage-build)
- -Dpdf-build=disabled
-
- -Dbuild-date=false
-
- # misc options
- $(meson_feature archive libarchive)
- $(meson_feature bluray libbluray)
- $(meson_feature cdda)
- -Dcplugins=enabled
- $(meson_feature dvb dvbin)
- $(meson_feature dvd dvdnav)
- $(meson_feature gamepad sdl2-gamepad)
- $(meson_feature iconv)
- $(meson_feature javascript)
- -Dlibavdevice=enabled
- $(meson_feature lcms lcms2)
- -Dlua=$(usex lua "${ELUA}" disabled)
- $(meson_feature rubberband)
- -Dsdl2=$(use gamepad || use sdl && echo enabled || echo disabled) #857156
- $(meson_feature uchardet)
- -Dvapoursynth=disabled # only available in overlays
- $(meson_feature zimg)
- $(meson_feature zlib)
-
- # audio output
- $(meson_feature alsa)
- $(meson_feature coreaudio)
- $(meson_feature jack)
- $(meson_feature openal)
- $(meson_feature pipewire)
- $(meson_feature pulseaudio pulse)
- $(meson_feature sdl sdl2-audio)
- $(meson_feature sndio)
-
- # video output
- $(meson_feature X x11)
- $(meson_feature aqua cocoa)
- $(meson_feature drm)
- $(meson_feature drm gbm)
- $(meson_feature jpeg)
- $(meson_feature libcaca caca)
- $(meson_feature libplacebo)
- $(meson_feature mmal rpi-mmal)
- $(meson_feature sdl sdl2-video)
- $(meson_feature sixel)
- $(meson_feature wayland)
- $(meson_feature xv)
-
- -Dgl=$(use egl || use libmpv || use opengl || use raspberry-pi &&
- echo enabled || echo disabled)
- $(meson_feature egl)
- $(mpv_feature_multi egl X egl-x11)
- $(mpv_feature_multi egl drm egl-drm)
- $(mpv_feature_multi egl wayland egl-wayland)
- $(meson_feature libmpv plain-gl)
- $(mpv_feature_multi opengl X gl-x11)
- $(mpv_feature_multi opengl aqua gl-cocoa)
- $(meson_feature raspberry-pi rpi)
-
- $(meson_feature vulkan)
- $(meson_feature vulkan shaderc)
-
- # hardware decoding
- $(meson_feature nvenc cuda-hwaccel)
- $(meson_feature nvenc cuda-interop)
-
- $(meson_feature vaapi)
- $(mpv_feature_multi vaapi X vaapi-x11)
- $(mpv_feature_multi 'vaapi X' egl vaapi-x-egl)
- $(mpv_feature_multi 'vaapi egl' drm vaapi-drm)
- $(mpv_feature_multi 'vaapi egl' wayland vaapi-wayland)
-
- $(meson_feature vdpau)
- $(mpv_feature_multi vdpau opengl vdpau-gl-x11)
-
- $(mpv_feature_multi aqua opengl videotoolbox-gl)
-
- # notable options left to automagic
- #dmabuf-wayland: USE="drm wayland" + plus memfd_create support
- #libplacebo-next: USE="libplacebo" + >=libplacebo-5.264
- #vulkan-interop: USE="libplacebo vulkan" + >=ffmpeg-6.1
- # TODO?: perhaps few more similar compound options should be left auto
- )
-
- has_version '>=media-libs/libplacebo-5.264' ||
- ewarn "${PN}'s gpu-next video output requires ${_} to be used"
-
- meson_src_configure
-}
-
-src_install() {
- meson_src_install
-
- if use lua; then
- insinto /usr/share/${PN}
- doins -r TOOLS/lua
-
- if use cli && use lua_single_target_luajit; then
- pax-mark -m "${ED}"/usr/bin/${PN}
- fi
- fi
-
- if use tools; then
- dobin TOOLS/{mpv_identify.sh,umpv}
- newbin TOOLS/idet.sh mpv_idet.sh
- python_fix_shebang "${ED}"/usr/bin/umpv
- fi
-
- if use cli; then
- dodir /usr/share/doc/${PF}/html
- mv "${ED}"/usr/share/doc/{mpv,${PF}/html}/mpv.html || die
- mv "${ED}"/usr/share/doc/{mpv,${PF}/examples} || die
- fi
-
- local GLOBIGNORE=*/*build*:*/*policy*
- dodoc RELEASE_NOTES DOCS/*.{md,rst}
-}
-
-pkg_postinst() {
- xdg_pkg_postinst
-
- optfeature "URL support with USE=lua" net-misc/yt-dlp
-}