2011-04-29 15:09:16 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2011 Johannes Weißl <jargon@molb.org>
|
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=cmus
|
2013-07-02 23:22:55 +00:00
|
|
|
PKG_VERSION:=2.5.0
|
2013-08-04 13:53:57 +00:00
|
|
|
PKG_RELEASE:=5
|
2011-04-29 15:09:16 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@SF/cmus
|
2013-07-02 23:22:55 +00:00
|
|
|
PKG_MD5SUM:=9af16d324060447996ed25e1a9c1c7d8
|
2011-04-29 15:09:16 +00:00
|
|
|
|
2013-08-04 13:53:57 +00:00
|
|
|
PKG_BUILD_DEPENDS:=pulseaudio-daemon
|
|
|
|
|
2011-04-29 15:09:16 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/cmus-v$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
|
2013-08-04 13:53:57 +00:00
|
|
|
|
|
|
|
define Package/cmus/Default
|
|
|
|
SUBMENU:=cmus
|
2011-04-29 15:09:16 +00:00
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
2013-08-04 13:53:57 +00:00
|
|
|
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
|
|
|
|
URL:=http://cmus.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cmus
|
|
|
|
$(call Package/cmus/Default)
|
|
|
|
TITLE:=C* Music Player
|
2011-04-29 15:09:16 +00:00
|
|
|
DEPENDS:= \
|
2012-06-11 22:46:27 +00:00
|
|
|
+libpthread +librt +libncursesw $(ICONV_DEPENDS) \
|
2011-04-29 15:09:16 +00:00
|
|
|
+AUDIO_SUPPORT:alsa-lib \
|
2013-08-04 13:53:57 +00:00
|
|
|
+BUILD_PATENTED:libmad +libvorbisidec +libflac
|
2011-04-29 15:09:16 +00:00
|
|
|
endef
|
|
|
|
|
2013-08-04 13:53:57 +00:00
|
|
|
define Package/cmus-plugin-pulse
|
|
|
|
$(call Package/cmus/Default)
|
|
|
|
TITLE:=cmus pulseaudio plugin
|
|
|
|
DEPENDS:= \
|
|
|
|
+cmus \
|
|
|
|
+pulseaudio-daemon
|
2013-07-29 00:57:07 +00:00
|
|
|
endef
|
|
|
|
|
2013-08-04 13:53:57 +00:00
|
|
|
define Package/cmus-plugin-oss
|
|
|
|
$(call Package/cmus/Default)
|
|
|
|
TITLE:=cmus oss plugin
|
|
|
|
DEPENDS:= \
|
|
|
|
+cmus
|
|
|
|
endef
|
2013-07-29 18:36:00 +00:00
|
|
|
|
2013-08-04 13:53:57 +00:00
|
|
|
define Package/cmus/Default/description
|
2011-04-29 15:09:16 +00:00
|
|
|
C* Music Player is a modular and very configurable ncurses-based
|
|
|
|
audio player. It has some interesting features like configurable
|
|
|
|
colorscheme, mp3 and ogg streaming, it can be controlled with an
|
|
|
|
UNIX socket, filters, album/artists sorting and a vi-like
|
|
|
|
configuration interface.
|
|
|
|
endef
|
|
|
|
|
2013-08-04 13:53:57 +00:00
|
|
|
define Package/cmus/description
|
|
|
|
$(call Package/cmus/Default/description)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cmus-plugin-pulse/description
|
|
|
|
$(call Package/cmus/Default/description)
|
|
|
|
This package adds the Pulseaudio plugin.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cmus-plugin-oss/description
|
|
|
|
$(call Package/cmus/Default/description)
|
|
|
|
This package adds the OSS plugin.
|
|
|
|
endef
|
|
|
|
|
2011-04-29 15:09:16 +00:00
|
|
|
define Build/Configure
|
|
|
|
# this is *NOT* GNU configure
|
|
|
|
( cd $(PKG_BUILD_DIR); \
|
|
|
|
CROSS="$(TARGET_CROSS)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -I$(ICONV_PREFIX)/include" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -L$(ICONV_PREFIX)/lib" \
|
|
|
|
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
|
|
|
|
PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \
|
|
|
|
./configure \
|
|
|
|
prefix="/usr" \
|
|
|
|
CONFIG_FLAC=a \
|
|
|
|
CONFIG_MAD=$(if $(CONFIG_BUILD_PATENTED),a,n) \
|
|
|
|
CONFIG_MODPLUG=n \
|
|
|
|
CONFIG_MIKMOD=n \
|
|
|
|
CONFIG_MPC=n \
|
|
|
|
CONFIG_VORBIS=a \
|
|
|
|
CONFIG_TREMOR=y \
|
|
|
|
CONFIG_WAVPACK=n \
|
|
|
|
CONFIG_MP4=n \
|
|
|
|
CONFIG_AAC=n \
|
|
|
|
CONFIG_FFMPEG=n \
|
|
|
|
CONFIG_ROAR=n \
|
2013-08-04 13:53:57 +00:00
|
|
|
CONFIG_PULSE=a \
|
2011-04-29 15:09:16 +00:00
|
|
|
CONFIG_ALSA=$(if $(CONFIG_AUDIO_SUPPORT),a,n) \
|
|
|
|
CONFIG_AO=n \
|
|
|
|
CONFIG_ARTS=n \
|
2013-08-04 13:53:57 +00:00
|
|
|
CONFIG_OSS=a \
|
2011-04-29 15:09:16 +00:00
|
|
|
CONFIG_SUN=n \
|
|
|
|
CONFIG_WAVEOUT=n \
|
|
|
|
DEBUG=0 \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
V=$(V) \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cmus/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/cmus/ip
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/cmus/op
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/cmus
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cmus $(1)/usr/bin/
|
2013-08-04 13:53:57 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmus/ip/{flac,vorbis,wav}.so $(1)/usr/lib/cmus/ip/
|
|
|
|
$(if $(CONFIG_BUILD_PATENTED),$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmus/ip/mad.so $(1)/usr/lib/cmus/ip/,)
|
|
|
|
$(if $(CONFIG_AUDIO_SUPPORT),$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmus/op/alsa.so $(1)/usr/lib/cmus/op/,)
|
2011-04-29 15:09:16 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/cmus/{rc,default.theme} $(1)/usr/share/cmus/
|
|
|
|
endef
|
|
|
|
|
2013-08-04 13:53:57 +00:00
|
|
|
define Package/cmus-plugin-pulse/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/cmus/op
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmus/op/pulse.so $(1)/usr/lib/cmus/op/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cmus-plugin-oss/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/cmus/op
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmus/op/oss.so $(1)/usr/lib/cmus/op/
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2011-04-29 15:09:16 +00:00
|
|
|
$(eval $(call BuildPackage,cmus))
|
2013-08-04 13:53:57 +00:00
|
|
|
$(eval $(call BuildPackage,cmus-plugin-pulse))
|
|
|
|
$(eval $(call BuildPackage,cmus-plugin-oss))
|
2011-04-29 15:09:16 +00:00
|
|
|
|