e1c74840bb38248d547d44dc5e091425b02560be
[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.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_URL:=git://github.com/jkramer/shell-fm.git
18 PKG_SOURCE_VERSION:=c274aa51b52185b289ac22f0cb95420a1c19868b
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/shell-fm
23 SECTION:=sound
24 CATEGORY:=Sound
25 DEPENDS:=+libao +madplay +libpthread
26 TITLE:=Console Based Last.FM Radio Player
27 URL:=http://nex.scrapping.cc
28 endef
29
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.
33 endef
34
35 define Package/shell-fm/conffiles
36 /etc/shell-fm.rc
37 endef
38
39 define Build/Configure
40 endef
41
42 define Build/Compile
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" \
48 all install
49 endef
50
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
58 endef
59
60 $(eval $(call BuildPackage,shell-fm))