From 48ff99b9d3e7ef2c5cf45637c6a6d055d5669783 Mon Sep 17 00:00:00 2001 From: Peter Wagner <​tripolar@gmx.at> Date: Mon, 29 Jul 2013 00:57:07 +0000 Subject: [PATCH] cmus add option for pulseaudio functionality Signed-off-by: Peter Wagner SVN-Revision: 37595 --- sound/cmus/Config.in | 8 ++++++++ sound/cmus/Makefile | 12 +++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 sound/cmus/Config.in diff --git a/sound/cmus/Config.in b/sound/cmus/Config.in new file mode 100644 index 000000000..cca6aa5cf --- /dev/null +++ b/sound/cmus/Config.in @@ -0,0 +1,8 @@ +menu "Configuration" + depends on PACKAGE_cmus + +config CMUS_WITH_PULSE + bool + default n + prompt "Enable pulseaudio support" +endmenu diff --git a/sound/cmus/Makefile b/sound/cmus/Makefile index fb5a9d125..46c18f269 100644 --- a/sound/cmus/Makefile +++ b/sound/cmus/Makefile @@ -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 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 \ -- 2.30.2