package/shairport-sync: make libdaemon an optional dependency
authorJörg Krause <joerg.krause@embedded.rocks>
Tue, 3 Dec 2019 10:53:38 +0000 (11:53 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 8 Dec 2019 22:06:09 +0000 (23:06 +0100)
Since version 3.3 libdaemon is an optional dependency.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/shairport-sync/Config.in
package/shairport-sync/shairport-sync.mk

index 5df4c194c0fd109627295824ec43ef16d405e2e8..085a9ec77d0cc468e600b984c71d33f67cb242dc 100644 (file)
@@ -1,12 +1,10 @@
 config BR2_PACKAGE_SHAIRPORT_SYNC
        bool "shairport-sync"
-       depends on BR2_USE_MMU # libdaemon
        depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
        depends on BR2_INSTALL_LIBSTDCPP
        select BR2_PACKAGE_ALSA_LIB
        select BR2_PACKAGE_ALSA_LIB_MIXER
        select BR2_PACKAGE_LIBCONFIG
-       select BR2_PACKAGE_LIBDAEMON
        select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_MBEDTLS
        select BR2_PACKAGE_POPT
        help
index d7c8baa30c838f6252514040b605082f91f1498d..3d9e909879c993120706efb8340c2c861b0aa52d 100644 (file)
@@ -9,7 +9,7 @@ SHAIRPORT_SYNC_SITE = $(call github,mikebrady,shairport-sync,$(SHAIRPORT_SYNC_VE
 
 SHAIRPORT_SYNC_LICENSE = MIT, BSD-3-Clause
 SHAIRPORT_SYNC_LICENSE_FILES = LICENSES
-SHAIRPORT_SYNC_DEPENDENCIES = alsa-lib libconfig libdaemon popt host-pkgconf
+SHAIRPORT_SYNC_DEPENDENCIES = alsa-lib libconfig popt host-pkgconf
 
 # git clone, no configure
 SHAIRPORT_SYNC_AUTORECONF = YES
@@ -33,6 +33,11 @@ else
 SHAIRPORT_SYNC_CONF_OPTS += --with-tinysvcmdns
 endif
 
+ifeq ($(BR2_PACKAGE_LIBDAEMON),y)
+SHAIRPORT_SYNC_DEPENDENCIES += libdaemon
+SHAIRPORT_SYNC_CONF_OPTS += --with-libdaemon
+endif
+
 # OpenSSL or mbedTLS
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 SHAIRPORT_SYNC_DEPENDENCIES += openssl