mpv: Update to 0.30.0 pkgsrc changes: - Drop dependency to libdvdread, no longer supported in favour of libdvdnav - Remove `v4l2' option, option was removed and no longer supported - Remove patch-audio_out_ao__oss.c, applied upstream Changes: Release 0.30.0 ============== This release requires FFmpeg 4.0 or newer. This release has replaced the internal Vulkan rendering abstraction with libplacebo's more up-to-date implementation. Features -------- Added ~~~~~ - vo_gpu: vulkan: hwdec_cuda: Add support for Vulkan interop - command: support for async commands - input: support for named arguments - cocoa-cb: add support for mac 10.14 Dark mode and run time switching - vo_gpu: switch to Vulkan API implementation based on libplacebo - context_drm_egl: Add support for presentation feedback - vo_gpu: implement error diffusion for dithering - vo/gpu: hwdec_vdpau: Support direct mode for 4:4:4 content - vo_gpu: hwdec_vaapi: Add Vulkan interop - video, TOOLS: add vf_fingerprint and a skip-logo script - vo_gpu: d3d11: add support for presentation feedback - vo_drm: 30bpp support - cocoa-cb: add support for 10bit opengl rendering - video: add pure gamma TRC curves for 2.0, 2.4 and 2.6 - vo_drm: Implement N-buffering and presentation feedback - Reintroduce vo_wayland as vo_wlshm - video: add zimg wrapper - wayland: add presentation time - input: add gamepad support through SDL2 Changed ~~~~~~~ - cocoa-cb: use libmpv's advanced rendering control and timing - vo_gpu: improve tone mapping desaturation - vo_gpu: redesign peak detection algorithm - vo_gpu: allow boosting dark scenes when tone mapping - osc: improve look of seekranges - vo_gpu: x11: remove special vdpau probing, use EGL by default - demux: sort filenames naturally when playing a directory / archive - stream_dvb: rewrite channel switching, remove old stream control - filters: extend vf_format so that it can convert color parameters Removed ~~~~~~~ - demux, stream: rip out the classic stream cache - vo_gpu: removed internal Vulkan implementation - Remove libdvdread support in favor of libdvdnav - demux, stream: remove much of the optical disc support - Remove classic Linux analog TV support, and DVB runtime controls - demux, stream: remove old rar support in favor of libarchive - vo_gpu: remove mali-fbdev - vo_gpu: remove vdpau/GLX backend - vf_vapourynth: remove Lua backend - vo_gpu: remove hwdec_d3d11eglrgb Options and Commands -------------------- Added ~~~~~ - command: add a subprocess command - vo_gpu: added --tone-mapping-max-boost, --hdr-peak-decay-rate, --hdr-scene-threshold-low/high - player: add --demuxer-cache-wait option - Implement backwards playback - demux: add a on-disk cache - demux, command: add another stream recording mechanism, `dump-cache` command - ao_pulse: add --pulse-allow-suspended - command: add video-add/video-remove/video-reload commands - demux_cue: added --demuxer-cue-codepage to select CUE sheet charset - input: add keybind command - command: add sub-start & sub-end properties - video/d3d11: added --d3d11-adapter to select a rendering adapter by name - vo_gpu/d3d11: added --d3d11-output-format for configuring swap chain format Changed ~~~~~~~ - vo_gpu: split --linear-scaling into --linear-upscaling and --linear-downscaling - vo_gpu: split --tone-mapping-desaturate into strength and exponent - drm: rename --drm-osd-plane-id to --drm-draw-plane, --drm-video-plane-id to --drm-drmprime-video-plane, --drm-osd-size to --drm-draw-surface-size Deprecated ~~~~~~~~~~ - options: deprecate --video-aspect, replaced by --video-aspect-override - options: deprecate --record-file, --spirv-compiler Removed ~~~~~~~ - options: remove deprecated --chapter option - demux: remove "program" property - stream: remove "disc-titles", "disc-title", "disc-title-list", and "angle" properties - cocoa-cb: remove --macos-title-bar-style, replaced by --macos-title-bar-material and --macos-title-bar-appearance - spirv: remove support for --spirv-compiler=nvidia (shaderc is the only remaining option) Fixes and Minor Enhancements ---------------------------- - context_drm_egl: implement n-buffering - cocoa-cb: add support for custom colored title bar - vo_gpu: x11egl: support Mesa OML sync extension - demux, demux_edl: add extension for tracks sourced from separate streams - context_drm_egl: Use eglGetPlatformDisplayEXT if available - vo_gpu: vulkan: add Android context - wayland: use xdg-decoration if available - vo_gpu: glx: use GLX_OML_sync_control for better vsync reporting - demux: runtime option changing for cache and stream recording - x11: fix ICC profiling for multiple monitors - zsh completion: move generation to runtime and improvediff -r1.87 -r1.88 pkgsrc/multimedia/mpv/Makefile
(leot)
@@ -1,38 +1,36 @@ | @@ -1,38 +1,36 @@ | |||
1 | # $NetBSD: Makefile,v 1.87 2019/09/18 14:17:14 ryoon Exp $ | 1 | # $NetBSD: Makefile,v 1.88 2019/10/25 14:35:55 leot Exp $ | |
2 | 2 | |||
3 | DISTNAME= mpv-0.29.1 | 3 | DISTNAME= mpv-0.30.0 | |
4 | PKGREVISION= 11 | |||
5 | CATEGORIES= multimedia | 4 | CATEGORIES= multimedia | |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/} | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/} | |
7 | GITHUB_TAG= v${PKGVERSION_NOREV} | 6 | GITHUB_TAG= v${PKGVERSION_NOREV} | |
8 | 7 | |||
9 | MAINTAINER= leot@NetBSD.org | 8 | MAINTAINER= leot@NetBSD.org | |
10 | HOMEPAGE= https://mpv.io/ | 9 | HOMEPAGE= https://mpv.io/ | |
11 | COMMENT= Video player based on MPlayer and mplayer2 | 10 | COMMENT= Video player based on MPlayer and mplayer2 | |
12 | LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 | 11 | LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 | |
13 | 12 | |||
14 | # needs sem_timedwait(3) | 13 | # needs sem_timedwait(3) | |
15 | NOT_FOR_PLATFORM= NetBSD-[1-6].*-* | 14 | NOT_FOR_PLATFORM= NetBSD-[1-6].*-* | |
16 | 15 | |||
17 | NOT_PAX_MPROTECT_SAFE+= bin/mpv | 16 | NOT_PAX_MPROTECT_SAFE+= bin/mpv | |
18 | 17 | |||
19 | TOOL_DEPENDS+= ${PYPKGPREFIX}-docutils>=0.12:../../textproc/py-docutils | 18 | TOOL_DEPENDS+= ${PYPKGPREFIX}-docutils>=0.12:../../textproc/py-docutils | |
20 | # ${WRKSRC}/bootstrap.py mentions needed version | 19 | # ${WRKSRC}/bootstrap.py mentions needed version | |
21 | TOOL_DEPENDS+= waf>=2.0.9:../../devel/waf | 20 | TOOL_DEPENDS+= waf>=2.0.9:../../devel/waf | |
22 | 21 | |||
23 | WAF_CONFIGURE_ARGS+= --bindir=${PREFIX}/bin | 22 | WAF_CONFIGURE_ARGS+= --bindir=${PREFIX}/bin | |
24 | WAF_CONFIGURE_ARGS+= --enable-dvdnav | 23 | WAF_CONFIGURE_ARGS+= --enable-dvdnav | |
25 | WAF_CONFIGURE_ARGS+= --enable-dvdread | |||
26 | WAF_CONFIGURE_ARGS+= --disable-egl-x11 | 24 | WAF_CONFIGURE_ARGS+= --disable-egl-x11 | |
27 | WAF_CONFIGURE_ARGS+= --disable-swift | 25 | WAF_CONFIGURE_ARGS+= --disable-swift | |
28 | 26 | |||
29 | PYTHON_FOR_BUILD_ONLY= yes | 27 | PYTHON_FOR_BUILD_ONLY= yes | |
30 | 28 | |||
31 | USE_TOOLS+= perl pkg-config | 29 | USE_TOOLS+= perl pkg-config | |
32 | 30 | |||
33 | MAKE_DIRS= ${PKG_SYSCONFDIR}/mpv | 31 | MAKE_DIRS= ${PKG_SYSCONFDIR}/mpv | |
34 | INSTALLATION_DIRS= share/examples/mpv | 32 | INSTALLATION_DIRS= share/examples/mpv | |
35 | CONF_FILES+= share/examples/mpv/encoding-profiles.conf ${PKG_SYSCONFDIR}/mpv/encoding-profiles.conf | 33 | CONF_FILES+= share/examples/mpv/encoding-profiles.conf ${PKG_SYSCONFDIR}/mpv/encoding-profiles.conf | |
36 | 34 | |||
37 | SUBST_CLASSES+= audio | 35 | SUBST_CLASSES+= audio | |
38 | SUBST_SED.audio+= -e "s,/dev/dsp,${DEVOSSAUDIO}," | 36 | SUBST_SED.audio+= -e "s,/dev/dsp,${DEVOSSAUDIO}," | |
@@ -49,19 +47,18 @@ SUBST_MESSAGE.python= Fix Python command | @@ -49,19 +47,18 @@ SUBST_MESSAGE.python= Fix Python command | |||
49 | 47 | |||
50 | post-install: | 48 | post-install: | |
51 | cd ${DESTDIR}${PREFIX} && ${MV} etc/mpv/encoding-profiles.conf share/examples/mpv | 49 | cd ${DESTDIR}${PREFIX} && ${MV} etc/mpv/encoding-profiles.conf share/examples/mpv | |
52 | 50 | |||
53 | .include "options.mk" | 51 | .include "options.mk" | |
54 | 52 | |||
55 | .include "../../mk/oss.buildlink3.mk" | 53 | .include "../../mk/oss.buildlink3.mk" | |
56 | .include "../../converters/libiconv/buildlink3.mk" | 54 | .include "../../converters/libiconv/buildlink3.mk" | |
57 | .include "../../devel/waf/waf.mk" | 55 | .include "../../devel/waf/waf.mk" | |
58 | .include "../../devel/zlib/buildlink3.mk" | 56 | .include "../../devel/zlib/buildlink3.mk" | |
59 | .include "../../graphics/lcms2/buildlink3.mk" | 57 | .include "../../graphics/lcms2/buildlink3.mk" | |
60 | .include "../../lang/python/application.mk" | 58 | .include "../../lang/python/application.mk" | |
61 | .include "../../multimedia/libdvdnav/buildlink3.mk" | 59 | .include "../../multimedia/libdvdnav/buildlink3.mk" | |
62 | .include "../../multimedia/libdvdread/buildlink3.mk" | |||
63 | .include "../../multimedia/ffmpeg4/buildlink3.mk" | 60 | .include "../../multimedia/ffmpeg4/buildlink3.mk" | |
64 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | 61 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | |
65 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | 62 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | |
66 | .include "../../mk/jpeg.buildlink3.mk" | 63 | .include "../../mk/jpeg.buildlink3.mk" | |
67 | .include "../../mk/bsd.pkg.mk" | 64 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,15 @@ | @@ -1,14 +1,15 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.7 2016/07/01 07:47:38 leot Exp $ | 1 | @comment $NetBSD: PLIST,v 1.8 2019/10/25 14:35:56 leot Exp $ | |
2 | bin/mpv | 2 | bin/mpv | |
3 | man/man1/mpv.1 | 3 | man/man1/mpv.1 | |
4 | share/applications/mpv.desktop | 4 | share/applications/mpv.desktop | |
5 | share/doc/mpv/input.conf | 5 | share/doc/mpv/input.conf | |
6 | share/doc/mpv/mplayer-input.conf | 6 | share/doc/mpv/mplayer-input.conf | |
7 | share/doc/mpv/mpv.conf | 7 | share/doc/mpv/mpv.conf | |
8 | share/doc/mpv/restore-old-bindings.conf | 8 | share/doc/mpv/restore-old-bindings.conf | |
9 | share/examples/mpv/encoding-profiles.conf | 9 | share/examples/mpv/encoding-profiles.conf | |
10 | share/icons/hicolor/16x16/apps/mpv.png | 10 | share/icons/hicolor/16x16/apps/mpv.png | |
11 | share/icons/hicolor/32x32/apps/mpv.png | 11 | share/icons/hicolor/32x32/apps/mpv.png | |
12 | share/icons/hicolor/64x64/apps/mpv.png | 12 | share/icons/hicolor/64x64/apps/mpv.png | |
13 | share/icons/hicolor/scalable/apps/mpv.svg | 13 | share/icons/hicolor/scalable/apps/mpv.svg | |
14 | share/icons/hicolor/symbolic/apps/mpv-symbolic.svg | 14 | share/icons/hicolor/symbolic/apps/mpv-symbolic.svg | |
15 | share/zsh/site-functions/_mpv |
@@ -1,13 +1,12 @@ | @@ -1,13 +1,12 @@ | |||
1 | $NetBSD: distinfo,v 1.54 2019/08/18 17:57:55 nia Exp $ | 1 | $NetBSD: distinfo,v 1.55 2019/10/25 14:35:56 leot Exp $ | |
2 | 2 | |||
3 | SHA1 (mpv-0.29.1.tar.gz) = 83f2bc0eb5a8bec9a9d5efc7de0e19a442238ac5 | 3 | SHA1 (mpv-0.30.0.tar.gz) = 94da9cc423339a8d4f583542a4e7c5f794b82e7b | |
4 | RMD160 (mpv-0.29.1.tar.gz) = 72a4fda3a72ac4fd37ed04435833fa2cf378a012 | 4 | RMD160 (mpv-0.30.0.tar.gz) = e0272a0ef7dfd58ba6b05a84bd2c0217f36dff3f | |
5 | SHA512 (mpv-0.29.1.tar.gz) = ec57c9ceaaf2915ee237dd5a1c5ea5d22725d8611e28a9b998e5bb0d8ab5bdf3631d0267fc7b54da31cb1eaa145ef35841e68846bd41c3b9e1024902e92fd086 | 5 | SHA512 (mpv-0.30.0.tar.gz) = 2b3cc626575b5e56308f5f9ecf926957a36c861c85f700a4a3ede72cf7f7ea08729d20f810693117e21aeeff649f08718e73ead7d117521bf88d746708a72c66 | |
6 | Size (mpv-0.29.1.tar.gz) = 3059503 bytes | 6 | Size (mpv-0.30.0.tar.gz) = 3085141 bytes | |
7 | SHA1 (patch-audio_out_ao__alsa.c) = c4661d0d22550d6e4eb2b7a42dd04dbcc58123b0 | 7 | SHA1 (patch-audio_out_ao__alsa.c) = c4661d0d22550d6e4eb2b7a42dd04dbcc58123b0 | |
8 | SHA1 (patch-audio_out_ao__oss.c) = 824c214d0d4464b94e46a922ede4045ae537a534 | |||
9 | SHA1 (patch-options_options.c) = 125282ede99098224fc9c16952b44c12b8b3e06b | 8 | SHA1 (patch-options_options.c) = 125282ede99098224fc9c16952b44c12b8b3e06b | |
10 | SHA1 (patch-player_main.c) = e794199990059cc95050032194bca70557c381d7 | 9 | SHA1 (patch-player_main.c) = 19b3553477ce7746f516b3db423f253385e918cf | |
11 | SHA1 (patch-video_out_drm__common.c) = facb8d99fe31119618866c9af512a60e54b4ea6c | 10 | SHA1 (patch-video_out_drm__common.c) = a545a8aec29f1b3c44d26aacbc59b86d3333a0b9 | |
12 | SHA1 (patch-video_out_wayland__common.c) = 816ee9c59404a50af922b8e4f97fbcd02b20ba45 | 11 | SHA1 (patch-video_out_wayland__common.c) = 2c450f47af5e6390d9ee66275f95ee5d62c67ce4 | |
13 | SHA1 (patch-wscript) = a908365c0c63745e1d22010c26804789997d4377 | 12 | SHA1 (patch-wscript) = 2f082a2d3797234bf56859d95c219f5355382224 |
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | # $NetBSD: options.mk,v 1.19 2019/09/14 16:39:26 adam Exp $ | 1 | # $NetBSD: options.mk,v 1.20 2019/10/25 14:35:56 leot Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.mpv | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.mpv | |
4 | 4 | |||
5 | .include "../../multimedia/libva/available.mk" | 5 | .include "../../multimedia/libva/available.mk" | |
6 | .include "../../multimedia/libvdpau/available.mk" | 6 | .include "../../multimedia/libvdpau/available.mk" | |
7 | 7 | |||
8 | PKG_OPTIONS_OPTIONAL_GROUPS= gl | 8 | PKG_OPTIONS_OPTIONAL_GROUPS= gl | |
9 | PKG_OPTIONS_GROUP.gl= opengl rpi | 9 | PKG_OPTIONS_GROUP.gl= opengl rpi | |
10 | 10 | |||
11 | PKG_SUPPORTED_OPTIONS+= alsa ass bluray caca libdrm lua pulseaudio v4l2 | 11 | PKG_SUPPORTED_OPTIONS+= alsa ass bluray caca libdrm lua pulseaudio | |
12 | PKG_SUPPORTED_OPTIONS+= sdl2 wayland x11 | 12 | PKG_SUPPORTED_OPTIONS+= sdl2 wayland x11 | |
13 | 13 | |||
14 | .include "../../mk/bsd.fast.prefs.mk" | 14 | .include "../../mk/bsd.fast.prefs.mk" | |
15 | PKG_SUGGESTED_OPTIONS= ass bluray lua sdl2 | 15 | PKG_SUGGESTED_OPTIONS= ass bluray lua sdl2 | |
16 | PKG_SUGGESTED_OPTIONS.Linux+= alsa | 16 | PKG_SUGGESTED_OPTIONS.Linux+= alsa | |
17 | .if ${OPSYS} != "Darwin" | 17 | .if ${OPSYS} != "Darwin" | |
18 | PKG_SUGGESTED_OPTIONS+= opengl libdrm x11 | 18 | PKG_SUGGESTED_OPTIONS+= opengl libdrm x11 | |
19 | .endif | 19 | .endif | |
20 | .if ${VAAPI_AVAILABLE} == "yes" | 20 | .if ${VAAPI_AVAILABLE} == "yes" | |
21 | PKG_SUPPORTED_OPTIONS+= vaapi | 21 | PKG_SUPPORTED_OPTIONS+= vaapi | |
22 | PKG_SUGGESTED_OPTIONS+= vaapi | 22 | PKG_SUGGESTED_OPTIONS+= vaapi | |
23 | .endif | 23 | .endif | |
24 | .if ${VDPAU_AVAILABLE} == "yes" | 24 | .if ${VDPAU_AVAILABLE} == "yes" | |
@@ -90,35 +90,26 @@ WAF_CONFIGURE_ARGS+= --disable-sdl2 | @@ -90,35 +90,26 @@ WAF_CONFIGURE_ARGS+= --disable-sdl2 | |||
90 | .endif | 90 | .endif | |
91 | 91 | |||
92 | ### | 92 | ### | |
93 | ### libASS support | 93 | ### libASS support | |
94 | ### | 94 | ### | |
95 | .if !empty(PKG_OPTIONS:Mass) | 95 | .if !empty(PKG_OPTIONS:Mass) | |
96 | WAF_CONFIGURE_ARGS+= --enable-libass | 96 | WAF_CONFIGURE_ARGS+= --enable-libass | |
97 | .include "../../multimedia/libass/buildlink3.mk" | 97 | .include "../../multimedia/libass/buildlink3.mk" | |
98 | .else | 98 | .else | |
99 | WAF_CONFIGURE_ARGS+= --disable-libass | 99 | WAF_CONFIGURE_ARGS+= --disable-libass | |
100 | .endif | 100 | .endif | |
101 | 101 | |||
102 | ### | 102 | ### | |
103 | ### V4L2 support | |||
104 | ### | |||
105 | .if !empty(PKG_OPTIONS:Mv4l2) | |||
106 | WAF_CONFIGURE_ARGS+= --enable-libv4l2 | |||
107 | .else | |||
108 | WAF_CONFIGURE_ARGS+= --disable-libv4l2 | |||
109 | .endif | |||
110 | ||||
111 | ### | |||
112 | ### VAAPI support (video output) | 103 | ### VAAPI support (video output) | |
113 | ### | 104 | ### | |
114 | .if !empty(PKG_OPTIONS:Mvaapi) | 105 | .if !empty(PKG_OPTIONS:Mvaapi) | |
115 | WAF_CONFIGURE_ARGS+= --enable-vaapi | 106 | WAF_CONFIGURE_ARGS+= --enable-vaapi | |
116 | .include "../../multimedia/libva/buildlink3.mk" | 107 | .include "../../multimedia/libva/buildlink3.mk" | |
117 | .else | 108 | .else | |
118 | WAF_CONFIGURE_ARGS+= --disable-vaapi | 109 | WAF_CONFIGURE_ARGS+= --disable-vaapi | |
119 | .endif | 110 | .endif | |
120 | 111 | |||
121 | ### | 112 | ### | |
122 | ### VDPAU support (video output) | 113 | ### VDPAU support (video output) | |
123 | ### | 114 | ### | |
124 | .if !empty(PKG_OPTIONS:Mvdpau) | 115 | .if !empty(PKG_OPTIONS:Mvdpau) |
@@ -1,29 +1,23 @@ | @@ -1,29 +1,23 @@ | |||
1 | $NetBSD: patch-player_main.c,v 1.4 2018/07/25 14:19:16 leot Exp $ | 1 | $NetBSD: patch-player_main.c,v 1.5 2019/10/25 14:35:56 leot Exp $ | |
2 | 2 | |||
3 | Avoid to check mismatched built vs running libraries version. | 3 | Avoid to check mismatched built vs running libraries version. | |
4 | The use in pkgsrc can be considered a legitimate one. | 4 | The use in pkgsrc can be considered a legitimate one. | |
5 | 5 | |||
6 | --- player/main.c.orig 2018-07-22 16:46:25.000000000 +0000 | 6 | --- player/main.c.orig 2019-10-25 13:08:15.000000000 +0000 | |
7 | +++ player/main.c | 7 | +++ player/main.c | |
8 | @@ -381,21 +381,6 @@ int mp_initialize(struct MPContext *mpct | 8 | @@ -384,15 +384,6 @@ int mp_initialize(struct MPContext *mpct | |
9 | if (handle_help_options(mpctx)) | 9 | if (handle_help_options(mpctx)) | |
10 | return 1; // help | 10 | return 1; // help | |
11 | 11 | |||
12 | - if (!print_libav_versions(mp_null_log, 0)) { | 12 | - if (!print_libav_versions(mp_null_log, 0)) { | |
13 | - // Using mismatched libraries can be legitimate, but even then it's | |||
14 | - // a bad idea. We don't acknowledge its usefulness and stability. | |||
15 | - // Distro maintainers who patch this out should be aware that mpv | |||
16 | - // intentionally ignores ABI in some places where it's not possible to | |||
17 | - // get by without violating it. | |||
18 | - print_libav_versions(mpctx->log, MSGL_FATAL); | 13 | - print_libav_versions(mpctx->log, MSGL_FATAL); | |
19 | - MP_FATAL(mpctx, "\nmpv was compiled against a different version of " | 14 | - MP_FATAL(mpctx, "\nmpv was compiled against an incompatible version of " | |
20 | - "FFmpeg/Libav than the shared\nlibrary it is linked against. " | 15 | - "FFmpeg/Libav than the shared\nlibrary it is linked against. " | |
21 | - "This is most likely a broken build and could\nresult in " | 16 | - "This is most likely a broken build and could\nresult in " | |
22 | - "misbehavior and crashes.\n\nmpv does not support this " | 17 | - "misbehavior and crashes.\n\nThis is a broken build.\n"); | |
23 | - "configuration and will not run - rebuild mpv instead.\n"); | |||
24 | - return -1; | 18 | - return -1; | |
25 | - } | 19 | - } | |
26 | - | 20 | - | |
27 | if (!mpctx->playlist->first && !opts->player_idle_mode) { | 21 | if (!mpctx->playlist->first && !opts->player_idle_mode) { | |
28 | // nothing to play | 22 | // nothing to play | |
29 | mp_print_version(mpctx->log, true); | 23 | mp_print_version(mpctx->log, true); |
@@ -1,19 +1,19 @@ | @@ -1,19 +1,19 @@ | |||
1 | $NetBSD: patch-video_out_drm__common.c,v 1.2 2019/02/05 12:07:57 leot Exp $ | 1 | $NetBSD: patch-video_out_drm__common.c,v 1.3 2019/10/25 14:35:56 leot Exp $ | |
2 | 2 | |||
3 | Enable support for DRM on NetBSD. | 3 | Enable support for DRM on NetBSD. | |
4 | 4 | |||
5 | --- video/out/drm_common.c.orig 2018-10-02 19:03:41.000000000 +0000 | 5 | --- video/out/drm_common.c.orig 2019-10-25 13:08:15.000000000 +0000 | |
6 | +++ video/out/drm_common.c | 6 | +++ video/out/drm_common.c | |
7 | @@ -21,7 +21,12 @@ | 7 | @@ -21,7 +21,12 @@ | |
8 | #include <sys/ioctl.h> | 8 | #include <sys/ioctl.h> | |
9 | #include <poll.h> | 9 | #include <poll.h> | |
10 | #include <sys/stat.h> | 10 | #include <sys/stat.h> | |
11 | +#if defined(__NetBSD__) | 11 | +#if defined(__NetBSD__) | |
12 | +#include <sys/types.h> | 12 | +#include <sys/types.h> | |
13 | +#include <dev/wscons/wsdisplay_usl_io.h> | 13 | +#include <dev/wscons/wsdisplay_usl_io.h> | |
14 | +#else | 14 | +#else | |
15 | #include <sys/vt.h> | 15 | #include <sys/vt.h> | |
16 | +#endif | 16 | +#endif | |
17 | #include <unistd.h> | 17 | #include <unistd.h> | |
18 | 18 | #include <limits.h> | ||
19 | #include "drm_common.h" | 19 | #include <math.h> |
@@ -1,29 +1,27 @@ | @@ -1,29 +1,27 @@ | |||
1 | $NetBSD: patch-wscript,v 1.2 2019/02/05 12:07:57 leot Exp $ | 1 | $NetBSD: patch-wscript,v 1.3 2019/10/25 14:35:56 leot Exp $ | |
2 | 2 | |||
3 | Enable support for DRM on NetBSD. | 3 | Enable support for DRM on NetBSD. | |
4 | 4 | |||
5 | --- wscript.orig 2018-10-02 19:03:41.000000000 +0000 | 5 | --- wscript.orig 2019-10-25 13:08:15.000000000 +0000 | |
6 | +++ wscript | 6 | +++ wscript | |
7 | @@ -276,6 +276,11 @@ iconv support use --disable-iconv.", | 7 | @@ -289,6 +289,11 @@ iconv support use --disable-iconv.", | |
8 | 'func': check_statement(['sys/vt.h', 'sys/ioctl.h'], | 8 | 'func': check_statement(['sys/vt.h', 'sys/ioctl.h'], | |
9 | 'int m; ioctl(0, VT_GETMODE, &m)'), | 9 | 'int m; ioctl(0, VT_GETMODE, &m)'), | |
10 | }, { | 10 | }, { | |
11 | + 'name': 'wsdisplay_usl_io.h', | 11 | + 'name': 'wsdisplay_usl_io.h', | |
12 | + 'desc': 'wsdisplay_usl_io.h', | 12 | + 'desc': 'wsdisplay_usl_io.h', | |
13 | + 'func': check_statement(['sys/types.h', 'dev/wscons/wsdisplay_usl_io.h', 'sys/ioctl.h'], | 13 | + 'func': check_statement(['sys/types.h', 'dev/wscons/wsdisplay_usl_io.h', 'sys/ioctl.h'], | |
14 | + 'int m; ioctl(0, VT_GETMODE, &m)'), | 14 | + 'int m; ioctl(0, VT_GETMODE, &m)'), | |
15 | + }, { | 15 | + }, { | |
16 | 'name': 'gbm.h', | 16 | 'name': 'gbm.h', | |
17 | 'desc': 'gbm.h', | 17 | 'desc': 'gbm.h', | |
18 | 'func': check_cc(header_name=['stdio.h', 'gbm.h']), | 18 | 'func': check_cc(header_name=['stdio.h', 'gbm.h']), | |
19 | @@ -550,8 +555,8 @@ video_output_features = [ | 19 | @@ -584,7 +589,7 @@ video_output_features = [ | |
20 | }, { | 20 | }, { | |
21 | 'name': '--drm', | 21 | 'name': '--drm', | |
22 | 'desc': 'DRM', | 22 | 'desc': 'DRM', | |
23 | - 'deps': 'vt.h', | 23 | - 'deps': 'vt.h', | |
24 | - 'func': check_pkg_config('libdrm'), | |||
25 | + 'deps': 'vt.h || wsdisplay_usl_io.h', | 24 | + 'deps': 'vt.h || wsdisplay_usl_io.h', | |
26 | + 'func': check_pkg_config('libdrm') | 25 | 'func': check_pkg_config('libdrm', '>= 2.4.74'), | |
27 | }, { | 26 | }, { | |
28 | 'name': '--drmprime', | 27 | 'name': '--drmprime', | |
29 | 'desc': 'DRM Prime ffmpeg support', |
@@ -1,22 +1,20 @@ | @@ -1,22 +1,20 @@ | |||
1 | $NetBSD: patch-video_out_wayland__common.c,v 1.1 2019/08/18 17:57:55 nia Exp $ | 1 | $NetBSD: patch-video_out_wayland__common.c,v 1.2 2019/10/25 14:35:56 leot Exp $ | |
2 | 2 | |||
3 | Allow building on systems without evdev. | 3 | Allow building on systems without evdev. | |
4 | 4 | |||
5 | --- video/out/wayland_common.c.orig 2018-10-02 19:03:41.000000000 +0000 | 5 | --- video/out/wayland_common.c.orig 2019-10-25 13:08:15.000000000 +0000 | |
6 | +++ video/out/wayland_common.c | 6 | +++ video/out/wayland_common.c | |
7 | @@ -16,8 +16,14 @@ | 7 | @@ -19,7 +19,13 @@ | |
8 | */ | 8 | #include <limits.h> | |
9 | ||||
10 | #include <poll.h> | 9 | #include <poll.h> | |
11 | -#include <unistd.h> | 10 | #include <unistd.h> | |
12 | +#if defined(__linux) || defined(__FreeBSD__) | 11 | +#if defined(__linux) || defined(__FreeBSD__) | |
13 | #include <linux/input.h> | 12 | #include <linux/input.h> | |
14 | +#else | 13 | +#else | |
15 | +#define BTN_LEFT (0) | 14 | +#define BTN_LEFT (0) | |
16 | +#define BTN_MIDDLE (1) | 15 | +#define BTN_MIDDLE (1) | |
17 | +#define BTN_RIGHT (2) | 16 | +#define BTN_RIGHT (2) | |
18 | +#endif | 17 | +#endif | |
19 | +#include <unistd.h> | 18 | #include <time.h> | |
20 | #include "common/msg.h" | 19 | #include "common/msg.h" | |
21 | #include "input/input.h" | 20 | #include "options/m_config.h" | |
22 | #include "input/keycodes.h" |