fix compilation the proper way
[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.15
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/musicpd
17 PKG_MD5SUM:=48897aeb3a7ee5c64f30e56789f105a8
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/mpc
22 SECTION:=sound
23 CATEGORY:=Sound
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 $(CP) $(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))