2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-01-20 21:49:42 +01:00
|
|
|
#
|
|
|
|
# mpd
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-01-20 21:49:42 +01:00
|
|
|
|
2014-01-13 23:17:18 +01:00
|
|
|
MPD_VERSION_MAJOR = 0.18
|
2014-04-22 13:27:23 +02:00
|
|
|
MPD_VERSION = $(MPD_VERSION_MAJOR).10
|
2013-09-06 08:14:15 +02:00
|
|
|
MPD_SOURCE = mpd-$(MPD_VERSION).tar.xz
|
2014-01-02 18:46:12 +01:00
|
|
|
MPD_SITE = http://www.musicpd.org/download/mpd/$(MPD_VERSION_MAJOR)
|
2012-10-22 17:47:52 +02:00
|
|
|
MPD_DEPENDENCIES = host-pkgconf libglib2
|
2014-01-13 23:17:18 +01:00
|
|
|
MPD_LICENSE = GPLv2+
|
2012-08-12 00:27:29 +02:00
|
|
|
MPD_LICENSE_FILES = COPYING
|
2011-01-20 21:49:42 +01:00
|
|
|
|
|
|
|
# Some options need an explicit --disable or --enable
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_ALSA),y)
|
|
|
|
MPD_DEPENDENCIES += alsa-lib
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-alsa
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_AO),y)
|
|
|
|
MPD_DEPENDENCIES += libao
|
2011-02-09 14:25:52 +01:00
|
|
|
MPD_CONF_OPT += --enable-ao
|
2011-01-20 21:49:42 +01:00
|
|
|
endif
|
|
|
|
|
2012-04-23 05:31:37 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_MPD_AUDIOFILE),y)
|
|
|
|
MPD_DEPENDENCIES += audiofile
|
|
|
|
MPD_CONF_OPT += --enable-audiofile
|
|
|
|
endif
|
|
|
|
|
2011-10-20 16:21:47 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_MPD_PULSEAUDIO),y)
|
|
|
|
MPD_DEPENDENCIES += pulseaudio
|
|
|
|
MPD_CONF_OPT += --enable-pulse
|
|
|
|
endif
|
|
|
|
|
2011-01-20 21:49:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MPD_BZIP2),y)
|
|
|
|
MPD_DEPENDENCIES += bzip2
|
|
|
|
MPD_CONF_OPT += --enable-bzip2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_FAAD2),y)
|
|
|
|
MPD_DEPENDENCIES += faad2
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-faad2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_FLAC),y)
|
|
|
|
MPD_DEPENDENCIES += flac
|
|
|
|
else
|
2011-02-25 21:10:06 +01:00
|
|
|
MPD_CONF_OPT += --without-flac --disable-oggflac
|
2011-01-20 21:49:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_CURL),y)
|
|
|
|
MPD_DEPENDENCIES += libcurl
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-curl
|
|
|
|
endif
|
|
|
|
|
2011-02-10 18:58:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MPD_LAME),y)
|
|
|
|
MPD_DEPENDENCIES += lame
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-lame-encoder
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_LIBCUE),y)
|
|
|
|
MPD_DEPENDENCIES += libcue
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-cue
|
|
|
|
endif
|
|
|
|
|
2011-01-20 21:49:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MPD_LIBSAMPLERATE),y)
|
|
|
|
MPD_DEPENDENCIES += libsamplerate
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-lsr
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_LIBSNDFILE),y)
|
|
|
|
MPD_DEPENDENCIES += libsndfile
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-sndfile
|
|
|
|
endif
|
|
|
|
|
2014-01-13 23:17:18 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MPD_OPUS),y)
|
|
|
|
MPD_DEPENDENCIES += opus
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-opus
|
|
|
|
endif
|
|
|
|
|
2011-01-20 21:49:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MPD_VORBIS),y)
|
|
|
|
MPD_DEPENDENCIES += libvorbis
|
|
|
|
else
|
2014-02-07 14:24:45 +01:00
|
|
|
MPD_CONF_OPT += --disable-vorbis --disable-vorbis-encoder
|
2011-01-20 21:49:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_MPG123),y)
|
|
|
|
MPD_DEPENDENCIES += libid3tag mpg123
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-mpg123
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_MUSEPACK),y)
|
|
|
|
MPD_DEPENDENCIES += musepack
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-mpc
|
|
|
|
endif
|
|
|
|
|
2014-01-13 23:17:18 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MPD_SOUNDCLOUD),y)
|
|
|
|
MPD_DEPENDENCIES += yajl
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-soundcloud
|
|
|
|
endif
|
|
|
|
|
2011-01-20 21:49:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MPD_SQLITE),y)
|
|
|
|
MPD_DEPENDENCIES += sqlite
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-sqlite
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_MPD_TCP),y)
|
|
|
|
MPD_CONF_OPT += --disable-tcp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_TREMOR),y)
|
|
|
|
MPD_DEPENDENCIES += tremor
|
|
|
|
MPD_CONF_OPT += --with-tremor
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_WAVPACK),y)
|
|
|
|
MPD_DEPENDENCIES += wavpack
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-wavpack
|
|
|
|
endif
|
|
|
|
|
2011-02-19 20:42:02 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MPD_FFMPEG),y)
|
|
|
|
MPD_DEPENDENCIES += ffmpeg
|
|
|
|
MPD_CONF_OPT += --enable-ffmpeg
|
|
|
|
else
|
|
|
|
MPD_CONF_OPT += --disable-ffmpeg
|
|
|
|
endif
|
|
|
|
|
2011-01-20 21:49:42 +01:00
|
|
|
define MPD_INSTALL_EXTRA_FILES
|
2011-02-09 14:25:53 +01:00
|
|
|
@if [ ! -f $(TARGET_DIR)/etc/mpd.conf ]; then \
|
2013-09-09 22:40:32 +02:00
|
|
|
$(INSTALL) -D package/mpd/mpd.conf \
|
2011-02-09 14:25:53 +01:00
|
|
|
$(TARGET_DIR)/etc/mpd.conf; \
|
|
|
|
fi
|
2013-09-09 22:40:32 +02:00
|
|
|
$(INSTALL) -m 0755 -D package/mpd/S95mpd \
|
2011-01-20 21:49:42 +01:00
|
|
|
$(TARGET_DIR)/etc/init.d/S95mpd
|
|
|
|
endef
|
|
|
|
|
|
|
|
MPD_POST_INSTALL_TARGET_HOOKS += MPD_INSTALL_EXTRA_FILES
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|