|
@@ -21,6 +21,7 @@ endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_ALSA),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_ALSA),y)
|
|
MPD_DEPENDENCIES += alsa-lib
|
|
MPD_DEPENDENCIES += alsa-lib
|
|
|
|
+MPD_CONF_OPT += --enable-alsa
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-alsa
|
|
MPD_CONF_OPT += --disable-alsa
|
|
endif
|
|
endif
|
|
@@ -28,91 +29,111 @@ endif
|
|
ifeq ($(BR2_PACKAGE_MPD_AO),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_AO),y)
|
|
MPD_DEPENDENCIES += libao
|
|
MPD_DEPENDENCIES += libao
|
|
MPD_CONF_OPT += --enable-ao
|
|
MPD_CONF_OPT += --enable-ao
|
|
|
|
+else
|
|
|
|
+MPD_CONF_OPT += --disable-ao
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_AUDIOFILE),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_AUDIOFILE),y)
|
|
MPD_DEPENDENCIES += audiofile
|
|
MPD_DEPENDENCIES += audiofile
|
|
MPD_CONF_OPT += --enable-audiofile
|
|
MPD_CONF_OPT += --enable-audiofile
|
|
|
|
+else
|
|
|
|
+MPD_CONF_OPT += --disable-audiofile
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_PULSEAUDIO),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_PULSEAUDIO),y)
|
|
MPD_DEPENDENCIES += pulseaudio
|
|
MPD_DEPENDENCIES += pulseaudio
|
|
MPD_CONF_OPT += --enable-pulse
|
|
MPD_CONF_OPT += --enable-pulse
|
|
|
|
+else
|
|
|
|
+MPD_CONF_OPT += --disable-pulse
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_BZIP2),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_BZIP2),y)
|
|
MPD_DEPENDENCIES += bzip2
|
|
MPD_DEPENDENCIES += bzip2
|
|
MPD_CONF_OPT += --enable-bzip2
|
|
MPD_CONF_OPT += --enable-bzip2
|
|
|
|
+else
|
|
|
|
+MPD_CONF_OPT += --disable-bzip2
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_FAAD2),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_FAAD2),y)
|
|
MPD_DEPENDENCIES += faad2
|
|
MPD_DEPENDENCIES += faad2
|
|
|
|
+MPD_CONF_OPT += --enable-aac
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-aac
|
|
MPD_CONF_OPT += --disable-aac
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_FLAC),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_FLAC),y)
|
|
MPD_DEPENDENCIES += flac
|
|
MPD_DEPENDENCIES += flac
|
|
|
|
+MPD_CONF_OPT += --enable-flac
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-flac
|
|
MPD_CONF_OPT += --disable-flac
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_CURL),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_CURL),y)
|
|
MPD_DEPENDENCIES += libcurl
|
|
MPD_DEPENDENCIES += libcurl
|
|
|
|
+MPD_CONF_OPT += --enable-curl
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-curl
|
|
MPD_CONF_OPT += --disable-curl
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_LAME),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_LAME),y)
|
|
MPD_DEPENDENCIES += lame
|
|
MPD_DEPENDENCIES += lame
|
|
|
|
+MPD_CONF_OPT += --enable-lame-encoder
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-lame-encoder
|
|
MPD_CONF_OPT += --disable-lame-encoder
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_LIBSAMPLERATE),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_LIBSAMPLERATE),y)
|
|
MPD_DEPENDENCIES += libsamplerate
|
|
MPD_DEPENDENCIES += libsamplerate
|
|
|
|
+MPD_CONF_OPT += --enable-lsr
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-lsr
|
|
MPD_CONF_OPT += --disable-lsr
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_LIBSNDFILE),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_LIBSNDFILE),y)
|
|
MPD_DEPENDENCIES += libsndfile
|
|
MPD_DEPENDENCIES += libsndfile
|
|
|
|
+MPD_CONF_OPT += --enable-sndfile
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-sndfile
|
|
MPD_CONF_OPT += --disable-sndfile
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_OPUS),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_OPUS),y)
|
|
MPD_DEPENDENCIES += opus
|
|
MPD_DEPENDENCIES += opus
|
|
|
|
+MPD_CONF_OPT += --enable-opus
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-opus
|
|
MPD_CONF_OPT += --disable-opus
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_VORBIS),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_VORBIS),y)
|
|
MPD_DEPENDENCIES += libvorbis
|
|
MPD_DEPENDENCIES += libvorbis
|
|
|
|
+MPD_CONF_OPT += --enable-vorbis --enable-vorbis-encoder
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-vorbis --disable-vorbis-encoder
|
|
MPD_CONF_OPT += --disable-vorbis --disable-vorbis-encoder
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_MPG123),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_MPG123),y)
|
|
MPD_DEPENDENCIES += libid3tag mpg123
|
|
MPD_DEPENDENCIES += libid3tag mpg123
|
|
|
|
+MPD_CONF_OPT += --enable-mpg123
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-mpg123
|
|
MPD_CONF_OPT += --disable-mpg123
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_MUSEPACK),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_MUSEPACK),y)
|
|
MPD_DEPENDENCIES += musepack
|
|
MPD_DEPENDENCIES += musepack
|
|
|
|
+MPD_CONF_OPT += --enable-mpc
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-mpc
|
|
MPD_CONF_OPT += --disable-mpc
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_SOUNDCLOUD),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_SOUNDCLOUD),y)
|
|
MPD_DEPENDENCIES += yajl
|
|
MPD_DEPENDENCIES += yajl
|
|
|
|
+MPD_CONF_OPT += --enable-soundcloud
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-soundcloud
|
|
MPD_CONF_OPT += --disable-soundcloud
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_SQLITE),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_SQLITE),y)
|
|
MPD_DEPENDENCIES += sqlite
|
|
MPD_DEPENDENCIES += sqlite
|
|
|
|
+MPD_CONF_OPT += --enable-sqlite
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-sqlite
|
|
MPD_CONF_OPT += --disable-sqlite
|
|
endif
|
|
endif
|
|
@@ -129,10 +150,13 @@ endif
|
|
ifeq ($(BR2_PACKAGE_MPD_TWOLAME),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_TWOLAME),y)
|
|
MPD_DEPENDENCIES += twolame
|
|
MPD_DEPENDENCIES += twolame
|
|
MPD_CONF_OPT += --enable-twolame-encoder
|
|
MPD_CONF_OPT += --enable-twolame-encoder
|
|
|
|
+else
|
|
|
|
+MPD_CONF_OPT += --disable-twolame-encoder
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MPD_WAVPACK),y)
|
|
ifeq ($(BR2_PACKAGE_MPD_WAVPACK),y)
|
|
MPD_DEPENDENCIES += wavpack
|
|
MPD_DEPENDENCIES += wavpack
|
|
|
|
+MPD_CONF_OPT += --enable-wavpack
|
|
else
|
|
else
|
|
MPD_CONF_OPT += --disable-wavpack
|
|
MPD_CONF_OPT += --disable-wavpack
|
|
endif
|
|
endif
|