[packages] utils/collectd: Updated to 4.4.1
[packages.git] / sound / scmpc / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 9349 2007-10-18 18:46:37Z blogic $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=scmpc
12 PKG_VERSION:=0.2.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://download.berlios.de/scmpc
17 PKG_MD5SUM:=f42482e4dbf398df92a36d5610b403e5
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/scmpc
25   SECTION:=sound
26   CATEGORY:=Sound
27   TITLE:=A MPD client which submits your tracks to Last.Fm
28   DEPENDS:=+libcurl +libdaemon +argtable +confuse
29   URL:=http://scmpc.berlios.de/
30 endef
31
32 define Package/scmpc/description
33   scmpc is a multithreaded, robust client for MPD to submit tracks to Audioscrobbler (Last.fm).
34 endef
35
36 CONFIGURE_ARGS += \
37         --enable-shared \
38         --enable-static \
39         --disable-rpath \
40         --without-libiconv-prefix \
41         --without-libintl-prefix \
42  
43 MAKE_FLAGS += \
44         $(TARGET_CONFIGURE_OPTS) \
45         $(1) \
46
47 define Package/scmpc/install
48         $(INSTALL_DIR) $(1)/usr/bin
49         $(CP) $(PKG_BUILD_DIR)/src/scmpc $(1)/usr/bin/
50         $(INSTALL_DIR) $(1)/etc/init.d
51         $(INSTALL_BIN) ./files/scmpc.init $(1)/etc/init.d/scmpc
52         $(INSTALL_DIR) $(1)/etc
53         $(CP) $(PKG_BUILD_DIR)/examples/scmpc.conf $(1)/etc
54 endef
55
56 $(eval $(call BuildPackage,scmpc))