summaryrefslogtreecommitdiff
path: root/multimedia/mpv
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2021-11-01 17:39:26 +0000
committerleot <leot@pkgsrc.org>2021-11-01 17:39:26 +0000
commit5f570b74edf91f4aa7327407ca925b8a6c16f0cc (patch)
treefe43f1242bd9d29f29ab1ff2642442534d719242 /multimedia/mpv
parent600450f8427a7d0515c20b9854a6b851eb4bbfdc (diff)
downloadpkgsrc-5f570b74edf91f4aa7327407ca925b8a6c16f0cc.tar.gz
mpv: Update to 0.34.0
Changes: Release 0.34.0 ============== Features -------- Added ~~~~~ - player: allow vo to be switched at runtime - input.conf syntax: support custom quotes in `XstringX` form & single quotes - ao_ass: readd OSSv4 audio output, default on *BSD - player: load cover art with the media filename - vo_gpu: vulkan: implement a VkDisplayKHR backed context - osc: seekbar hover/drag: display target chapter at the OSC title - stats.lua: add page 4 with a list of active key bindings - sub: add --sub-filter-jsre (JS regex) - vo_rpi: restore fullscreen handling - vo_tct: add resize capability - ytdl_hook.lua: search for yt-dlp by default (preferred over youtube-dl) Changed ~~~~~~~ - vo_sixel: many fixes and improvements - filters: switch from scaletempo to scaletempo2, used for `speed` option - audio/vo_pulse: fix various edge cases and issues - stats.lua: move internal performance info from page 4 to page 0 - command: don't hardcode command lists to be repeatable Removed ~~~~~~~ - mac: drop build support for swift versions earlier than 4.1 - vo_gpu: drop support for libplacebo older than v3.104.0 Options and Commands -------------------- Added ~~~~~ - vo_sixel: add --vo-sixel-exit-clear - player: add --screen-name and --fs-screen-name - player/command: add albumart argument to video-add - command: add pid (process id), display-width and display-height properties - sub: add secondary-sub-text, -start, and -end properties; secondary-sub-visibility option - vo_gpu: add --icc-force-contrast - player: add append-play flag to loadlist - command: add support for secondary subs to sub-seek and sub-step - options: add watch-later-options to configure which options are saved - player: add track-list/N/image sub-property - input: add --no-input-builtin-bindings option - drm_common: add --drm-device option Changed ~~~~~~~ - vo_sixel: change default dither to "auto" - vd_lavc: add VP8 to the default allowed hwdec codec list - vo_gpu: lower default deband threshold to preserve more detail - vo_gpu: adjust interpolation-threshold's default - demux: undeprecate --cache-secs - options: add `Uploader`, `Channel_URL` to --display-tags defaults - options: --audio-display determines cover priority - command: make current-window-scale writeable Deprecated ~~~~~~~~~~ - win32: ignore and deprecate --fit-border - drm_common: deprecate selecting by card number in --drm-connector Removed ~~~~~~~ - vo_gpu: remove --icc-contrast - stats.lua: remove script-opts for the main keys (i/I) - vo_gpu: opengl: remove --opengl-restrict Fixes and Minor Enhancements ---------------------------- - terminal: correctly process input when foregrounded - vo_wlshm: support presentation time - mac: fix a window positioning bug when exiting fullscreen - csputils: add mappings for DCI-P3 (ST.431-2) and P3-D65 (ST.432-1) - player: make resetting of track selection to "auto" work - stream_lavf: support rtsps - vo_wlshm: support big endian systems - demux_mf: add support for more image codecs - msg: fix really-quiet option to only affect terminal output - mac: fix traditional fullscreen on macOS 11 - ao_pulse: fix misbehavior with PipeWire when setting volume or mute - stats.lua: include a filter's @label when displaying filters on page 1 - wayland, win32: support the display-hidpi-scale property - win32: keep the window title-bar inside the screen - filter_kernels: fix incorrect constant for quadric window - command: add display-width/display-height property - edl: add a way to add tags - stream_file: disable readahead for remote files on macOS to fix stutter - osxbundle: fix slow and wasteful memory allocation that caused stutter - vo_gpu: fix extreme clipping with --gamut-clipping for HDR outputs - af_scaletempo2: speed up using vector calculations - recorder: fix muxing of certain codecs - win32: support the focused property - js: add mp.utils.append_file - subs: fix missing subtitles on last frame - stats.lua: show scaled resolution - osc: expose osc-visibility via shared-script-properties - terminal-unix: fix ^Z identification and ignore unknown CSI sequences - context_drm_egl: allow autoprobe selection - wayland: improve behavior with touch events - command: make current-window-scale writeable - vo_vdpau: don't treat preemption as an error to fix VT switching - wayland: read XCURSOR_THEME to get cursor theme - demux_playlist: extend maximum line size (again) to 2M - win32: call timeBeginPeriod on demand on Windows 10 - build: allow easier selection of lua version/package - vo_gpu: fix distortion with certain rotated videos - drm_common: skip non-primary devices during automatic choosing - drm_common: support USB, SPI, Writeback and unknown connector types (future proofing)
Diffstat (limited to 'multimedia/mpv')
-rw-r--r--multimedia/mpv/Makefile7
-rw-r--r--multimedia/mpv/distinfo12
-rw-r--r--multimedia/mpv/patches/patch-video_out_wayland__common.c14
-rw-r--r--multimedia/mpv/patches/patch-wscript23
4 files changed, 33 insertions, 23 deletions
diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile
index 41e3e68c8e3..558ae3faf7d 100644
--- a/multimedia/mpv/Makefile
+++ b/multimedia/mpv/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.129 2021/10/09 15:35:09 nia Exp $
+# $NetBSD: Makefile,v 1.130 2021/11/01 17:39:26 leot Exp $
-DISTNAME= mpv-0.33.1
-PKGREVISION= 6
+DISTNAME= mpv-0.34.0
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -36,7 +35,7 @@ PKGCONFIG_OVERRIDE+= libmpv/mpv.pc.in
SUBST_CLASSES+= python
SUBST_SED.python+= -e "s,python,python${PYVERSSUFFIX},"
SUBST_SED.python+= -e "s,rst2man,rst2man-${PYVERSSUFFIX},"
-SUBST_FILES.python+= wscript
+SUBST_FILES.python+= wscript wscript_build.py
SUBST_STAGE.python= pre-configure
SUBST_MESSAGE.python= Fix Python command names.
diff --git a/multimedia/mpv/distinfo b/multimedia/mpv/distinfo
index d54f23a5910..6a667550c8f 100644
--- a/multimedia/mpv/distinfo
+++ b/multimedia/mpv/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.71 2021/10/26 11:01:13 nia Exp $
+$NetBSD: distinfo,v 1.72 2021/11/01 17:39:26 leot Exp $
-BLAKE2s (mpv-0.33.1.tar.gz) = 99ba37d6ca3a4303cb72f208ec4c0135a8832c9a9d8240af1132cb56810e2066
-SHA512 (mpv-0.33.1.tar.gz) = 99d6c40d18c5cf83814b44ec6d8eade229800c5b51a734c9bbe831c3aeb95f8931124c94f6ae2360ffff62053c163bc3c55b254df021e005b350ebc3df7e952b
-Size (mpv-0.33.1.tar.gz) = 3259882 bytes
+BLAKE2s (mpv-0.34.0.tar.gz) = ae9f9087b404a2b781f35f6d72d6fb0dfc31847454fef30693ab89da3f1e70e4
+SHA512 (mpv-0.34.0.tar.gz) = 9935a20730dbb8fbf4cd11fe2fc38b1981882fc85c93046837a9b99cae089b3f710e6af7d7ea977c177de5479aa24e413f76cab9b995e8b7e66d6b77c524fdf0
+Size (mpv-0.34.0.tar.gz) = 3287976 bytes
SHA1 (patch-audio_out_ao__alsa.c) = c4661d0d22550d6e4eb2b7a42dd04dbcc58123b0
SHA1 (patch-video_out_drm__common.c) = 70eb8884f63e9456c0ffe592289cfd81e208955b
-SHA1 (patch-video_out_wayland__common.c) = 6a8d1d9b4109f941847f7eef47e3fbc7b3cc0535
-SHA1 (patch-wscript) = f9b3f85c696d70ca4becb5f554320f754779c0de
+SHA1 (patch-video_out_wayland__common.c) = abed416d258ebf0b595ea897daf3013dd81189e8
+SHA1 (patch-wscript) = 3792bd2cc84fababdde86e66c5a93772f2b105d1
diff --git a/multimedia/mpv/patches/patch-video_out_wayland__common.c b/multimedia/mpv/patches/patch-video_out_wayland__common.c
index 70b95ff4205..95016971013 100644
--- a/multimedia/mpv/patches/patch-video_out_wayland__common.c
+++ b/multimedia/mpv/patches/patch-video_out_wayland__common.c
@@ -1,13 +1,13 @@
-$NetBSD: patch-video_out_wayland__common.c,v 1.5 2020/12/19 11:27:51 leot Exp $
+$NetBSD: patch-video_out_wayland__common.c,v 1.6 2021/11/01 17:39:26 leot Exp $
Allow building on systems without evdev.
---- video/out/wayland_common.c.orig 2020-11-22 17:46:28.000000000 +0000
+--- video/out/wayland_common.c.orig 2021-11-01 14:44:39.000000000 +0000
+++ video/out/wayland_common.c
-@@ -19,7 +19,15 @@
+@@ -17,7 +17,15 @@
+
+ #include <errno.h>
#include <limits.h>
- #include <poll.h>
- #include <unistd.h>
+#ifdef HAVE_LINUX_INPUT_EVENT_CODES
#include <linux/input-event-codes.h>
+#else
@@ -17,6 +17,6 @@ Allow building on systems without evdev.
+#define BTN_SIDE (0x113)
+#define BTN_EXTRA (0x114)
+#endif
+ #include <poll.h>
#include <time.h>
- #include "common/msg.h"
- #include "options/m_config.h"
+ #include <unistd.h>
diff --git a/multimedia/mpv/patches/patch-wscript b/multimedia/mpv/patches/patch-wscript
index 8ee197f1f27..f7e375deade 100644
--- a/multimedia/mpv/patches/patch-wscript
+++ b/multimedia/mpv/patches/patch-wscript
@@ -1,10 +1,12 @@
-$NetBSD: patch-wscript,v 1.6 2020/12/19 11:27:51 leot Exp $
+$NetBSD: patch-wscript,v 1.7 2021/11/01 17:39:26 leot Exp $
-Enable support for DRM on NetBSD.
+- Enable support for DRM on NetBSD.
+- Check for OSSv4 features that could not be on some platforms
+ (e.g. NetBSD)
---- wscript.orig 2020-11-22 17:46:28.000000000 +0000
+--- wscript.orig 2021-11-01 14:44:39.000000000 +0000
+++ wscript
-@@ -268,6 +268,11 @@ iconv support use --disable-iconv.",
+@@ -272,6 +272,11 @@ iconv support use --disable-iconv.",
'func': check_statement(['sys/consio.h', 'sys/ioctl.h'],
'int m; ioctl(0, VT_GETMODE, &m)'),
}, {
@@ -16,12 +18,21 @@ Enable support for DRM on NetBSD.
'name': 'gbm.h',
'desc': 'gbm.h',
'func': check_cc(header_name=['stdio.h', 'gbm.h']),
-@@ -477,7 +482,7 @@ video_output_features = [
+@@ -432,7 +437,7 @@ audio_output_features = [
+ }, {
+ 'name': '--oss-audio',
+ 'desc': 'OSSv4 audio output',
+- 'func': check_statement(['sys/soundcard.h'], 'int x = SNDCTL_DSP_SETPLAYVOL'),
++ 'func': check_statement(['sys/soundcard.h'], 'int x = SNDCTL_DSP_SETPLAYVOL; int y = SNDCTL_DSP_HALT;'),
+ 'deps': 'posix && gpl',
+ }, {
+ 'name': '--pulse',
+@@ -490,7 +495,7 @@ video_output_features = [
}, {
'name': '--drm',
'desc': 'DRM',
- 'deps': 'vt.h || consio.h',
+ 'deps': 'vt.h || consio.h || wsdisplay_usl_io.h',
- 'func': check_pkg_config('libdrm', '>= 2.4.74'),
+ 'func': check_pkg_config('libdrm', '>= 2.4.75'),
}, {
'name': '--gbm',