mpc: Upgrade mpd client to 0.28
[feed/packages.git] / sound / mpc / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=mpc
9 PKG_VERSION:=0.28
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=http://www.musicpd.org/download/mpc/0
14 PKG_HASH:=a4337d06c85dc81a638821d30fce8a137a58d13d510be34a11c1cce95cabc547
15
16 PKG_LICENSE:=GPL-2.0+
17 PKG_LICENSE_FILES:=COPYING
18 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/mpc
23 SECTION:=sound
24 CATEGORY:=Sound
25 DEPENDS:=+libmpdclient
26 TITLE:=Music Player Daemon Console Client
27 URL:=http://www.musicpd.org/
28 endef
29
30 define Package/mpc/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 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 CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
46 prefix="/usr" \
47 all \
48 )
49 endef
50
51 define Package/mpc/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mpc $(1)/usr/bin/
54 $(INSTALL_BIN) ./files/pls-handler.sh $(1)/usr/bin/
55 endef
56
57 $(eval $(call BuildPackage,mpc))