[packages] apr: update to v1.3.9
[openwrt/svn-archive/archive.git] / sound / mpdas / Makefile
1 #
2 # Copyright (C) 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:=mpdas
11 PKG_VERSION:=0.2.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://50hz.ws/mpdas
16 PKG_MD5SUM:=8a694691dcb5d217c46754e40152186a
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/mpdas
21 SECTION:=sound
22 CATEGORY:=Sound
23 TITLE:=A MPD client which submits your tracks to Last.Fm
24 DEPENDS:=+libcurl +libmpd +libstdcpp
25 URL:=http://50hz.ws/mpdas/
26 endef
27
28 define Package/mpdas/description
29 mpdas is an AudioScrobbler client for MPD written in C++.
30 It supports the latest AudioScrobbler protocol (1.21).
31 In case of a downtime or connectivity problems, mpdas will
32 cache the played songs to ~/.mpdascache.
33 endef
34
35 MAKE_FLAGS += \
36 $(TARGET_CONFIGURE_OPTS) \
37 $(1) \
38
39 define Package/mpdas/install
40 $(INSTALL_DIR) $(1)/etc
41 $(INSTALL_DATA) ./files/mpdasrc $(1)/etc/mpdasrc
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mpdas $(1)/usr/bin/
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/mpdas.init $(1)/etc/init.d/mpdas
46 endef
47
48 $(eval $(call BuildPackage,mpdas))