2 # Copyright (C) 2006-2010 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
11 PKG_REV
:=c274aa51b52185b289ac22f0cb95420a1c19868b
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_URL
:=git
://github.com
/jkramer
/shell-fm.git
19 PKG_SOURCE_VERSION
:=$(PKG_REV
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/shell-fm
26 DEPENDS
:=+libao
+madplay
+libpthread
27 TITLE
:=Console Based Last.FM Radio Player
28 URL
:=http
://nex.scrapping.
cc
31 define Package
/shell-fm
/description
32 Shell.FM is a console based player for the streams provided
33 by Last.FM for the Linux platform. It
's lightweight and easy to use.
36 define Package/shell-fm/conffiles
40 define Build/Configure
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 $(TARGET_CONFIGURE_OPTS) \
46 CFLAGS="$(TARGET_CFLAGS) -I./include/ $(TARGET_CPPFLAGS)" \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 LDFLAGS="$(TARGET_LDFLAGS) -lmad -lao -lpthread" \
52 define Package/shell-fm/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/shell-fm $(1)/usr/bin/
55 $(INSTALL_DIR) $(1)/etc
56 $(INSTALL_CONF) ./files/shell-fm.rc $(1)/etc/shell-fm.rc
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/shell-fm.init $(1)/etc/init.d/shell-fm
61 $(eval $(call BuildPackage,shell-fm))