2006-08-01 07:51:20 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mpd
|
|
|
|
PKG_VERSION:=0.12.0
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://users.tpg.com.au/davico/openwrt/
|
|
|
|
PKG_MD5SUM:=65e62cc813f2186dff0f96f164a853f8
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-08-01 07:51:20 +00:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mpd
|
2006-08-04 23:08:20 +00:00
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
2006-08-01 07:51:20 +00:00
|
|
|
DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec
|
|
|
|
TITLE:=Music Player Daemon
|
2006-10-28 22:43:08 +00:00
|
|
|
DESCRIPTION:=\
|
|
|
|
MPD is a music player supporting flac, mp3 and ogg files.\\\
|
|
|
|
It is typically controlled over a network using one of it's many \\\
|
|
|
|
clients including mpc(console), gmpc(gnome), phpmp(php) etc.
|
2006-08-01 07:51:20 +00:00
|
|
|
URL:=http://www.musicpd.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mpd/conffiles
|
|
|
|
/etc/mpd.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-28 22:43:08 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--disable-alsa \
|
|
|
|
--disable-shout \
|
|
|
|
--disable-mod \
|
|
|
|
--disable-audiofile \
|
|
|
|
--disable-iconv \
|
|
|
|
--disable-mpc \
|
|
|
|
--disable-aac \
|
|
|
|
--with-id3tag-includes="$(STAGING_DIR)/usr/include" \
|
|
|
|
--with-id3tag-libraries="$(STAGING_DIR)/usr/lib" \
|
|
|
|
--with-libFLAC-includes="$(STAGING_DIR)/usr/include" \
|
|
|
|
--with-libFLAC-libraries="$(STAGING_DIR)/usr/lib" \
|
|
|
|
--with-mad-includes="$(STAGING_DIR)/usr/include" \
|
|
|
|
--with-mad-libraries="$(STAGING_DIR)/usr/lib" \
|
|
|
|
--with-tremor \
|
|
|
|
--with-tremor-includes="$(STAGING_DIR)/usr/include" \
|
|
|
|
--with-tremor-libraries="$(STAGING_DIR)/usr/lib" \
|
|
|
|
)
|
2006-08-01 07:51:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mpd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2006-08-01 07:51:20 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2006-08-01 07:51:20 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mpd))
|