From: Thomas Petazzoni Date: Thu, 1 Jan 2015 11:39:56 +0000 (+0100) Subject: libevent: add optional dependency on OpenSSL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81cbf0bf84bb62d1b40f9ea4e30296b5ef495556;p=buildroot.git libevent: add optional dependency on OpenSSL libevent can optionally use OpenSSL, so add an optional dependency on this package to explicit this possibility. This makes sure libevent always gets built with OpenSSL support when the OpenSSL package is enabled. Signed-off-by: Thomas Petazzoni Reviewed-by: "Yann E. MORIN" --- diff --git a/package/libevent/libevent.mk b/package/libevent/libevent.mk index 607b7b2150..30fcb5ac30 100644 --- a/package/libevent/libevent.mk +++ b/package/libevent/libevent.mk @@ -22,5 +22,12 @@ ifneq ($(BR2_PACKAGE_PYTHON),y) LIBEVENT_POST_INSTALL_TARGET_HOOKS += LIBEVENT_REMOVE_PYSCRIPT endif +ifeq ($(BR2_PACKAGE_OPENSSL),y) +LIBEVENT_DEPENDENCIES += openssl +LIBEVENT_CONF_OPTS += --enable-openssl +else +LIBEVENT_CONF_OPTS += --disable-openssl +endif + $(eval $(autotools-package)) $(eval $(host-autotools-package))