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_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_URL:=git://github.com/jkramer/shell-fm.git
18 PKG_SOURCE_VERSION:=c274aa51b52185b289ac22f0cb95420a1c19868b
20 include $(INCLUDE_DIR)/package.mk
22 define Package/shell-fm
25 DEPENDS:=+libao +madplay +libpthread
26 TITLE:=Console Based Last.FM Radio Player
27 URL:=http://nex.scrapping.cc
30 define Package/shell-fm/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.
35 define Package/shell-fm/conffiles
39 define Build/Configure
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 $(TARGET_CONFIGURE_OPTS) \
45 CFLAGS="$(TARGET_CFLAGS) -I./include/ $(TARGET_CPPFLAGS)" \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 LDFLAGS="$(TARGET_LDFLAGS) -lmad -lao -lpthread" \
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_CONF) ./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
60 $(eval $(call BuildPackage,shell-fm))