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