[Buildroot] [git commit] package/mpd: add libmodplug optional dependency

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Aug 18 21:49:08 UTC 2020


commit: https://git.buildroot.net/buildroot/commit/?id=a597a2020f7435625e071e837336e3ee54825542
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

libmodplug is an optional dependency since version 0.15.0 and
https://github.com/MusicPlayerDaemon/MPD/commit/d838a1ad24a9eaac44367e34506373b4b71e4ff0

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/mpd/Config.in | 6 ++++++
 package/mpd/mpd.mk    | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/package/mpd/Config.in b/package/mpd/Config.in
index baaaa7f1ae..eb4c28617e 100644
--- a/package/mpd/Config.in
+++ b/package/mpd/Config.in
@@ -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
diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
index 51bc1719a7..5e66997b26 100644
--- a/package/mpd/mpd.mk
+++ b/package/mpd/mpd.mk
@@ -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


More information about the buildroot mailing list