Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Copyright (C) 2007-2011 OpenWrt.org
- #
- # This is free software, licensed under the GNU General Public License v2.
- # See /LICENSE for more information.
- #
- include $(TOPDIR)/rules.mk
- PKG_NAME:=mpd
- PKG_VERSION:=0.16.5
- PKG_RELEASE:=1
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
- PKG_SOURCE_URL:=@SF/musicpd
- PKG_MD5SUM:=f7564cff12035f6a1112cce770655df7
- PKG_INSTALL:=1
- PKG_BUILD_PARALLEL:=1
- include $(INCLUDE_DIR)/package.mk
- include $(INCLUDE_DIR)/nls.mk
- define Package/mpd
- SECTION:=sound
- CATEGORY:=Sound
- TITLE:=Music Player Daemon
- URL:=http://www.musicpd.org/
- # libvorbis and therewith libogg are needed for shout support
- DEPENDS:= \
- +BUILD_PATENTED:libmad \
- +glib2 +libcurl +libflac +libpthread \
- +libvorbisidec +libid3tag +libmms
- 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
- # oggflac is not compatible with tremor
- CONFIGURE_ARGS += \
- $(call autoconf_bool,CONFIG_BUILD_PATENTED,mad) \
- --disable-audiofile \
- --disable-mpc \
- --disable-lsr \
- --disable-ao \
- --disable-mvp \
- --disable-lame-encoder \
- --disable-ffmpeg \
- --disable-oggflac \
- --disable-cue \
- --disable-jack \
- --disable-modplug \
- --disable-pulse \
- --disable-sidplay \
- --disable-sqlite \
- --disable-shout \
- --disable-vorbis \
- --enable-id3 \
- --enable-lastfm \
- --enable-mms \
- --enable-flac \
- --enable-curl \
- --enable-oss \
- --with-zeroconf=no \
- --disable-test \
- --with-tremor=yes \
- CONFIGURE_VARS += \
- FLAC_CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/FLAC" \
- FLAC_LIBS="$(TARGET_LDFLAGS) -lFLAC" \
- $(if $(CONFIG_BUILD_PATENTED),MAD_CFLAGS="$(TARGET_CFLAGS)") \
- $(if $(CONFIG_BUILD_PATENTED),MAD_LIBS="$(TARGET_LDFLAGS) -lmad") \
- TARGET_CFLAGS += -std=gnu99
- TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
- # use gcc instead of g++ to avoid unnecessary linking against libstdc++
- TARGET_CXX:=$(TARGET_CC)
- 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
- $(INSTALL_DIR) $(1)/etc/avahi/services
- $(INSTALL_DATA) ./files/mpd.service $(1)/etc/avahi/services/
- endef
- $(eval $(call BuildPackage,mpd))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement