[packages] cmus add option for pulseaudio functionality
authorPeter Wagner <​tripolar@gmx.at>
Mon, 29 Jul 2013 00:57:07 +0000 (00:57 +0000)
committerPeter Wagner <​tripolar@gmx.at>
Mon, 29 Jul 2013 00:57:07 +0000 (00:57 +0000)
Signed-off-by: Peter Wagner <tripolar@gmx.at>
SVN-Revision: 37595

sound/cmus/Config.in [new file with mode: 0644]
sound/cmus/Makefile

diff --git a/sound/cmus/Config.in b/sound/cmus/Config.in
new file mode 100644 (file)
index 0000000..cca6aa5
--- /dev/null
@@ -0,0 +1,8 @@
+menu "Configuration"
+       depends on PACKAGE_cmus
+
+config CMUS_WITH_PULSE
+       bool
+       default n
+       prompt "Enable pulseaudio support"
+endmenu
index fb5a9d1257419ce1051f88db57aa0131374e671f..46c18f26935f9b6cb975cf85a5f0c0222627b1b1 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=cmus
 PKG_VERSION:=2.5.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=@SF/cmus
@@ -28,12 +28,18 @@ define Package/cmus
   DEPENDS:= \
        +libpthread +librt +libncursesw $(ICONV_DEPENDS) \
        +AUDIO_SUPPORT:alsa-lib \
-       +BUILD_PATENTED:libmad +libvorbisidec +libflac
+       +BUILD_PATENTED:libmad +libvorbisidec +libflac \
+       +CMUS_WITH_PULSE:pulseaudio-daemon
+
   TITLE:=C* Music Player
   MAINTAINER:=Peter Wagner <tripolar@gmx.at>
   URL:=http://cmus.sourceforge.net/
 endef
 
+define Package/cmus/config
+  source "$(SOURCE)/Config.in"
+endef
+
 define Package/cmus/description
        C* Music Player is a modular and very configurable ncurses-based
        audio player. It has some interesting features like configurable
@@ -64,7 +70,7 @@ define Build/Configure
                CONFIG_AAC=n \
                CONFIG_FFMPEG=n \
                CONFIG_ROAR=n \
-               CONFIG_PULSE=n \
+               CONFIG_PULSE=$(if $(CONFIG_CMUS_WITH_PULSE),a,n) \
                CONFIG_ALSA=$(if $(CONFIG_AUDIO_SUPPORT),a,n) \
                CONFIG_AO=n \
                CONFIG_ARTS=n \