b203d43a84676f6c205255abd5713edd030c0447
[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:=1
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 +openssl +readline +libncurses
29 TITLE:=Console Based Last.FM Radio Player
30 DESCRIPTION:=\
31 Shell.FM is a console based player for the streams provided \\\
32 by Last.FM for the Linux platform. It's lightweight and easy to use.
33 URL:=http://nex.scrapping.cc
34 endef
35
36 define Build/Configure
37 $(PKG_BUILD_DIR)/reconfig
38 $(call Build/Configure/Default)
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 DESTDIR="$(PKG_INSTALL_DIR)" \
44 all install
45 endef
46
47 define Package/shell-fm/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(CP) $(PKG_INSTALL_DIR)/usr/bin/shell-fm $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,shell-fm))