yank DEFAULT:=y out of here, as it is deprecated per nbd
[openwrt/svn-archive/archive.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.0
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:=9ec03c5f3d136a9a58ef665dfb100e52
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 DEPENDS:=+libiconv
29 TITLE:=Music Player Daemon Console Client
30 DESCRIPTION:=\
31 MPD is a music player supporting flac, mp3 and ogg files.\\\
32 It is typically controlled over a network using one of it's many \\\
33 clients including mpc(console), gmpc(gnome), phpmp(php) etc.\\\
34 this is MPC
35 URL:=http://www.musicpd.org/
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --disable-iconv \
41 )
42 endef
43
44 define Build/Compile
45 $(call Build/Compile/Default,\
46 prefix="/usr" \
47 all \
48 )
49 endef
50
51 define Package/mpc/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(CP) $(PKG_BUILD_DIR)/src/mpc $(1)/usr/bin/
54 endef
55
56 $(eval $(call BuildPackage,mpc))