Update shell-fm to 0.5 (#3614)
[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.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://nex.scrapping.cc/code/shell-fm/downloads/
17 PKG_MD5SUM:=a257283b0f7e9173ee1073b88e57c5f6
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/shell-fm
22 SECTION:=sound
23 CATEGORY:=Sound
24 DEPENDS:=+libmad +libopenssl +libreadline +libncurses
25 TITLE:=Console Based Last.FM Radio Player
26 URL:=http://nex.scrapping.cc
27 endef
28
29 define Package/shell-fm/description
30 Shell.FM is a console based player for the streams provided
31 by Last.FM for the Linux platform. It's lightweight and easy to use.
32 endef
33
34 define Package/shell-fm/conffiles
35 /etc/shell-fm.rc
36 endef
37
38 define Build/Configure
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 $(TARGET_CONFIGURE_OPTS) \
44 CFLAGS="$(TARGET_CFLAGS) -I./include/ -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lmad -lao" \
47 all install
48 endef
49
50 define Package/shell-fm/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/shell-fm $(1)/usr/bin/
53 $(INSTALL_DIR) $(1)/etc
54 $(INSTALL_DATA) ./files/shell-fm.rc $(1)/etc/shell-fm.rc
55 $(INSTALL_DIR) $(1)/etc/init.d
56 $(INSTALL_BIN) ./files/shell-fm.init $(1)/etc/init.d/shell-fm
57 endef
58
59 $(eval $(call BuildPackage,shell-fm))