[packages] xtables-addons: update to v1.22 and fix compile against iptables 1.4.6
[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 EXTRA_CPPFLAGS:=\
36 -I$(STAGING_DIR)/usr/lib/libintl/include \
37 -I$(STAGING_DIR)/usr/lib/libiconv/include \
38
39 EXTRA_LDFLAGS:=\
40 -L$(STAGING_DIR)/usr/lib/libintl/lib \
41 -L$(STAGING_DIR)/usr/lib/libiconv/lib \
42
43 MAKE_FLAGS += \
44 CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
45 LDFLAGS="$(TARGET_LDPFLAGS) $(EXTRA_LDFLAGS)" \
46
47 define Package/mpdas/install
48 $(INSTALL_DIR) $(1)/etc
49 $(INSTALL_DATA) ./files/mpdasrc $(1)/etc/mpdasrc
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mpdas $(1)/usr/bin/
52 $(INSTALL_DIR) $(1)/etc/init.d
53 $(INSTALL_BIN) ./files/mpdas.init $(1)/etc/init.d/mpdas
54 endef
55
56 $(eval $(call BuildPackage,mpdas))