From e46257264ed773a9c2b94e0e4f0131187a8940ba Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 10 Jun 2018 15:54:34 +0200 Subject: [PATCH] libwebsockets: add optional libevent dependency libevent is supported since 2.3.0 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/libwebsockets/libwebsockets.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk index 28fd183393..81e398bedd 100644 --- a/package/libwebsockets/libwebsockets.mk +++ b/package/libwebsockets/libwebsockets.mk @@ -35,6 +35,13 @@ else LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEV=OFF endif +ifeq ($(BR2_PACKAGE_LIBEVENT),y) +LIBWEBSOCKETS_DEPENDENCIES += libevent +LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEVENT=ON +else +LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEVENT=OFF +endif + ifeq ($(BR2_PACKAGE_LIBUV),y) LIBWEBSOCKETS_DEPENDENCIES += libuv LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBUV=ON -- 2.30.2