Message ID | 20240203175840.141039-1-fontaine.fabrice@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/1] package/libjwt: add gnutls support | expand |
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes: > gnutls can be used if openssl is not available since the addition of the > package in commit 7251775773011e7da38e3a33c6817eceab6a9dfa > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Committed, thanks.
diff --git a/package/libjwt/Config.in b/package/libjwt/Config.in index fa042d67ef..39d1665e0e 100644 --- a/package/libjwt/Config.in +++ b/package/libjwt/Config.in @@ -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 diff --git a/package/libjwt/libjwt.mk b/package/libjwt/libjwt.mk index 6ae1717b7d..7e2ea03b09 100644 --- a/package/libjwt/libjwt.mk +++ b/package/libjwt/libjwt.mk @@ -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))
gnutls can be used if openssl is not available since the addition of the package in commit 7251775773011e7da38e3a33c6817eceab6a9dfa Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> --- package/libjwt/Config.in | 2 +- package/libjwt/libjwt.mk | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-)