Mon Jan 1 15:50:14 2024 UTC (147d)
mpv: Update to 0.37.0

pkgsrc changes:
- Remove bits that were applied upstream in patch-osdep_threads-posix.h
- Adjust patch-osdep_threads.c logic to patch-osdep_threads-posix.h
- Add dependency to libplacebo (thanks to <wiz> for help in packaging!)

Changes:
0.37.0
======
This release requires FFmpeg 4.4 or newer and libplacebo 6.338.0 or
newer.

This is the first release to unconditionally require libplacebo, but
note that the new improved renderer (vo_gpu_next) is not yet the
default.

Features
--------
New
~~~
- ao_oss: add SPDIF passthrough support
- hwtransfer: implement support for HW->HW format conversions
- stream/dvbin: add support for delivery system ISDB-T
- audio/chmap: support up to 64 channels (including 22.2 layout)
- libmpv: add mpv_time_ns()
- vo_gpu, vo_gpu_next: add Vulkan support for macOS
- meson: make libplacebo a required dependency
- hwdec: support videotoolbox hwdec with libplacebo

Changed
~~~~~~~
- msg: print warning and error messages to stderr
- options: restore old default subtitle selection behavior
- input.conf: swap wheel up/down with wheel left/right

Removed
~~~~~~~
- waf: remove waf as a build system
- osc.lua: remove toggle for forced only subpictures (appeared as [F])
- mac: remove runtime checks and compatibility for macOS older than 10.15
- cocoa: remove deprecated OpenGL cocoa backend

Options and Commands
--------------------
Added
~~~~~
- vo_gpu_next: add --hdr-peak-percentile
- player: add --term-remaining-playtime option
- x11: add --x11-wid-title option
- vo_gpu_next: add --libplacebo-opts
- player: add --subs-match-os-language option (replaces 'auto' option)
- vo: add --video-crop
- win32: add --window-corners, --window-affinity, --title-bar, --backdrop-type
- sub: add --sub-stretch-durations option

Changed
~~~~~~~
- builtin.conf: add --hdr-peak-percentile=99.995 to gpu-hq profile
- player: add 'always' option to --subs-fallback-forced
- demux_playlist: default to --directory-mode=lazy
- builtin.conf: add --allow-delayed-peak-detect=no to gpu-hq profile
- vo_gpu, vo_gpu_next: support --icc-3dlut-size=auto
- demux: prepend some cache options with --demuxer-
- builtin.conf: modernize internal profiles for higher quality rendering by default,
  rename 'gpu-hq' profile to 'high-quality', add 'fast' profile
- vo_gpu, vo_gpu_next: default to dscale=hermite
- builtin.conf: remove deprecated 'opengl-hq' profile
- options: remove a bunch of old option fallbacks/deprecated ones
- vo_gpu: allow --deband-iterations to be 0
- stream_cdda: deprecate --cdda-toc-bias and always check for offsets
- options: disable --allow-delayed-peak-detect by default
- options: adjust default of --watch-later-options

Deprecated
~~~~~~~~~~
- command: deprecate shared-script-properties
- demux_cue: deprecate --demuxer-cue-codepage for --metadata-codepage

Removed
~~~~~~~
- player: remove special 'auto' option from alang/slang/vlang (previous default)
- vo_gpu: remove --tone-mapping-mode
- vo_gpu: remove --scale-wblur, --scale-cutoff etc.
- vo_gpu: remove --scaler-lut-size
- m_option: drop support for -del for list options

