packages/scpa5xx-view: use lowercase config option, use new service functions
[openwrt/svn-archive/archive.git] / sound / mpc / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mpc
11 PKG_VERSION:=0.20
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/musicpd
16 PKG_MD5SUM:=24c81ad6afe6099e8d7a6826ef4b7105
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/mpc
21 SECTION:=sound
22 CATEGORY:=Sound
23 DEPENDS:=+libmpdclient
24 TITLE:=Music Player Daemon Console Client
25 URL:=http://www.musicpd.org/
26 endef
27
28 define Package/mpc/description
29 MPD is a music player supporting flac, mp3 and ogg files.
30 It is typically controlled over a network using one of it's many
31 clients including mpc(console), gmpc(gnome), phpmp(php) etc.
32 this is MPC
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --disable-iconv \
38 )
39 endef
40
41 define Build/Compile
42 $(call Build/Compile/Default,\
43 CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
44 prefix="/usr" \
45 all \
46 )
47 endef
48
49 define Package/mpc/install
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mpc $(1)/usr/bin/
52 $(INSTALL_BIN) ./files/pls-handler.sh $(1)/usr/bin/
53 endef
54
55 $(eval $(call BuildPackage,mpc))