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
23 TITLE
:=A MPD client which submits your tracks to Last.Fm
24 DEPENDS
:=+libcurl
+libmpd
+libstdcpp
25 URL
:=http
://50hz.ws
/mpdas
/
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.
36 -I
$(STAGING_DIR
)/usr
/lib
/libintl
/include \
37 -I
$(STAGING_DIR
)/usr
/lib
/libiconv
/include \
40 -L
$(STAGING_DIR
)/usr
/lib
/libintl
/lib \
41 -L
$(STAGING_DIR
)/usr
/lib
/libiconv
/lib \
42 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib
45 CPPFLAGS
="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
46 LDFLAGS
="$(TARGET_LDPFLAGS) $(EXTRA_LDFLAGS)" \
48 define Package
/mpdas
/install
49 $(INSTALL_DIR
) $(1)/etc
50 $(INSTALL_DATA
) .
/files
/mpdasrc
$(1)/etc
/mpdasrc
51 $(INSTALL_DIR
) $(1)/usr
/bin
52 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mpdas
$(1)/usr
/bin
/
53 $(INSTALL_DIR
) $(1)/etc
/init.d
54 $(INSTALL_BIN
) .
/files
/mpdas.init
$(1)/etc
/init.d
/mpdas
57 $(eval
$(call BuildPackage
,mpdas
))