From 68ad87ecaf862f0d79afef8d0207e460c2718216 Mon Sep 17 00:00:00 2001 From: nia Date: Mon, 16 Mar 2020 21:28:23 +0000 Subject: mpv: Clean up options.mk and add a JACK option (off by default) --- multimedia/mpv/options.mk | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'multimedia') diff --git a/multimedia/mpv/options.mk b/multimedia/mpv/options.mk index b2bb499884b..20c1d2bb378 100644 --- a/multimedia/mpv/options.mk +++ b/multimedia/mpv/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.22 2020/01/22 19:08:28 maya Exp $ +# $NetBSD: options.mk,v 1.23 2020/03/16 21:28:23 nia Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.mpv @@ -9,12 +9,19 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.mpv PKG_OPTIONS_OPTIONAL_GROUPS= gl PKG_OPTIONS_GROUP.gl= opengl rpi -PKG_SUPPORTED_OPTIONS+= alsa ass bluray caca libdrm lua pulseaudio -PKG_SUPPORTED_OPTIONS+= sdl2 wayland x11 +# audio outputs +PKG_SUPPORTED_OPTIONS+= alsa jack pulseaudio +# video outputs +PKG_SUPPORTED_OPTIONS+= caca sdl2 libdrm wayland x11 +# misc +PKG_SUPPORTED_OPTIONS+= ass bluray lua .include "../../mk/bsd.fast.prefs.mk" + PKG_SUGGESTED_OPTIONS= ass bluray lua sdl2 + PKG_SUGGESTED_OPTIONS.Linux+= alsa pulseaudio + .if ${OPSYS} != "Darwin" PKG_SUGGESTED_OPTIONS+= opengl libdrm x11 .endif @@ -33,7 +40,7 @@ PKG_SUGGESTED_OPTIONS+= wayland .include "../../mk/bsd.options.mk" ### -### alsa support +### alsa support (audio output) ### .if !empty(PKG_OPTIONS:Malsa) WAF_CONFIGURE_ARGS+= --enable-alsa @@ -74,7 +81,17 @@ WAF_CONFIGURE_ARGS+= --disable-lua .endif ### -### Pulseaudio support (audio output) +### JACK support (audio output) +### +.if !empty(PKG_OPTIONS:Mjack) +WAF_CONFIGURE_ARGS+= --enable-jack +.include "../../audio/jack/buildlink3.mk" +.else +WAF_CONFIGURE_ARGS+= --disable-jack +.endif + +### +### PulseAudio support (audio output) ### .if !empty(PKG_OPTIONS:Mpulseaudio) WAF_CONFIGURE_ARGS+= --enable-pulse -- cgit v1.2.3