package/jwt-cpp: new package

Needed for domoticz >= 2025.1:
b30d9e9436

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bernd Kuhls
2026-09-19 17:57:33 +02:00
committed by Thomas Petazzoni
parent 861b7cb9b2
commit e4253ee1a6
5 changed files with 38 additions and 0 deletions

View File

@@ -410,6 +410,7 @@ F: package/intel-mediasdk/
F: package/intel-microcode/
F: package/intel-vpl-gpu-rt/
F: package/jsoncpp/
F: package/jwt-cpp/
F: package/kodi*
F: package/lame/
F: package/lcms2/
@@ -1031,6 +1032,7 @@ F: package/bitcoin/
N: Fabrice Fontaine <fabrice.fontaine@orange.com>
F: package/domoticz/
F: package/jwt-cpp/
F: package/libmediaart/
F: package/libmaxminddb/
F: package/openzwave/

View File

@@ -1908,6 +1908,7 @@ menu "JSON/XML"
source "package/json-for-modern-cpp/Config.in"
source "package/json-glib/Config.in"
source "package/jsoncpp/Config.in"
source "package/jwt-cpp/Config.in"
source "package/libfastjson/Config.in"
source "package/libjson/Config.in"
source "package/libroxml/Config.in"

13
package/jwt-cpp/Config.in Normal file
View File

@@ -0,0 +1,13 @@
config BR2_PACKAGE_JWT_CPP
bool "jwt-cpp"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
select BR2_PACKAGE_OPENSSL
help
A header only library for creating and validating json web
tokens in c++
https://thalhammer.github.io/jwt-cpp/
comment "jwt-cpp needs a toolchain w/ C++, gcc >= 4.8"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8

View File

@@ -0,0 +1,4 @@
# From https://github.com/Thalhammer/jwt-cpp/releases/tag/v0.7.2
sha256 7c1b4f767bdd14f727f6114d9e35b761f10d00d6a27ef7650ee8c628f08df27c jwt-cpp-v0.7.2.tar.gz
# Locally calculated
sha256 35c2d7d6824a1e1ed2b266ec334b7862726ae593855c3cfa68b952bb75f082c4 LICENSE

View File

@@ -0,0 +1,18 @@
################################################################################
#
# jwt-cpp
#
################################################################################
JWT_CPP_VERSION = 0.7.2
JWT_CPP_SITE = https://github.com/Thalhammer/jwt-cpp/releases/download/v$(JWT_CPP_VERSION)
JWT_CPP_SOURCE = jwt-cpp-v$(JWT_CPP_VERSION).tar.gz
JWT_CPP_LICENSE = MIT
JWT_CPP_LICENSE_FILES = LICENSE
JWT_CPP_INSTALL_STAGING = YES
JWT_CPP_DEPENDENCIES = openssl
JWT_CPP_CONF_OPTS = \
-DJWT_BUILD_EXAMPLES=OFF \
-DJWT_BUILD_TESTS=OFF
$(eval $(cmake-package))