miniupnpd updated to RC8
[openwrt/svn-archive/archive.git] / sound / mpd / Makefile
1 #
2 # Copyright (C) 2007 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:=mpd
12 PKG_VERSION:=0.13.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.musicpd.org/uploads/files/
17 PKG_MD5SUM:=0b33bdb9d706439949344073e90f812a
18 PKG_CAT:=zcat
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/mpd
26 SECTION:=sound
27 CATEGORY:=Sound
28 DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libpthread +alsa-lib
29 TITLE:=Music Player Daemon
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 URL:=http://www.musicpd.org/
35 endef
36
37 define Package/mpd/conffiles
38 /etc/mpd.conf
39 endef
40
41 ifndef CONFIG_PACKAGE_kmod-soundcore
42 EXTRA_CONFIG_PARAM:=--disable-alsa
43 endif
44
45 define Build/Configure
46 $(call Build/Configure/Default, \
47 $(EXTRA_CONFIG_PARAM) \
48 --disable-shout \
49 --disable-mod \
50 --disable-audiofile \
51 --disable-iconv \
52 --disable-mpc \
53 --disable-aac \
54 --disable-oggvorbis \
55 --disable-oggflac \
56 --with-id3tag-includes="$(STAGING_DIR)/usr/include" \
57 --with-id3tag-libraries="$(STAGING_DIR)/usr/lib" \
58 --with-libFLAC-includes="$(STAGING_DIR)/usr/include" \
59 --with-libFLAC-libraries="$(STAGING_DIR)/usr/lib" \
60 --with-mad-includes="$(STAGING_DIR)/usr/include" \
61 --with-mad-libraries="$(STAGING_DIR)/usr/lib" \
62 )
63 endef
64
65 define Build/Compile
66 $(MAKE) -C $(PKG_BUILD_DIR) \
67 DESTDIR="$(PKG_INSTALL_DIR)" \
68 all install
69 endef
70
71 define Package/mpd/install
72 $(INSTALL_DIR) $(1)/etc
73 $(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
74 $(INSTALL_DIR) $(1)/usr/bin
75 $(CP) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
76 endef
77
78 $(eval $(call BuildPackage,mpd))