DESCRIPTION:= is obselete
[openwrt/svn-archive/archive.git] / sound / shell-fm / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=shell-fm
12 PKG_VERSION:=0.2
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://nex.scrapping.cc/shell-fm/downloads
17 PKG_MD5SUM:=6ebbcf1af241a92a1237547fc39ca728
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/shell-fm
26 SECTION:=sound
27 CATEGORY:=Sound
28 DEPENDS:=+libmad +libopenssl +libreadline +libncurses
29 TITLE:=Console Based Last.FM Radio Player
30 URL:=http://nex.scrapping.cc
31 endef
32
33 define Package/shell-fm/description
34 Shell.FM is a console based player for the streams provided
35 by Last.FM for the Linux platform. It's lightweight and easy to use.
36 endef
37
38 define Package/shell-fm/conffiles
39 /etc/shell-fm.rc
40 endef
41
42 define Build/Configure
43 $(PKG_BUILD_DIR)/reconfig
44 $(call Build/Configure/Default, --disable-ao)
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Package/shell-fm/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/shell-fm $(1)/usr/bin/
56 $(INSTALL_DIR) $(1)/etc
57 $(INSTALL_DATA) ./files/shell-fm.rc $(1)/etc/shell-fm.rc
58 $(INSTALL_DIR) $(1)/etc/init.d
59 $(INSTALL_BIN) ./files/shell-fm.init $(1)/etc/init.d/shell-fm
60 endef
61
62 $(eval $(call BuildPackage,shell-fm))
63
64
65 $(eval $(call RequireCommand,aclocal, \
66 $(PKG_NAME) requires automake \
67 ))
68