2006-08-01 07:51:20 +00:00
|
|
|
#
|
2009-04-29 12:56:17 +00:00
|
|
|
# Copyright (C) 2007-2009 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
|
2009-07-17 13:29:52 +00:00
|
|
|
PKG_VERSION:=0.15
|
|
|
|
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
|
2009-01-31 13:39:01 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/musicpd
|
2009-07-17 13:29:52 +00:00
|
|
|
PKG_MD5SUM:=2ed93a60bd703ba46d6794e12cfb5f1d
|
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
|
2009-07-17 13:29:52 +00:00
|
|
|
DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libpthread +glib2 +libmss +libcurl
|
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
|
|
|
|
|
2009-01-31 13:39:01 +00:00
|
|
|
CONFIGURE_VARS += \
|
2009-07-17 13:29:52 +00:00
|
|
|
CURL_LIBS="-L$(STAGING_DIR)/usr/lib -lssl -lcrypto -lcurl" \
|
|
|
|
CURL_CFLAGS="-I$(STAGING_DIR)/usr/include" \
|
2009-04-29 12:56:17 +00:00
|
|
|
ID3TAG_LIBS="$(TARGET_LDFLAGS) -lz -lid3tag" \
|
|
|
|
ID3TAG_CFLAGS="$(TARGET_CPPFLAGS)" \
|
|
|
|
FLAC_LIBS="$(TARGET_LDFLAGS) -lFLAC" \
|
2009-04-17 13:36:35 +00:00
|
|
|
FLAC_CFLAGS="-I$(STAGING_DIR)/usr/include/FLAC" \
|
2009-04-29 12:56:17 +00:00
|
|
|
MAD_LIBS="$(TARGET_LDFLAGS) -lmad" \
|
|
|
|
MAD_CFLAGS="$(TARGET_CPPFLAGS)" \
|
|
|
|
OGGVORBIS_LIBS="$(TARGET_LDLFAGS) -lvorbisidec" \
|
2009-04-30 20:10:27 +00:00
|
|
|
OGGVORBIS_CFLAGS="$(TARGET_CPPFLAGS)" \
|
2009-01-31 13:39:01 +00:00
|
|
|
GLIB_CFLAGS="-I$(STAGING_DIR)/usr/include/glib-2.0 -I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
|
2009-04-29 12:56:17 +00:00
|
|
|
GLIB_LIBS="$(TARGET_LDLFAGS) -L$(STAGING_DIR)/usr/lib/libintl/lib -lintl -L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv -lglib-2.0 -lgthread-2.0 -pthread"
|
2009-01-31 13:39:01 +00:00
|
|
|
|
2006-08-01 07:51:20 +00:00
|
|
|
define Build/Configure
|
2006-10-28 22:43:08 +00:00
|
|
|
$(call Build/Configure/Default, \
|
2009-01-31 13:39:01 +00:00
|
|
|
$(EXTRA_CONFIG_PARAM) \
|
|
|
|
--disable-audiofile \
|
|
|
|
--disable-mpc \
|
|
|
|
--disable-aac \
|
2008-09-27 14:24:50 +00:00
|
|
|
--disable-lsr \
|
2009-01-31 13:39:01 +00:00
|
|
|
--disable-ipv6 \
|
|
|
|
--disable-ao \
|
|
|
|
--disable-mvp \
|
|
|
|
--disable-lametest \
|
2009-07-17 13:29:52 +00:00
|
|
|
--disable-lame-encoder \
|
2009-04-17 13:36:35 +00:00
|
|
|
--enable-flac \
|
2009-07-17 13:29:52 +00:00
|
|
|
--enable-lastfm \
|
|
|
|
--enable-mms \
|
|
|
|
--with-tremor="$(STAGING_DIR)/usr/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))
|