pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/mpv mpv: To aid in playing surround sound f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/edb054ea4c9f
branches: trunk
changeset: 378397:edb054ea4c9f
user: nia <nia%pkgsrc.org@localhost>
date: Tue May 03 07:04:27 2022 +0000
description:
mpv: To aid in playing surround sound files on typical NetBSD hardware,
default to downmixing surround files to stereo.
Healthy side effect: read default options from $SYSCONFDIR/mpv/mpv.conf.
Bump PKGREVISION
diffstat:
multimedia/mpv/Makefile | 13 ++++++++---
multimedia/mpv/PLIST | 4 +-
multimedia/mpv/distinfo | 6 +++-
multimedia/mpv/patches/patch-etc_mpv.conf | 29 ++++++++++++++++++++++++++
multimedia/mpv/patches/patch-wscript | 4 +-
multimedia/mpv/patches/patch-wscript__build.py | 15 +++++++++++++
6 files changed, 61 insertions(+), 10 deletions(-)
diffs (148 lines):
diff -r 3724d28dab27 -r edb054ea4c9f multimedia/mpv/Makefile
--- a/multimedia/mpv/Makefile Tue May 03 06:22:22 2022 +0000
+++ b/multimedia/mpv/Makefile Tue May 03 07:04:27 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.134 2022/04/18 19:11:46 adam Exp $
+# $NetBSD: Makefile,v 1.135 2022/05/03 07:04:27 nia Exp $
DISTNAME= mpv-0.34.1
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -20,6 +20,7 @@
WAF_REPLACE_EXECUTABLE= yes
WAF_CONFIGURE_ARGS+= --bindir=${PREFIX}/bin
+WAF_CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
WAF_CONFIGURE_ARGS+= --enable-dvdnav
WAF_CONFIGURE_ARGS+= --enable-libmpv-shared
@@ -29,7 +30,10 @@
MAKE_DIRS= ${PKG_SYSCONFDIR}/mpv
INSTALLATION_DIRS= share/examples/mpv
-CONF_FILES+= share/examples/mpv/encoding-profiles.conf ${PKG_SYSCONFDIR}/mpv/encoding-profiles.conf
+CONF_FILES+= share/examples/mpv/encoding-profiles.conf \
+ ${PKG_SYSCONFDIR}/mpv/encoding-profiles.conf
+CONF_FILES+= share/examples/mpv/mpv.conf \
+ ${PKG_SYSCONFDIR}/mpv/mpv.conf
PKGCONFIG_OVERRIDE+= libmpv/mpv.pc.in
@@ -60,7 +64,8 @@
.endif
post-install:
- cd ${DESTDIR}${PREFIX} && ${MV} etc/mpv/encoding-profiles.conf share/examples/mpv
+ ${MV} ${DESTDIR}${PREFIX}/share/doc/mpv/mpv.conf \
+ ${DESTDIR}${PREFIX}/share/examples/mpv/mpv.conf
.include "options.mk"
.include "../../converters/libiconv/buildlink3.mk"
diff -r 3724d28dab27 -r edb054ea4c9f multimedia/mpv/PLIST
--- a/multimedia/mpv/PLIST Tue May 03 06:22:22 2022 +0000
+++ b/multimedia/mpv/PLIST Tue May 03 07:04:27 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2020/12/19 11:27:51 leot Exp $
+@comment $NetBSD: PLIST,v 1.12 2022/05/03 07:04:27 nia Exp $
bin/mpv
include/mpv/client.h
include/mpv/opengl_cb.h
@@ -14,9 +14,9 @@
share/bash-completion/completions/mpv
share/doc/mpv/input.conf
share/doc/mpv/mplayer-input.conf
-share/doc/mpv/mpv.conf
share/doc/mpv/restore-old-bindings.conf
share/examples/mpv/encoding-profiles.conf
+share/examples/mpv/mpv.conf
share/icons/hicolor/128x128/apps/mpv.png
share/icons/hicolor/16x16/apps/mpv.png
share/icons/hicolor/32x32/apps/mpv.png
diff -r 3724d28dab27 -r edb054ea4c9f multimedia/mpv/distinfo
--- a/multimedia/mpv/distinfo Tue May 03 06:22:22 2022 +0000
+++ b/multimedia/mpv/distinfo Tue May 03 07:04:27 2022 +0000
@@ -1,9 +1,11 @@
-$NetBSD: distinfo,v 1.73 2022/01/06 20:02:16 leot Exp $
+$NetBSD: distinfo,v 1.74 2022/05/03 07:04:27 nia Exp $
BLAKE2s (mpv-0.34.1.tar.gz) = 8c12b91067c852b26e1b044afb0ff1e80f1950f2c5cc193cc10ffbef227eb4da
SHA512 (mpv-0.34.1.tar.gz) = 77ea349d6999f8cce9b5cce4cebd3506a224fc18ab08d22dd16bd34c34d012bb170879b268ddd62db40d116b4cc0b2d9d651b8097f387ed9115c426834cac77e
Size (mpv-0.34.1.tar.gz) = 3288356 bytes
SHA1 (patch-audio_out_ao__alsa.c) = c4661d0d22550d6e4eb2b7a42dd04dbcc58123b0
+SHA1 (patch-etc_mpv.conf) = 9e41b2f4bf59c3bfc5ad84af05538661981ed111
SHA1 (patch-video_out_drm__common.c) = 70eb8884f63e9456c0ffe592289cfd81e208955b
SHA1 (patch-video_out_wayland__common.c) = abed416d258ebf0b595ea897daf3013dd81189e8
-SHA1 (patch-wscript) = 3792bd2cc84fababdde86e66c5a93772f2b105d1
+SHA1 (patch-wscript) = c7bb9c506718c38aded9ca47e7aa0d76cf338bf2
+SHA1 (patch-wscript__build.py) = fc77ebe56fba0b827541d052a767402965793ee1
diff -r 3724d28dab27 -r edb054ea4c9f multimedia/mpv/patches/patch-etc_mpv.conf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mpv/patches/patch-etc_mpv.conf Tue May 03 07:04:27 2022 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-etc_mpv.conf,v 1.1 2022/05/03 07:04:27 nia Exp $
+
+Optimize for stereo audio output devices on NetBSD.
+
+--- etc/mpv.conf.orig 2022-01-03 19:45:08.000000000 +0000
++++ etc/mpv.conf
+@@ -71,19 +71,9 @@
+ # audio settings #
+ ##################
+
+-# Specify default audio device. You can list devices with: --audio-device=help
+-# The option takes the device string (the stuff between the '...').
+-#audio-device=alsa/default
+-
+-# Do not filter audio to keep pitch when changing playback speed.
+-#audio-pitch-correction=no
+-
+-# Output 5.1 audio natively, and upmix/downmix audio with a different format.
+-#audio-channels=5.1
+-# Disable any automatic remix, _if_ the audio output accepts the audio format.
+-# of the currently played file. See caveats mentioned in the manpage.
+-# (The default is "auto-safe", see manpage.)
+-#audio-channels=auto
++# NetBSD's audio stack will decline to set a surround mode if the device
++# does not support it. By default, play surround files in stereo for safety.
++audio-channels=stereo
+
+ ##################
+ # other settings #
diff -r 3724d28dab27 -r edb054ea4c9f multimedia/mpv/patches/patch-wscript
--- a/multimedia/mpv/patches/patch-wscript Tue May 03 06:22:22 2022 +0000
+++ b/multimedia/mpv/patches/patch-wscript Tue May 03 07:04:27 2022 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-wscript,v 1.7 2021/11/01 17:39:26 leot Exp $
+$NetBSD: patch-wscript,v 1.8 2022/05/03 07:04:27 nia Exp $
- Enable support for DRM on NetBSD.
- Check for OSSv4 features that could not be on some platforms
(e.g. NetBSD)
---- wscript.orig 2021-11-01 14:44:39.000000000 +0000
+--- wscript.orig 2022-01-03 19:45:08.000000000 +0000
+++ wscript
@@ -272,6 +272,11 @@ iconv support use --disable-iconv.",
'func': check_statement(['sys/consio.h', 'sys/ioctl.h'],
diff -r 3724d28dab27 -r edb054ea4c9f multimedia/mpv/patches/patch-wscript__build.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mpv/patches/patch-wscript__build.py Tue May 03 07:04:27 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-wscript__build.py,v 1.3 2022/05/03 07:04:27 nia Exp $
+
+Install configuration files to examples, per pkgsrc conventions.
+
+--- wscript_build.py.orig 2022-01-03 19:45:08.000000000 +0000
++++ wscript_build.py
+@@ -737,7 +737,7 @@ def build(ctx):
+ ctx.env.DATADIR + '/applications',
+ ['etc/mpv.desktop'] )
+
+- ctx.install_files(ctx.env.CONFDIR, ['etc/encoding-profiles.conf'] )
++ ctx.install_files(ctx.env.DATADIR + '/examples/mpv', ['etc/encoding-profiles.conf'] )
+
+ for size in '16x16 32x32 64x64 128x128'.split():
+ ctx.install_as(
Home |
Main Index |
Thread Index |
Old Index