2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://users.tpg.com.au/davico/openwrt/
17 PKG_MD5SUM:=65e62cc813f2186dff0f96f164a853f8
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
28 DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec
29 TITLE:=Music Player Daemon
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/
37 define Package/mpd/conffiles
41 define Build/Configure
42 $(call Build/Configure/Default, \
50 --with-id3tag-includes="$(STAGING_DIR)/usr/include" \
51 --with-id3tag-libraries="$(STAGING_DIR)/usr/lib" \
52 --with-libFLAC-includes="$(STAGING_DIR)/usr/include" \
53 --with-libFLAC-libraries="$(STAGING_DIR)/usr/lib" \
54 --with-mad-includes="$(STAGING_DIR)/usr/include" \
55 --with-mad-libraries="$(STAGING_DIR)/usr/lib" \
57 --with-tremor-includes="$(STAGING_DIR)/usr/include" \
58 --with-tremor-libraries="$(STAGING_DIR)/usr/lib" \
63 $(MAKE) -C $(PKG_BUILD_DIR) \
64 DESTDIR="$(PKG_INSTALL_DIR)" \
68 define Package/mpd/install
69 install -d -m0755 $(1)/etc
70 $(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
71 install -d -m0755 $(1)/usr/bin
72 $(CP) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
75 $(eval $(call BuildPackage,mpd))