e4482d3409
currently, mpd depends on libsamplerate: michux at fwpiercer:~/trunk2/trunk$ objdump -p build_dir/mipsel/mpd-0.13.2/src/mpd | grep NEEDED NEEDED libnsl.so.0 NEEDED libsamplerate.so.0 <<<< NEEDED libasound.so.2 NEEDED libdl.so.0 NEEDED libpthread.so.0 NEEDED libiconv.so.2 NEEDED libid3tag.so.0 NEEDED libz.so.1 NEEDED libmad.so.0 NEEDED libFLAC.so NEEDED libm.so.0 NEEDED libvorbisidec.so.1 NEEDED libgcc_s.so.1 NEEDED libc.so.0 libsamplerate is quite large: 1336652 2008-09-21 06:17 bin/packages/mipsel/libsamplerate_0.1.3-2_mipsel.ipk so it would make sense to compile mpd per default without libsamplerate, as more than 1 mb for a feature you probably don't need is quite a waste of space... cheers michu Signed-off-by: Michael Vogt <michu at neophob.com> --- git-svn-id: svn://svn.openwrt.org/openwrt/packages@12729 3c298f89-4303-0410-b956-a3cf2f4a3e73
79 lines
2.1 KiB
Makefile
79 lines
2.1 KiB
Makefile
#
|
|
# Copyright (C) 2007 - 2008 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.13.2
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=http://www.musicpd.org/uploads/files/
|
|
PKG_MD5SUM:=b461896369949ff3cff955692ead9f8b
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/mpd
|
|
SECTION:=sound
|
|
CATEGORY:=Sound
|
|
DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libpthread +libiconv
|
|
TITLE:=Music Player Daemon
|
|
URL:=http://www.musicpd.org/
|
|
endef
|
|
|
|
define Package/mpd/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.
|
|
endef
|
|
|
|
define Package/mpd/conffiles
|
|
/etc/mpd.conf
|
|
endef
|
|
|
|
ifndef CONFIG_PACKAGE_kmod-sound-core
|
|
EXTRA_CONFIG_PARAM:=--disable-alsa
|
|
endif
|
|
|
|
define Build/Configure
|
|
$(call Build/Configure/Default, \
|
|
$(EXTRA_CONFIG_PARAM) \
|
|
--disable-mod \
|
|
--disable-audiofile \
|
|
--disable-mpc \
|
|
--disable-aac \
|
|
--disable-lsr \
|
|
--with-tremor \
|
|
--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-iconv-includes="$(STAGING_DIR)/usr/lib/libiconv/include" \
|
|
--with-iconv-libraries="$(STAGING_DIR)/usr/lib/libiconv/lib" \
|
|
)
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
all install
|
|
endef
|
|
|
|
define Package/mpd/install
|
|
$(INSTALL_DIR) $(1)/etc
|
|
$(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,mpd))
|