summaryrefslogtreecommitdiff
path: root/multimedia/mpv
diff options
context:
space:
mode:
authornat <nat@pkgsrc.org>2014-09-17 12:07:18 +0000
committernat <nat@pkgsrc.org>2014-09-17 12:07:18 +0000
commitf50151c182fc0530d5734d41dceac825b231c59e (patch)
tree928e1dee4daaa40408fd4e6e205617109a4c60b7 /multimedia/mpv
parent91a86a07b4e8c70cf99f790447fdea8f2423c709 (diff)
downloadpkgsrc-f50151c182fc0530d5734d41dceac825b231c59e.tar.gz
Add option for pulseaudio support.
This commit was approved by wiz@
Diffstat (limited to 'multimedia/mpv')
-rw-r--r--multimedia/mpv/options.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/multimedia/mpv/options.mk b/multimedia/mpv/options.mk
index ef1eb0ea02b..3d49d4da8a4 100644
--- a/multimedia/mpv/options.mk
+++ b/multimedia/mpv/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.1 2014/09/08 11:38:17 wiz Exp $
+# $NetBSD: options.mk,v 1.2 2014/09/17 12:07:18 nat Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mpv
-PKG_SUPPORTED_OPTIONS= caca lua sdl v4l2
+PKG_SUPPORTED_OPTIONS= caca lua pulseaudio sdl v4l2
PKG_SUGGESTED_OPTIONS= lua
.include "../../mk/bsd.options.mk"
@@ -27,6 +27,16 @@ WAF_CONFIGURE_ARGS+= --disable-lua
.endif
###
+### Pulseaudio support (audio output)
+###
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+WAF_CONFIGURE_ARGS+= --enable-pulse
+.include "../../audio/pulseaudio/buildlink3.mk"
+.else
+WAF_CONFIGURE_ARGS+= --disable-pulse
+.endif
+
+###
### SDL support (audio output)
###
.if !empty(PKG_OPTIONS:Msdl)