2006-08-01 07:51:20 +00:00
|
|
|
#
|
2008-03-09 22:44:26 +00:00
|
|
|
# Copyright (C) 2007 - 2008 OpenWrt.org
|
2006-08-01 07:51:20 +00:00
|
|
|
#
|
|
|
|
# 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
|
2008-07-06 14:44:11 +00:00
|
|
|
PKG_VERSION:=0.13.2
|
|
|
|
PKG_RELEASE:=1
|
2006-08-01 07:51:20 +00:00
|
|
|
|
2008-07-06 14:44:11 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2007-08-10 12:48:32 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.musicpd.org/uploads/files/
|
2008-07-06 14:44:11 +00:00
|
|
|
PKG_MD5SUM:=b461896369949ff3cff955692ead9f8b
|
2006-08-01 07:51:20 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mpd
|
2006-08-04 23:08:20 +00:00
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
2008-05-17 10:05:18 +00:00
|
|
|
DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libpthread +libiconv
|
2006-08-01 07:51:20 +00:00
|
|
|
TITLE:=Music Player Daemon
|
|
|
|
URL:=http://www.musicpd.org/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/mpd/description
|
|
|
|
MPD is a music player supporting flac, mp3 and ogg files.
|
2008-07-06 14:44:11 +00:00
|
|
|
It is typically controlled over a network using one of it's many
|
2007-10-14 04:32:56 +00:00
|
|
|
clients including mpc(console), gmpc(gnome), phpmp(php) etc.
|
|
|
|
endef
|
|
|
|
|
2006-08-01 07:51:20 +00:00
|
|
|
define Package/mpd/conffiles
|
|
|
|
/etc/mpd.conf
|
|
|
|
endef
|
|
|
|
|
2008-03-09 22:44:26 +00:00
|
|
|
ifndef CONFIG_PACKAGE_kmod-sound-core
|
2007-07-29 19:30:39 +00:00
|
|
|
EXTRA_CONFIG_PARAM:=--disable-alsa
|
|
|
|
endif
|
|
|
|
|
2006-08-01 07:51:20 +00:00
|
|
|
define Build/Configure
|
2006-10-28 22:43:08 +00:00
|
|
|
$(call Build/Configure/Default, \
|
2007-08-10 12:48:32 +00:00
|
|
|
$(EXTRA_CONFIG_PARAM) \
|
|
|
|
--disable-mod \
|
|
|
|
--disable-audiofile \
|
|
|
|
--disable-mpc \
|
|
|
|
--disable-aac \
|
2008-03-09 22:44:26 +00:00
|
|
|
--with-tremor \
|
2007-08-10 12:48:32 +00:00
|
|
|
--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" \
|
2008-05-17 10:05:18 +00:00
|
|
|
--with-iconv-includes="$(STAGING_DIR)/usr/lib/libiconv/include" \
|
|
|
|
--with-iconv-libraries="$(STAGING_DIR)/usr/lib/libiconv/lib" \
|
2006-10-28 22:43:08 +00:00
|
|
|
)
|
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
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
|
2007-12-28 15:27:42 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd
|
2006-08-01 07:51:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mpd))
|