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
:=d9f6e4d3b000d95835f39fb1aa3f4b28
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.
36 define Package
/mpdas
/conffiles
41 -I
$(ICONV_PREFIX
)/include \
42 -I
$(INTL_PREFIX
)/include \
45 -L
$(ICONV_PREFIX
)/lib \
46 -L
$(INTL_PREFIX
)/lib \
47 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib
50 CPPFLAGS
="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
51 LDFLAGS
="$(TARGET_LDPFLAGS) $(EXTRA_LDFLAGS)"
53 define Package
/mpdas
/install
54 $(INSTALL_DIR
) $(1)/etc
55 $(INSTALL_DATA
) .
/files
/mpdasrc
$(1)/etc
/mpdasrc
56 $(INSTALL_DIR
) $(1)/usr
/bin
57 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mpdas
$(1)/usr
/bin
/
58 $(INSTALL_DIR
) $(1)/etc
/init.d
59 $(INSTALL_BIN
) .
/files
/mpdas.init
$(1)/etc
/init.d
/mpdas
62 $(eval
$(call BuildPackage
,mpdas
))