Fixes and Minor Enhancements
----------------------------
- build: remove unneeded libdl requirement for vaapi
- zimg: fix abort on subsampled input with odd heights
- video_writer: fix gamma for YUV screenshots
- player/video: fix possible crash when changing lavfi-complex
- ad_spdif: fix segfault due to early deallocation
- ao_pipewire: fix race conditon with setting the media role
- draw_bmp: fix overflowing coordinates in mark_rcs
- ao_sndio: use sio_flush() to improve controls responsiveness
- vo_vdpau: fix hwdec for this vo
- vo_gpu, vo_gpu_next: fix setting an empty dscale
- vd_lavc: repeatedly attempt to fallback if hwdec fails in reinit
- options: fix relative time parsing on negative input
- win32: signal DPI changes correctly
- mp_image: properly infer color levels for some pixfmts
- vo_gpu_next: add ability to use named hook params
- vo_gpu_next: take into account PAR when taking screenshots
- ao_audiotrack: support more channel layouts
- osc.lua: support speed-independent time-remaining display
- sub: fix switching tracks while paused
- audio: fix clipping with gapless audio enabled
- player/video: avoid spamming logs with EOF
- player/command: detect aspect ratio name and show it in stats.lua
- wayland: keyboard input fixes
- demux_playlist: remove len restriction on headerless m3u
- win32: fix display resolution calculation on mulitple monitors
- vo_gpu_next: multiple adjustments and fixes to interpolation
- loadfile: avoid infinite playlist loading loops
- context_drm_egl: don't free EGL properties if they are null
- x11: require xrandr 1.4, remove xinerama support
- drm_common: skip cards that don't have connected outputs
- win32_common: fixes minimized window being focused on launch
- ao/jack: set device_buffer to JACK buffer size
- meson: rename all features with underscores
- input: add new keys: Back, Tools, ZoomIn, ZoomOut
- win32: don't ignore --screen and --fs-screen
- input: add missing keypad key defines and Windows multimedia keys
- player: use audio pts corresponding to playing audio on EOF
- command: add sub-ass-extradata property
- vo_dmabuf_wayland: unmap osd surface when not needed
- player: always write redirect entries for resuming playback
- stats.lua: reorganize how video params are displayed
- stats.lua: display HDR metadata
- osc.lua: add scrolling to the seekbar
- demux_lavf: prefer track durations over container durations to determine total
- vo: vulkan: allow picking devices by UUID
- video: allow overriding container crop if it is present
- vo_gpu, vo_gpu_next, screenshot: support applying crop for screenshots
- sd_lavc: account for floating point inaccuracy, fix sub PTS
- stream: accept dav:// and davs:// urls
- filter_kernels: refine some constants
- filter_kernels: add ewa_lanczos4sharpest
- osc.lua: add scrolling to audio/sub buttons
- demux_mkv: support cropping and rotation
- vo_dmabuf_wayland: support 90 degree rotations
- filter_kernels: add hermite filter
- vo: avoid unnecessary redraws when the OSD shows
- scripting: support DLL cplugins
- af_scaletempo2: various bug fixes
- sdl_gamepad: fix button detection on modern controllers
- vo_dmabuf_wayland: support osd rendering when there's no video
- demux_playlist: add --directory-mode=auto
- vo_gpu_next: use proper color for subtitles
- win32: add an option to change window affinity and control title bar state
- win32: reduce top border thickness to imitate DWM invisible borders
- wayland: remove gnome-specific idle-inhibit warning
- win32: pass window handle to the window-id property
- osc.lua: fix calculation for slider's min-max average
- recorder: fix a couple of memory leaks
- af_scaletempo2: raise max playback rate to 8.0
- osc.lua: move the idle logo behind other overlays
- hwdec_drmprime: add nv16 support
- various: change internal timing code to work in nanoseconds instead of microseconds
- vo: increase display refresh rate estimation limit from 99 Hz to 400 Hz
- external_files: base cover-art-whitelist on cover-art-auto-exts
- path: don't override cache and state paths with --config-dir
- codec_tags: map some more image mimetypes
- af/vf-command: add ability to target a specific lavfi filter
- win32: prevent white window flash on startup
- demux_playlist: use --metacode-codepage when parsing playlist files
- video: revert racey change that led to stutter and deadlocking
- console.lua: various improvements
- command: add playlist-next-playlist and playlist-prev-playlist
- ytdl_hook.lua: set metadata with single tracks
- defaults.lua: add a disabled parameter to timer constructors
- terminal-unix: race condition fixes
- af_scaletempo2: better defaults
- hwtransfer: handle hwcontexts that don't implement frame constraints
- stream_cdda: remove fallback for ancient libcdio versions
- osdep: drop support for C11 without atomics
- dvbin: do a big cleanup on code style and functions
- ytdl_hook.lua: parse the separate cookies field
- sub: update subtitles if current track is an image
- javascript: use --js-memory-report option instead of MPV_LEAK_REPORT
- ao_coreaudio: signal buffer underruns
- ytdl_hook.lua: support thumbnails
- demux: make hysteresis-secs respect cache-secs
- mp_image: pass rotation correctly to/from AVFrame correctly
- various: add new internal mp_thread abstraction and use it
- drm: use present_sync mechanism for presentation feedback
- vo_gpu: apply ICC profile and dithering only to window screenshots
- audio: introduce ao_read_data_nonblocking() and use it in relevant backends
- wayland: obey initial size hints set by the compositor
- command: export storage aspect ratio (sar) properties
- vo: delay vsync samples by at least 10 refreshes to improve convergence time
- vo_sdl: fix broken mouse wheel multiplier
- vo_gpu_next: simplify cache code and don't re-save when unmodified


