[package] change libpopt mirror
[openwrt/svn-archive/archive.git] / sound / shell-fm / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=shell-fm
11 PKG_VERSION:=0.5
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://nex.scrapping.cc/code/shell-fm/downloads/
16 PKG_MD5SUM:=a257283b0f7e9173ee1073b88e57c5f6
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/shell-fm
21 SECTION:=sound
22 CATEGORY:=Sound
23 DEPENDS:=+libao +libmad
24 TITLE:=Console Based Last.FM Radio Player
25 URL:=http://nex.scrapping.cc
26 endef
27
28 define Package/shell-fm/description
29 Shell.FM is a console based player for the streams provided
30 by Last.FM for the Linux platform. It's lightweight and easy to use.
31 endef
32
33 define Package/shell-fm/conffiles
34 /etc/shell-fm.rc
35 endef
36
37 define Build/Configure
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 $(TARGET_CONFIGURE_OPTS) \
43 CFLAGS="$(TARGET_CFLAGS) -I./include/ $(TARGET_CPPFLAGS)" \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 LDFLAGS="$(TARGET_LDFLAGS) -lmad -lao" \
46 all install
47 endef
48
49 define Package/shell-fm/install
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/shell-fm $(1)/usr/bin/
52 $(INSTALL_DIR) $(1)/etc
53 $(INSTALL_DATA) ./files/shell-fm.rc $(1)/etc/shell-fm.rc
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/shell-fm.init $(1)/etc/init.d/shell-fm
56 endef
57
58 $(eval $(call BuildPackage,shell-fm))