package/libjwt: add gnutls support

gnutls can be used if openssl is not available since the addition of the
package in commit 7251775773

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Fabrice Fontaine 2024-02-03 18:58:40 +01:00 committed by Peter Korsgaard
parent 31b4883379
commit 0a860f330a
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,6 @@
config BR2_PACKAGE_LIBJWT
bool "libjwt"
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_GNUTLS
select BR2_PACKAGE_JANSSON
help
JSON Web Tokens are an open, industry standard RFC 7519

View File

@ -6,10 +6,18 @@
LIBJWT_VERSION = 1.15.3
LIBJWT_SITE = $(call github,benmcollins,libjwt,v$(LIBJWT_VERSION))
LIBJWT_DEPENDENCIES = host-pkgconf jansson openssl
LIBJWT_DEPENDENCIES = host-pkgconf jansson
LIBJWT_AUTORECONF = YES
LIBJWT_INSTALL_STAGING = YES
LIBJWT_LICENSE = MPL-2.0
LIBJWT_LICENSE_FILES = LICENSE
ifeq ($(BR2_PACKAGE_OPENSSL),y)
LIBJWT_CONF_OPTS += --with-openssl
LIBJWT_DEPENDENCIES += openssl
else
LIBJWT_CONF_OPTS += --without-openssl
LIBJWT_DEPENDENCIES += gnutls
endif
$(eval $(autotools-package))