(leot)
diff -r1.162 -r1.163 pkgsrc/multimedia/mpv/Makefile
diff -r1.14 -r1.15 pkgsrc/multimedia/mpv/PLIST
diff -r1.80 -r1.81 pkgsrc/multimedia/mpv/distinfo
diff -r1.1 -r1.2 pkgsrc/multimedia/mpv/patches/patch-meson.build
diff -r0 -r1.1 pkgsrc/multimedia/mpv/patches/patch-osdep_threads-posix.h
diff -r1.1 -r0 pkgsrc/multimedia/mpv/patches/patch-osdep_threads.c
Tue Jan 2 00:50:14 2024
Thu Jan 1 09:00:00 1970
pkgsrc/multimedia/mpv/patches/patch-osdep_threads.c,v

anoncvs not yet been updated

cvs diff -r1.162 -r1.163 pkgsrc/multimedia/mpv/Makefile (expand / switch to unified diff)

--- pkgsrc/multimedia/mpv/Makefile 2023/11/12 13:23:01 1.162
+++ pkgsrc/multimedia/mpv/Makefile 2024/01/01 15:50:13 1.163
@@ -1,20 +1,19 @@ @@ -1,20 +1,19 @@
1# $NetBSD: Makefile,v 1.162 2023/11/12 13:23:01 wiz Exp $ 1# $NetBSD: Makefile,v 1.163 2024/01/01 15:50:13 leot Exp $
2 2
3DISTNAME= mpv-0.36.0 3DISTNAME= mpv-0.37.0
4CATEGORIES= multimedia 4CATEGORIES= multimedia
5MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/}
6GITHUB_TAG= v${PKGVERSION_NOREV} 6GITHUB_TAG= v${PKGVERSION_NOREV}
7PKGREVISION= 3 
8 7
9MAINTAINER= leot@NetBSD.org 8MAINTAINER= leot@NetBSD.org
10HOMEPAGE= https://mpv.io/ 9HOMEPAGE= https://mpv.io/
11COMMENT= Video player based on MPlayer and mplayer2 10COMMENT= Video player based on MPlayer and mplayer2
12LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 11LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
13 12
14# needs sem_timedwait(3) 13# needs sem_timedwait(3)
15NOT_FOR_PLATFORM= NetBSD-[1-6].*-* 14NOT_FOR_PLATFORM= NetBSD-[1-6].*-*
16 15
17# Requires support for c11 atomics. 16# Requires support for c11 atomics.
18USE_CC_FEATURES+= c11 17USE_CC_FEATURES+= c11
19 18
20# Needed for rst2man 19# Needed for rst2man
@@ -73,19 +72,20 @@ post-install: @@ -73,19 +72,20 @@ post-install:
73 ${DESTDIR}${PREFIX}/share/examples/mpv/mpv.conf 72 ${DESTDIR}${PREFIX}/share/examples/mpv/mpv.conf
74 73
75.include "options.mk" 74.include "options.mk"
76 75
77.include "../../devel/meson/build.mk" 76.include "../../devel/meson/build.mk"
78 77
79.include "../../archivers/libarchive/buildlink3.mk" 78.include "../../archivers/libarchive/buildlink3.mk"
80.include "../../converters/libiconv/buildlink3.mk" 79.include "../../converters/libiconv/buildlink3.mk"
81.include "../../devel/zlib/buildlink3.mk" 80.include "../../devel/zlib/buildlink3.mk"
82.include "../../graphics/lcms2/buildlink3.mk" 81.include "../../graphics/lcms2/buildlink3.mk"
83.include "../../lang/python/tool.mk" 82.include "../../lang/python/tool.mk"
84.include "../../multimedia/libass/buildlink3.mk" 83.include "../../multimedia/libass/buildlink3.mk"
85.include "../../multimedia/libdvdnav/buildlink3.mk" 84.include "../../multimedia/libdvdnav/buildlink3.mk"
 85.include "../../multimedia/libplacebo/buildlink3.mk"
