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