remove obsolete prereq checks
[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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/shell-fm
25 SECTION:=sound
26 CATEGORY:=Sound
27 DEPENDS:=+libmad +libopenssl +libreadline +libncurses
28 TITLE:=Console Based Last.FM Radio Player
29 URL:=http://nex.scrapping.cc
30 endef
31
32 define Package/shell-fm/description
33 Shell.FM is a console based player for the streams provided
34 by Last.FM for the Linux platform. It's lightweight and easy to use.
35 endef
36
37 define Package/shell-fm/conffiles
38 /etc/shell-fm.rc
39 endef
40
41 define Build/Configure
42 $(PKG_BUILD_DIR)/reconfig
43 $(call Build/Configure/Default, --disable-ao)
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 all install
50 endef
51
52 define Package/shell-fm/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/shell-fm $(1)/usr/bin/
55 $(INSTALL_DIR) $(1)/etc
56 $(INSTALL_DATA) ./files/shell-fm.rc $(1)/etc/shell-fm.rc
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/shell-fm.init $(1)/etc/init.d/shell-fm
59 endef
60
61 $(eval $(call BuildPackage,shell-fm))