86.include "../../multimedia/ffmpeg6/buildlink3.mk" 86.include "../../multimedia/ffmpeg6/buildlink3.mk"
87.include "../../graphics/hicolor-icon-theme/buildlink3.mk" 87.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
88.include "../../sysutils/desktop-file-utils/desktopdb.mk" 88.include "../../sysutils/desktop-file-utils/desktopdb.mk"
89.include "../../mk/jpeg.buildlink3.mk" 89.include "../../mk/jpeg.buildlink3.mk"
90.include "../../mk/atomic64.mk" 90.include "../../mk/atomic64.mk"
91.include "../../mk/bsd.pkg.mk" 91.include "../../mk/bsd.pkg.mk"

cvs diff -r1.14 -r1.15 pkgsrc/multimedia/mpv/PLIST (expand / switch to unified diff)

--- pkgsrc/multimedia/mpv/PLIST 2023/08/15 19:17:10 1.14
+++ pkgsrc/multimedia/mpv/PLIST 2024/01/01 15:50:13 1.15
@@ -1,22 +1,22 @@ @@ -1,22 +1,22 @@
1@comment $NetBSD: PLIST,v 1.14 2023/08/15 19:17:10 leot Exp $ 1@comment $NetBSD: PLIST,v 1.15 2024/01/01 15:50:13 leot Exp $
2bin/mpv 2bin/mpv
3include/mpv/client.h 3include/mpv/client.h
4include/mpv/render.h 4include/mpv/render.h
5include/mpv/render_gl.h 5include/mpv/render_gl.h
6include/mpv/stream_cb.h 6include/mpv/stream_cb.h
7lib/libmpv.so 7lib/libmpv.so
8lib/libmpv.so.2 8lib/libmpv.so.2
9lib/libmpv.so.2.1.0 9lib/libmpv.so.2.2.0
10lib/pkgconfig/mpv.pc 10lib/pkgconfig/mpv.pc
11man/man1/mpv.1 11man/man1/mpv.1
12share/applications/mpv.desktop 12share/applications/mpv.desktop
13share/bash-completion/completions/mpv 13share/bash-completion/completions/mpv
14share/doc/mpv/input.conf 14share/doc/mpv/input.conf
15share/doc/mpv/mplayer-input.conf 15share/doc/mpv/mplayer-input.conf
16share/doc/mpv/restore-old-bindings.conf 16share/doc/mpv/restore-old-bindings.conf
17share/examples/mpv/encoding-profiles.conf 17share/examples/mpv/encoding-profiles.conf
18share/examples/mpv/mpv.conf 18share/examples/mpv/mpv.conf
19share/icons/hicolor/128x128/apps/mpv.png 19share/icons/hicolor/128x128/apps/mpv.png
20share/icons/hicolor/16x16/apps/mpv.png 20share/icons/hicolor/16x16/apps/mpv.png
21share/icons/hicolor/32x32/apps/mpv.png 21share/icons/hicolor/32x32/apps/mpv.png
22share/icons/hicolor/64x64/apps/mpv.png 22share/icons/hicolor/64x64/apps/mpv.png

cvs diff -r1.80 -r1.81 pkgsrc/multimedia/mpv/distinfo (expand / switch to unified diff)

