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