package/mpd: add libmodplug optional dependency

libmodplug is an optional dependency since version 0.15.0 and
d838a1ad24

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2020-08-14 23:19:38 +02:00 committed by Thomas Petazzoni
parent db61a89648
commit a597a2020f
2 changed files with 13 additions and 0 deletions

View File

@ -140,6 +140,12 @@ config BR2_PACKAGE_MPD_MAD
Enable mad input support.
Select this if you want to play back MP3 files.
config BR2_PACKAGE_MPD_MODPLUG
bool "modplug"
select BR2_PACKAGE_LIBMODPLUG
help
Enable Modplug decoder support.
config BR2_PACKAGE_MPD_MPG123
bool "mpg123"
select BR2_PACKAGE_LIBID3TAG

View File

@ -180,6 +180,13 @@ else
MPD_CONF_OPTS += -Dmad=disabled
endif
ifeq ($(BR2_PACKAGE_MPD_MODPLUG),y)
MPD_DEPENDENCIES += libmodplug
MPD_CONF_OPTS += -Dmodplug=enabled
else
MPD_CONF_OPTS += -Dmodplug=disabled
endif
ifeq ($(BR2_PACKAGE_MPD_MPG123),y)
MPD_DEPENDENCIES += libid3tag mpg123
MPD_CONF_OPTS += -Dmpg123=enabled