--- pkgsrc/multimedia/mpv/distinfo 2023/08/15 19:17:10 1.80
+++ pkgsrc/multimedia/mpv/distinfo 2024/01/01 15:50:13 1.81
@@ -1,11 +1,11 @@ @@ -1,11 +1,11 @@
1$NetBSD: distinfo,v 1.80 2023/08/15 19:17:10 leot Exp $ 1$NetBSD: distinfo,v 1.81 2024/01/01 15:50:13 leot Exp $
2 2
3BLAKE2s (mpv-0.36.0.tar.gz) = 8d0935c3b9daf9e8fe88e1413407e7194f34d688ffb00d46ab0dc68e750e5ade 3BLAKE2s (mpv-0.37.0.tar.gz) = 0406db57ea2b31c309f653af7ed61373ae2db6c63e8189a184bac159b7e52753
4SHA512 (mpv-0.36.0.tar.gz) = 51f455a425ea5aac47acb3582d0f958a34248a2290a8d6887d22bcb9385fe8d1ab5d7f09d5408cfecfb73c1ec85d1b8ec8958e45a4941d3f711a2e580187472f 4SHA512 (mpv-0.37.0.tar.gz) = a2f7fb3837312ec59c50427af7be3b2b1b6175a53ccc7463e81503284fc4047dff32cb105d665d80be77ee1ae775d4512b71584f324d6d202c9a7fc1fab53257
5Size (mpv-0.36.0.tar.gz) = 3409178 bytes 5Size (mpv-0.37.0.tar.gz) = 3384190 bytes
6SHA1 (patch-audio_out_ao__alsa.c) = c4661d0d22550d6e4eb2b7a42dd04dbcc58123b0 6SHA1 (patch-audio_out_ao__alsa.c) = c4661d0d22550d6e4eb2b7a42dd04dbcc58123b0
7SHA1 (patch-etc_mpv.conf) = 9e41b2f4bf59c3bfc5ad84af05538661981ed111 7SHA1 (patch-etc_mpv.conf) = 9e41b2f4bf59c3bfc5ad84af05538661981ed111
8SHA1 (patch-meson.build) = 1f534e05b5d87958a03be35027e7d4e03f772dcb 8SHA1 (patch-meson.build) = 2ffcbb18391372b694af44d711c16d3d44f871c8
9SHA1 (patch-osdep_threads.c) = ac9d45ae77893104eb4185f8b399fcc90960cf77 9SHA1 (patch-osdep_threads-posix.h) = 67900f0f14762a7ec7e2ee5fdcf57c32cbfe6b49
10SHA1 (patch-stream_stream__libarchive.c) = 2025f994b7f82cc868608ab7e8df0ae89b549922 10SHA1 (patch-stream_stream__libarchive.c) = 2025f994b7f82cc868608ab7e8df0ae89b549922
11SHA1 (patch-video_out_drm__common.c) = 70eb8884f63e9456c0ffe592289cfd81e208955b 11SHA1 (patch-video_out_drm__common.c) = 70eb8884f63e9456c0ffe592289cfd81e208955b

cvs diff -r1.1 -r1.2 pkgsrc/multimedia/mpv/patches/patch-meson.build (expand / switch to unified diff)

