libucl: add optional libcurl dependency

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 2018-07-01 14:52:57 +02:00 committed by Thomas Petazzoni
parent e46257264e
commit f00e599ccd

View File

@ -12,4 +12,11 @@ LIBUCL_LICENSE = BSD-2-Clause
LIBUCL_LICENSE_FILES = COPYING
LIBUCL_DEPENDENCIES = host-pkgconf
ifeq ($(BR2_PACKAGE_LIBCURL),y)
LIBUCL_DEPENDENCIES += libcurl
LIBUCL_CONF_OPTS += --enable-urls
else
LIBUCL_CONF_OPTS += --disable-urls
endif
$(eval $(autotools-package))