2 # Copyright (C) 2009 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
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://50hz.ws/mpdas
16 PKG_MD5SUM:=8a694691dcb5d217c46754e40152186a
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/nls.mk
24 TITLE:=A MPD client which submits your tracks to Last.Fm
25 DEPENDS:=+libcurl +libmpd +libstdcpp
26 URL:=http://50hz.ws/mpdas/
29 define Package/mpdas/description
30 mpdas is an AudioScrobbler client for MPD written in C++.
31 It supports the latest AudioScrobbler protocol (1.21).
32 In case of a downtime or connectivity problems, mpdas will
33 cache the played songs to ~/.mpdascache.
37 -I$(ICONV_PREFIX)/include \
38 -I$(INTL_PREFIX)/include \
41 -L$(ICONV_PREFIX)/lib \
42 -L$(INTL_PREFIX)/lib \
43 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
46 CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
47 LDFLAGS="$(TARGET_LDPFLAGS) $(EXTRA_LDFLAGS)" \
49 define Package/mpdas/install
50 $(INSTALL_DIR) $(1)/etc
51 $(INSTALL_DATA) ./files/mpdasrc $(1)/etc/mpdasrc
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mpdas $(1)/usr/bin/
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/mpdas.init $(1)/etc/init.d/mpdas
58 $(eval $(call BuildPackage,mpdas))