2010-02-18 13:10:21 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007-2010 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.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mpd
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_VERSION:=0.15.8
|
2010-08-14 13:13:23 +00:00
|
|
|
PKG_RELEASE:=5
|
2006-08-01 07:51:20 +00:00
|
|
|
|
2008-07-06 14:44:11 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2009-01-31 13:39:01 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/musicpd
|
2010-02-19 01:20:44 +00:00
|
|
|
PKG_MD5SUM:=824e1ce46c0f468865d9e5e403cdaf5d
|
2010-02-18 13:10:21 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2010-11-03 23:20:24 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
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
|
2006-08-01 07:51:20 +00:00
|
|
|
TITLE:=Music Player Daemon
|
|
|
|
URL:=http://www.musicpd.org/
|
2010-04-23 01:13:11 +00:00
|
|
|
# libvorbis and therewith libogg are needed for shout support
|
|
|
|
DEPENDS:= \
|
|
|
|
+AUDIO_SUPPORT:alsa-lib \
|
2010-08-14 13:13:23 +00:00
|
|
|
+libaudiofile \
|
2010-04-23 01:13:11 +00:00
|
|
|
+BUILD_PATENTED:libfaad2 +BUILD_PATENTED:libmad \
|
|
|
|
+glib2 +libcurl +libflac +libmms +libpthread +libshout \
|
2010-07-31 11:39:00 +00:00
|
|
|
+libvorbis +libvorbisidec +libid3tag
|
2006-08-01 07:51:20 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/mpd/description
|
2010-04-23 01:13:11 +00:00
|
|
|
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...
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2006-08-01 07:51:20 +00:00
|
|
|
define Package/mpd/conffiles
|
2010-04-23 01:13:11 +00:00
|
|
|
/etc/avahi/services/mpd.service
|
2006-08-01 07:51:20 +00:00
|
|
|
/etc/mpd.conf
|
|
|
|
endef
|
|
|
|
|
2010-04-20 17:20:04 +00:00
|
|
|
# oggflac is not compatible with tremor
|
2010-04-23 01:13:11 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
$(call autoconf_bool,CONFIG_BUILD_PATENTED,mad) \
|
|
|
|
$(call autoconf_bool,CONFIG_AUDIO_SUPPORT,alsa) \
|
2010-04-20 17:20:04 +00:00
|
|
|
--enable-audiofile \
|
2009-10-06 02:18:40 +00:00
|
|
|
--disable-mpc \
|
2010-04-23 01:13:11 +00:00
|
|
|
$(call autoconf_bool,CONFIG_BUILD_PATENTED,aac) \
|
2009-10-06 02:18:40 +00:00
|
|
|
--disable-lsr \
|
|
|
|
--disable-ao \
|
|
|
|
--disable-mvp \
|
|
|
|
--disable-lame-encoder \
|
2010-04-20 17:20:04 +00:00
|
|
|
--disable-ffmpeg \
|
2009-10-06 02:18:40 +00:00
|
|
|
--enable-flac \
|
2010-04-20 17:20:04 +00:00
|
|
|
--enable-vorbis \
|
|
|
|
--disable-oggflac \
|
2010-04-23 01:13:11 +00:00
|
|
|
--disable-cue \
|
|
|
|
--disable-jack \
|
|
|
|
--disable-modplug \
|
|
|
|
--disable-pulse \
|
|
|
|
--disable-sidplay \
|
2010-04-20 17:20:04 +00:00
|
|
|
--disable-sqlite \
|
|
|
|
--enable-shout \
|
|
|
|
--enable-id3 \
|
2009-10-06 02:18:40 +00:00
|
|
|
--enable-lastfm \
|
|
|
|
--enable-mms \
|
2010-04-20 17:20:04 +00:00
|
|
|
--enable-curl \
|
|
|
|
--disable-oss \
|
|
|
|
--enable-aac \
|
|
|
|
--with-zeroconf=no \
|
|
|
|
--disable-libOggFLACtest \
|
|
|
|
--disable-test \
|
|
|
|
--with-tremor=yes \
|
|
|
|
--with-faad="$(STAGING_DIR)/usr" \
|
2007-07-29 19:30:39 +00:00
|
|
|
|
2009-01-31 13:39:01 +00:00
|
|
|
CONFIGURE_VARS += \
|
2010-04-20 17:20:04 +00:00
|
|
|
FLAC_CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/FLAC" \
|
2009-04-29 12:56:17 +00:00
|
|
|
FLAC_LIBS="$(TARGET_LDFLAGS) -lFLAC" \
|
2010-04-20 17:20:04 +00:00
|
|
|
$(if $(CONFIG_BUILD_PATENTED),MAD_CFLAGS="$(TARGET_CFLAGS)") \
|
|
|
|
$(if $(CONFIG_BUILD_PATENTED),MAD_LIBS="$(TARGET_LDFLAGS) -lmad") \
|
2009-01-31 13:39:01 +00:00
|
|
|
|
2010-04-23 01:13:11 +00:00
|
|
|
TARGET_CFLAGS += \
|
|
|
|
-std=gnu99 \
|
|
|
|
-I$(STAGING_DIR)/usr/lib/libintl/include/ \
|
|
|
|
-I$(STAGING_DIR)/usr/lib/libiconv/include/ \
|
|
|
|
|
|
|
|
TARGET_LDFLAGS += \
|
|
|
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libintl/lib/ \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib/ \
|
|
|
|
|
|
|
|
# use gcc instead of g++ to avoid unnecessary linking against libstdc++
|
|
|
|
TARGET_CXX:=$(TARGET_CC)
|
|
|
|
|
2006-08-01 07:51:20 +00:00
|
|
|
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
|
2010-04-23 01:13:11 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/avahi/services
|
|
|
|
$(INSTALL_DATA) ./files/mpd.service $(1)/etc/avahi/services/
|
2006-08-01 07:51:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mpd))
|