Makefile cleanups, round 3
[openwrt/svn-archive/archive.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 include $(INCLUDE_DIR)/package.mk
20
21 define Package/scmpc
22 SECTION:=sound
23 CATEGORY:=Sound
24 TITLE:=A MPD client which submits your tracks to Last.Fm
25 DEPENDS:=+libcurl +libdaemon +argtable +confuse
26 URL:=http://scmpc.berlios.de/
27 endef
28
29 define Package/scmpc/description
30 scmpc is a multithreaded, robust client for MPD to submit tracks to Audioscrobbler (Last.fm).
31 endef
32
33 CONFIGURE_ARGS += \
34 --enable-shared \
35 --enable-static \
36 --disable-rpath \
37 --without-libiconv-prefix \
38 --without-libintl-prefix \
39
40 MAKE_FLAGS += \
41 $(TARGET_CONFIGURE_OPTS) \
42 $(1) \
43
44 define Package/scmpc/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(CP) $(PKG_BUILD_DIR)/src/scmpc $(1)/usr/bin/
47 $(INSTALL_DIR) $(1)/etc/init.d
48 $(INSTALL_BIN) ./files/scmpc.init $(1)/etc/init.d/scmpc
49 $(INSTALL_DIR) $(1)/etc
50 $(CP) $(PKG_BUILD_DIR)/examples/scmpc.conf $(1)/etc
51 endef
52
53 $(eval $(call BuildPackage,scmpc))