--- pkgsrc/multimedia/mpv/patches/patch-meson.build 2023/08/15 19:17:10 1.1
+++ pkgsrc/multimedia/mpv/patches/patch-meson.build 2024/01/01 15:50:14 1.2
@@ -1,74 +1,62 @@ @@ -1,74 +1,62 @@
1$NetBSD: patch-meson.build,v 1.1 2023/08/15 19:17:10 leot Exp $ 1$NetBSD: patch-meson.build,v 1.2 2024/01/01 15:50:14 leot Exp $
2 2
3- Instruct about NetBSD pthread_setname_np(3). 3- Instruct about NetBSD pthread_setname_np(3).
4 Maybe pthread_setname_np(3) should be checked in order to distinguish 4 Maybe pthread_setname_np(3) should be checked in order to distinguish
5 based on the argument supported instead of special-casing based on the 5 based on the argument supported instead of special-casing based on the
6 platform... workaround that for the moment in the simplest way. 6 platform... workaround that for the moment in the simplest way.
7- Enable support for DRM on NetBSD. 7- Enable support for DRM on NetBSD.
8- Also check for SNDCTL_DSP_HALT. NetBSD ossaudio(3) has 
9 SNDCTL_DSP_SETPLAYVOL but not SNDCTL_DSP_HALT. Consistent with the 
10 same check that is present in wscript. 
11- Install configuration files to examples, per pkgsrc conventions. 8- Install configuration files to examples, per pkgsrc conventions.
12 9
13--- meson.build.orig 2023-07-23 17:10:36.000000000 +0000 10--- meson.build.orig 2023-11-21 18:47:46.000000000 +0000
14+++ meson.build 11+++ meson.build
15@@ -293,6 +293,7 @@ if cc.get_id() == 'clang' 12@@ -297,6 +297,7 @@ if cc.get_id() == 'clang'
16 endif 13 endif
17  14
18 darwin = host_machine.system() == 'darwin' 15 darwin = host_machine.system() == 'darwin'
19+netbsd = host_machine.system() == 'netbsd' 16+netbsd = host_machine.system() == 'netbsd'
20 win32 = host_machine.system() == 'cygwin' or host_machine.system() == 'windows' 17 win32 = host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
21 posix = not win32 18 posix = not win32
22  19
23@@ -521,17 +522,22 @@ features += {'vt.h': cc.has_header_symbo 20@@ -515,17 +516,22 @@ features += {'vt.h': cc.has_header_symbo
24  21
25 features += {'consio.h': not features['vt.h'] and cc.has_header_symbol('sys/consio.h', 'VT_GETMODE')} 22 features += {'consio.h': not features['vt.h'] and cc.has_header_symbol('sys/consio.h', 'VT_GETMODE')}
26  23
27+features += {'wsdisplay_usl_io.h': not features['vt.h'] and not features['consio.h'] and cc.has_header_symbol('dev/wscons/wsdisplay_usl_io.h', 'VT_GETMODE')} 24+features += {'wsdisplay_usl_io.h': not features['vt.h'] and not features['consio.h'] and cc.has_header_symbol('dev/wscons/wsdisplay_usl_io.h', 'VT_GETMODE')}
28+ 25+
29 # macOS's pthread_setname_np is a special snowflake and differs from literally every other platform. 26 # macOS's pthread_setname_np is a special snowflake and differs from literally every other platform.
30 features += {'osx-thread-name': darwin} 27 features += {'osx-thread-name': darwin}
31  28
32+# NetBSD pthread_setname_np differs from macOS and Linux 29+# NetBSD pthread_setname_np differs from macOS and Linux
33+features += {'netbsd-thread-name': netbsd} 30+features += {'netbsd-thread-name': netbsd}
34+ 31+
35 features += {'glibc-thread-name': false} 32 features += {'glibc-thread-name': false}
36-if not features['osx-thread-name'] 33-if not features['osx-thread-name']
37+if not features['osx-thread-name'] and not features['netbsd-thread-name'] 34+if not features['osx-thread-name'] and not features['netbsd-thread-name']
38 features += {'glibc-thread-name': posix and cc.has_function('pthread_setname_np', args: '-D_GNU_SOURCE', 35 features += {'glibc-thread-name': posix and cc.has_function('pthread_setname_np', args: '-D_GNU_SOURCE',
39 dependencies: pthreads, prefix: '#include <pthread.h>')} 36 dependencies: pthreads, prefix: '#include <pthread.h>')}
40 endif 37 endif
41  38
42 features += {'bsd-thread-name': false} 39 features += {'bsd-thread-name': false}
43-if not features['osx-thread-name'] and not features['glibc-thread-name'] 40-if not features['osx-thread-name'] and not features['glibc-thread-name']
44+if not features['osx-thread-name'] and not features['glibc-thread-name'] and not features['netbsd-thread-name'] 41+if not features['osx-thread-name'] and not features['glibc-thread-name'] and not features['netbsd-thread-name']
45 features += {'bsd-thread-name': posix and cc.has_function('pthread_set_name_np', dependencies: pthreads, 42 features += {'bsd-thread-name': posix and cc.has_function('pthread_set_name_np', dependencies: pthreads,
46 prefix: '#include <pthread.h>\n#include <pthread_np.h>')} 43 prefix: '#include <pthread.h>\n#include <pthread_np.h>')}
47 endif 44 endif
48@@ -827,6 +833,8 @@ oss_opt = get_option('oss-audio').requir 45@@ -900,7 +906,7 @@ if features['direct3d']
49 error_message: 'the build is not GPL!', 
50 ) 
51 features += {'oss-audio': cc.has_header_symbol('sys/soundcard.h', 'SNDCTL_DSP_SETPLAYVOL', 
52+ required: oss_opt) and 
53+ cc.has_header_symbol('sys/soundcard.h', 'SNDCTL_DSP_HALT', 
54 required: oss_opt)} 
55 if features['oss-audio'] 
56 sources += files('audio/out/ao_oss.c') 
57@@ -894,7 +902,7 @@ if features['direct3d'] 
58 endif 46 endif
59  47
60 drm = dependency('libdrm', version: '>= 2.4.75', required: get_option('drm')) 48 drm = dependency('libdrm', version: '>= 2.4.105', required: get_option('drm'))
61-features += {'drm': drm.found() and (features['vt.h'] or features['consio.h'])} 49-features += {'drm': drm.found() and (features['vt.h'] or features['consio.h'])}
62+features += {'drm': drm.found() and (features['vt.h'] or features['consio.h'] or features['wsdisplay_usl_io.h'])} 50+features += {'drm': drm.found() and (features['vt.h'] or features['consio.h'] or features['wsdisplay_usl_io.h'])}
63 if features['drm'] 51 if features['drm']
64 dependencies += drm 52 dependencies += drm
65 sources += files('video/drmprime.c', 53 sources += files('video/drmprime.c',
66@@ -1744,7 +1752,7 @@ if get_option('cplayer') 54@@ -1734,7 +1740,7 @@ if get_option('cplayer')
67  55
68 install_data('etc/mpv.desktop', install_dir: join_paths(datadir, 'applications')) 56 install_data('etc/mpv.desktop', install_dir: join_paths(datadir, 'applications'))
69 install_data('etc/mpv.metainfo.xml', install_dir: join_paths(datadir, 'metainfo')) 57 install_data('etc/mpv.metainfo.xml', install_dir: join_paths(datadir, 'metainfo'))
70- install_data('etc/encoding-profiles.conf', install_dir: join_paths(confdir, 'mpv')) 58- install_data('etc/encoding-profiles.conf', install_dir: join_paths(confdir, 'mpv'))
71+ install_data('etc/encoding-profiles.conf', install_dir: join_paths(datadir, 'examples/mpv')) 59+ install_data('etc/encoding-profiles.conf', install_dir: join_paths(datadir, 'examples/mpv'))
72  60
73 foreach size: ['16x16', '32x32', '64x64', '128x128'] 61 foreach size: ['16x16', '32x32', '64x64', '128x128']
74 icon_dir = join_paths(datadir, 'icons', 'hicolor', size, 'apps') 62 icon_dir = join_paths(datadir, 'icons', 'hicolor', size, 'apps')

File Added: pkgsrc/multimedia/mpv/patches/patch-osdep_threads-posix.h
$NetBSD: patch-osdep_threads-posix.h,v 1.1 2024/01/01 15:50:14 leot Exp $

Add support for NetBSD.

--- osdep/threads-posix.h.orig	2023-12-31 11:13:03.078250654 +0000
+++ osdep/threads-posix.h
@@ -232,6 +232,8 @@ static inline void mp_thread_set_name(co
     pthread_set_name_np(pthread_self(), name);
 #elif HAVE_OSX_THREAD_NAME
     pthread_setname_np(name);
+#elif HAVE_NETBSD_THREAD_NAME
+    pthread_setname_np(pthread_self(), "%s", name);
 #endif
 }
 

File Deleted: pkgsrc/multimedia/mpv/patches/patch-osdep_threads.c