2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/shell-fm
23 DEPENDS
:=+libao
+libmad
24 TITLE
:=Console Based Last.FM Radio Player
25 URL
:=http
://nex.scrapping.
cc
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.
33 define Package/shell-fm/conffiles
37 define Build/Configure
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" \
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
58 $(eval $(call BuildPackage,shell-fm))