From 978e2265968e36c9dc03004225198b85570f60d2 Mon Sep 17 00:00:00 2001 From: Rui Salvaterra Date: Mon, 9 Nov 2020 21:32:50 +0000 Subject: [PATCH] getdns: add optional support for libevent2 Signed-off-by: Rui Salvaterra --- libs/getdns/Config.in | 6 ++++++ libs/getdns/Makefile | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/libs/getdns/Config.in b/libs/getdns/Config.in index c09d232f45..10ee822e53 100644 --- a/libs/getdns/Config.in +++ b/libs/getdns/Config.in @@ -1,6 +1,12 @@ menu "Configuration" depends on PACKAGE_getdns +config GETDNS_BUILD_LIBEVENT2 + bool "Use libevent2-based event loop" + default n + help + "Use libevent2 for the event loop (requires libevent2 dependency)." + config GETDNS_ENABLE_STUB_ONLY bool "Stub resolution mode only" default y diff --git a/libs/getdns/Makefile b/libs/getdns/Makefile index 096841146c..d89b996f9f 100644 --- a/libs/getdns/Makefile +++ b/libs/getdns/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=getdns PKG_VERSION:=1.7.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSE @@ -19,6 +19,7 @@ PKG_HASH:=ea8713ce5e077ac76b1418ceb6afd25e6d4e39e9600f6f5e81d3a3a13a60f652 CMAKE_INSTALL:=1 PKG_CONFIG_DEPENDS:= \ + CONFIG_GETDNS_BUILD_LIBEVENT2 \ CONFIG_GETDNS_ENABLE_STUB_ONLY \ CONFIG_GETDNS_ENABLE_IDN_LIBIDN2 @@ -35,7 +36,7 @@ define Package/getdns SECTION:=libs CATEGORY:=Libraries TITLE+= (library) - DEPENDS+= +libopenssl +!GETDNS_ENABLE_STUB_ONLY:libunbound +GETDNS_ENABLE_IDN_LIBIDN2:libidn2 + DEPENDS+= +libopenssl +GETDNS_BUILD_LIBEVENT2:libevent2 +!GETDNS_ENABLE_STUB_ONLY:libunbound +GETDNS_ENABLE_IDN_LIBIDN2:libidn2 MENU:=1 endef @@ -51,9 +52,9 @@ endef # CMAKE options for GetDNS are described in this document: # https://getdnsapi.net/quick-start/cmake-quick-start/ CMAKE_OPTIONS += -DBUILD_LIBEV=OFF -CMAKE_OPTIONS += -DBUILD_LIBEVENT2=OFF CMAKE_OPTIONS += -DBUILD_LIBUV=OFF +CMAKE_OPTIONS += -DBUILD_LIBEVENT2=$(if $(CONFIG_GETDNS_BUILD_LIBEVENT2),ON,OFF) CMAKE_OPTIONS += -DENABLE_STUB_ONLY=$(if $(CONFIG_GETDNS_ENABLE_STUB_ONLY),ON,OFF) CMAKE_OPTIONS += -DUSE_LIBIDN2=$(if $(CONFIG_GETDNS_ENABLE_IDN_LIBIDN2),ON,OFF) -- 2.30.2