Update empcd to 2008.02.16 (#3610)
[openwrt/svn-archive/archive.git] / sound / empcd / Makefile
1 #
2 # Copyright (C) 2007 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$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=empcd
12 PKG_VERSION:=2008.02.16
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://unfix.org/projects/empcd
17 PKG_MD5SUM:=c3209f6bf8eb6e8ea9638601e1cd04a4
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/empcd
22 SECTION:=sound
23 CATEGORY:=Sound
24 TITLE:=EMPCd can control the MPD
25 URL:=http://unfix.org/projects/empcd
26 endef
27
28 define Package/empcd/description
29 This is EMPCd which can use /dev/input/event0 or other event devices
30 to control MPD (Music Player Daemon), directly using libmpdclient
31 and other programs, currently using system(2).
32 endef
33
34 define Package/empcd/conffiles
35 /etc/empcd.conf
36 endef
37
38 define Build/Compile
39 $(call Build/Compile/Default,\
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 all \
42 )
43 endef
44
45 define Package/empcd/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/empcd $(1)/usr/bin/
48 $(INSTALL_DIR) $(1)/etc
49 $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/empcd.conf $(1)/etc/
50 endef
51
52 $(eval $(call BuildPackage,empcd))