25b35a9b37c84471b6a1484c173dad918279c967
[packages.git] / sound / mpc / 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$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mpc
12 PKG_VERSION:=0.12.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://www.musicpd.org/uploads/files/
17 PKG_MD5SUM:=a93a390315aacfec061c8df89fb5e35f
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/mpc
26   SECTION:=sound
27   CATEGORY:=Sound
28   TITLE:=Music Player Daemon Console Client
29   DESCRIPTION:=\
30         MPD is a music player supporting flac, mp3 and ogg files.\\\
31         It is typically controlled over a network using one of it's many \\\
32         clients including mpc(console), gmpc(gnome), phpmp(php) etc.\\\
33         this is MPC
34   URL:=http://www.musicpd.org/
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39         --disable-iconv \
40 )
41 endef
42
43 define Build/Compile
44 $(call Build/Compile/Default,\
45                 prefix="/usr" \
46                 all \
47 )
48 endef
49
50 define Package/mpc/install
51         $(INSTALL_DIR) $(1)/usr/bin
52         $(CP) $(PKG_BUILD_DIR)/src/mpc $(1)/usr/bin/
53 endef
54
55 $(eval $(call BuildPackage,mpc))