ympd: add optional openssl dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 11 Mar 2018 09:09:33 +0000 (10:09 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 26 Mar 2018 21:33:34 +0000 (23:33 +0200)
Fixes:
 - http://autobuild.buildroot.net/results/d9b1375f5f8ecde8fef027344a5d5b288f7cee7c

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

index e3f21e9eb066f7679b7c220f0258794b0f694288..6c0f3224cc236235737cf22b44c7be2fbcb9b1e5 100644 (file)
@@ -10,4 +10,11 @@ YMPD_LICENSE = GPL-2.0
 YMPD_LICENSE_FILES = LICENSE
 YMPD_DEPENDENCIES = libmpdclient
 
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+YMPD_DEPENDENCIES += openssl
+YMPD_CONF_OPTS += -DWITH_SSL=ON
+else
+YMPD_CONF_OPTS += -DWITH_SSL=OFF
+endif
+
 $(eval $(cmake-package))