package/mpd: add zziplib optional dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 14 Aug 2020 21:19:39 +0000 (23:19 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 18 Aug 2020 21:49:17 +0000 (23:49 +0200)
zziplib is an optional dependency since version 0.15.0 and
https://github.com/MusicPlayerDaemon/MPD/commit/e216e01ab3db0d9bea179b043276401d38bfd957

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/mpd/Config.in
package/mpd/mpd.mk

index eb4c28617e7199a8a0fcda2e7dd1412b39d9d4ed..f1f8d99465cc4fe5e237c877f39142ee147a9fce 100644 (file)
@@ -34,6 +34,12 @@ config BR2_PACKAGE_MPD_SQLITE
          Enable sqlite database support.
          If you don't use sqlite it will use an ASCII database.
 
+config BR2_PACKAGE_MPD_ZZIP
+       bool "zzip"
+       select BR2_PACKAGE_ZZIPLIB
+       help
+         Enable ZIP archive support.
+
 comment "Commercial services"
 
 config BR2_PACKAGE_MPD_QOBUZ
index 5e66997b2668c52fff2e3dddd70e7e4b9f967529..566b105f6131dfafa6bdd7e979c4cb34f6f19fb1 100644 (file)
@@ -317,6 +317,13 @@ else
 MPD_CONF_OPTS += -Dwavpack=disabled
 endif
 
+ifeq ($(BR2_PACKAGE_MPD_ZZIP),y)
+MPD_DEPENDENCIES += zziplib
+MPD_CONF_OPTS += -Dzzip=enabled
+else
+MPD_CONF_OPTS += -Dzzip=disabled
+endif
+
 define MPD_INSTALL_EXTRA_FILES
        $(INSTALL) -m 0644 -D package/mpd/mpd.conf $(TARGET_DIR)/etc/mpd.conf
 endef