summaryrefslogtreecommitdiff
path: root/multimedia/mpv
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-05-31 15:55:11 +0000
committernia <nia@pkgsrc.org>2019-05-31 15:55:11 +0000
commit7c2d3820e5a8d960fd5e70b72a15549424beb005 (patch)
treecc0df048b0c997686bd8fa7d2d648eff873766be /multimedia/mpv
parenta57652417a535c3c1a80dbd2a26a6a5ec701db7b (diff)
downloadpkgsrc-7c2d3820e5a8d960fd5e70b72a15549424beb005.tar.gz
mpv: Remove pulseaudio SUGGESTED_OPTION, add sdl2, and alsa on Linux.
Originally, packages were changed to support pulseaudio because NetBSD didn't have a native audio mixer. But that isn't true any more. SDL2 supports lots of audio (and video) outputs that mpv doesn't natively.
Diffstat (limited to 'multimedia/mpv')
-rw-r--r--multimedia/mpv/Makefile4
-rw-r--r--multimedia/mpv/options.mk17
2 files changed, 16 insertions, 5 deletions
diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile
index 246d1b96321..4979ace69f7 100644
--- a/multimedia/mpv/Makefile
+++ b/multimedia/mpv/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.81 2019/04/25 07:33:09 maya Exp $
+# $NetBSD: Makefile,v 1.82 2019/05/31 15:55:11 nia Exp $
DISTNAME= mpv-0.29.1
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/}
GITHUB_TAG= v${PKGVERSION_NOREV}
diff --git a/multimedia/mpv/options.mk b/multimedia/mpv/options.mk
index 7958ce4153b..f8927cb36df 100644
--- a/multimedia/mpv/options.mk
+++ b/multimedia/mpv/options.mk
@@ -1,12 +1,13 @@
-# $NetBSD: options.mk,v 1.16 2018/11/26 12:24:47 abs Exp $
+# $NetBSD: options.mk,v 1.17 2019/05/31 15:55:11 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mpv
.include "../../multimedia/libva/available.mk"
.include "../../multimedia/libvdpau/available.mk"
-PKG_SUPPORTED_OPTIONS= ass bluray caca lua pulseaudio rpi sdl2 v4l2
-PKG_SUGGESTED_OPTIONS= ass bluray lua pulseaudio
+PKG_SUPPORTED_OPTIONS= alsa ass bluray caca lua pulseaudio rpi sdl2 v4l2
+PKG_SUGGESTED_OPTIONS= ass bluray lua sdl2
+PKG_SUGGESTED_OPTIONS.Linux+= alsa
.if ${VAAPI_AVAILABLE} == "yes"
PKG_SUPPORTED_OPTIONS+= vaapi
@@ -21,6 +22,16 @@ PKG_SUGGESTED_OPTIONS+= vdpau
.include "../../mk/bsd.options.mk"
###
+### alsa support
+###
+.if !empty(PKG_OPTIONS:Malsa)
+WAF_CONFIGURE_ARGS+= --enable-alsa
+.include "../../audio/alsa-lib/buildlink3.mk"
+.else
+WAF_CONFIGURE_ARGS+= --disable-alsa
+.endif
+
+###
### libbluray support
###
.if !empty(PKG_OPTIONS:Mbluray)