2 # Copyright (C) 2007 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://www.musicpd.org/uploads/files/
17 PKG_MD5SUM:=0b33bdb9d706439949344073e90f812a
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 include $(INCLUDE_DIR)/package.mk
27 DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libpthread +alsa-lib
28 TITLE:=Music Player Daemon
29 URL:=http://www.musicpd.org/
32 define Package/mpd/description
33 MPD is a music player supporting flac, mp3 and ogg files.
34 It is typically controlled over a network using one of it's many
35 clients including mpc(console), gmpc(gnome), phpmp(php) etc.
38 define Package/mpd/conffiles
42 ifndef CONFIG_PACKAGE_kmod-soundcore
43 EXTRA_CONFIG_PARAM:=--disable-alsa
46 define Build/Configure
47 $(call Build/Configure/Default, \
48 $(EXTRA_CONFIG_PARAM) \
57 --with-id3tag-includes="$(STAGING_DIR)/usr/include" \
58 --with-id3tag-libraries="$(STAGING_DIR)/usr/lib" \
59 --with-libFLAC-includes="$(STAGING_DIR)/usr/include" \
60 --with-libFLAC-libraries="$(STAGING_DIR)/usr/lib" \
61 --with-mad-includes="$(STAGING_DIR)/usr/include" \
62 --with-mad-libraries="$(STAGING_DIR)/usr/lib" \
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 DESTDIR="$(PKG_INSTALL_DIR)" \
72 define Package/mpd/install
73 $(INSTALL_DIR) $(1)/etc
74 $(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
75 $(INSTALL_DIR) $(1)/usr/bin
76 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
79 $(eval $(call BuildPackage,mpd))