[packages] make libintl and libiconv stub/full implementations switchable, use the...
[packages.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 include $(INCLUDE_DIR)/nls.mk
20
21 define Package/mpdas
22   SECTION:=sound
23   CATEGORY:=Sound
24   TITLE:=A MPD client which submits your tracks to Last.Fm
25   DEPENDS:=+libcurl +libmpd +libstdcpp
26   URL:=http://50hz.ws/mpdas/
27 endef
28
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.
34 endef
35
36 EXTRA_CPPFLAGS:=\
37         -I$(ICONV_PREFIX)/include \
38         -I$(INTL_PREFIX)/include \
39
40 EXTRA_LDFLAGS:=\
41         -L$(ICONV_PREFIX)/lib \
42         -L$(INTL_PREFIX)/lib \
43         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
44
45 MAKE_FLAGS += \
46         CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
47         LDFLAGS="$(TARGET_LDPFLAGS) $(EXTRA_LDFLAGS)" \
48
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
56 endef
57
58 $(eval $(call BuildPackage,mpdas))