add Content-Disposition workaround (closes: #2048), bump release number
[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 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 Package/shell-fm/conffiles
37 /etc/shell-fm.rc
38 endef
39
40 define Build/Configure
41 $(PKG_BUILD_DIR)/reconfig
42 $(call Build/Configure/Default, --disable-ao)
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 all install
49 endef
50
51 define Package/shell-fm/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/shell-fm $(1)/usr/bin/
54 $(INSTALL_DIR) $(1)/etc
55 $(INSTALL_DATA) ./files/shell-fm.rc $(1)/etc/shell-fm.rc
56 $(INSTALL_DIR) $(1)/etc/init.d
57 $(INSTALL_BIN) ./files/shell-fm.init $(1)/etc/init.d/shell-fm
58 endef
59
60 $(eval $(call BuildPackage,shell-fm))
61
62
63 $(eval $(call RequireCommand,aclocal, \
64 $(PKG_NAME) requires automake \
65 ))
66