summaryrefslogtreecommitdiff
path: root/devel/jwt-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/jwt-cpp')
-rw-r--r--devel/jwt-cpp/Makefile27
-rw-r--r--devel/jwt-cpp/distinfo3
-rw-r--r--devel/jwt-cpp/files/patch-CMakeLists.txt11
-rw-r--r--devel/jwt-cpp/files/patch-include_jwt-cpp_jwt.h11
-rw-r--r--devel/jwt-cpp/files/patch-include_jwt-cpp_traits_kazuho-picojson_traits.h11
-rw-r--r--devel/jwt-cpp/pkg-descr5
-rw-r--r--devel/jwt-cpp/pkg-plist16
7 files changed, 84 insertions, 0 deletions
diff --git a/devel/jwt-cpp/Makefile b/devel/jwt-cpp/Makefile
new file mode 100644
index 000000000000..edb98c663344
--- /dev/null
+++ b/devel/jwt-cpp/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= jwt-cpp
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.7.1
+PORTREVISION= 2
+CATEGORIES= devel
+MASTER_SITES= https://github.com/Thalhammer/jwt-cpp/releases/download/${DISTVERSIONFULL}/
+
+MAINTAINER= kiwi@FreeBSD.org
+COMMENT= Header only library for creating and validating JSON web tokens in C++
+WWW= https://thalhammer.github.io/jwt-cpp/
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${LOCALBASE}/include/picojson.h:devel/picojson
+RUN_DEPENDS= ${LOCALBASE}/include/picojson.h:devel/picojson
+
+USES= cmake pkgconfig:both
+
+CMAKE_ARGS= -DJWT_CMAKE_FILES_INSTALL_DIR:STRING="lib/cmake/${PORTNAME}"
+CMAKE_ON= DISABLE_JWP_CPP_PICOJSON \
+ JWT_DISABLE_PICOJSON \
+ JWT_EXTERNAL_PICOJSON
+CMAKE_OFF= JWT_BUILD_EXAMPLES
+
+NO_WRKSUBDIR= yes
+.include <bsd.port.mk>
diff --git a/devel/jwt-cpp/distinfo b/devel/jwt-cpp/distinfo
new file mode 100644
index 000000000000..ab682877fda6
--- /dev/null
+++ b/devel/jwt-cpp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1748508874
+SHA256 (jwt-cpp-v0.7.1.tar.gz) = d45894f57437ce45233cfe0e07383c4e1f32f969edfd8df8347e177b13bf74e5
+SIZE (jwt-cpp-v0.7.1.tar.gz) = 159645
diff --git a/devel/jwt-cpp/files/patch-CMakeLists.txt b/devel/jwt-cpp/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..d954df695994
--- /dev/null
+++ b/devel/jwt-cpp/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig 2025-09-15 06:53:07 UTC
++++ CMakeLists.txt
+@@ -132,7 +132,7 @@ if(NOT JWT_DISABLE_PICOJSON AND JWT_EXTERNAL_PICOJSON)
+ endif()
+
+ if(NOT JWT_DISABLE_PICOJSON AND JWT_EXTERNAL_PICOJSON)
+- target_link_libraries(jwt-cpp INTERFACE picojson::picojson>)
++ target_link_libraries(jwt-cpp INTERFACE picojson::picojson)
+ endif()
+
+ # Hunter needs relative paths so the files are placed correctly
diff --git a/devel/jwt-cpp/files/patch-include_jwt-cpp_jwt.h b/devel/jwt-cpp/files/patch-include_jwt-cpp_jwt.h
new file mode 100644
index 000000000000..45c61649b98e
--- /dev/null
+++ b/devel/jwt-cpp/files/patch-include_jwt-cpp_jwt.h
@@ -0,0 +1,11 @@
+--- include/jwt-cpp/jwt.h.orig 2025-09-15 07:23:21 UTC
++++ include/jwt-cpp/jwt.h
+@@ -5,7 +5,7 @@
+ #ifndef PICOJSON_USE_INT64
+ #define PICOJSON_USE_INT64
+ #endif
+-#include "picojson/picojson.h"
++#include "picojson.h"
+ #endif
+
+ #ifndef JWT_DISABLE_BASE64
diff --git a/devel/jwt-cpp/files/patch-include_jwt-cpp_traits_kazuho-picojson_traits.h b/devel/jwt-cpp/files/patch-include_jwt-cpp_traits_kazuho-picojson_traits.h
new file mode 100644
index 000000000000..0965c3a7ed8b
--- /dev/null
+++ b/devel/jwt-cpp/files/patch-include_jwt-cpp_traits_kazuho-picojson_traits.h
@@ -0,0 +1,11 @@
+--- include/jwt-cpp/traits/kazuho-picojson/traits.h.orig 2025-09-15 07:42:35 UTC
++++ include/jwt-cpp/traits/kazuho-picojson/traits.h
+@@ -4,7 +4,7 @@
+ #ifndef PICOJSON_USE_INT64
+ #define PICOJSON_USE_INT64
+ #endif
+-#include "picojson/picojson.h"
++#include "picojson.h"
+
+ #ifndef JWT_DISABLE_PICOJSON
+ #define JWT_DISABLE_PICOJSON
diff --git a/devel/jwt-cpp/pkg-descr b/devel/jwt-cpp/pkg-descr
new file mode 100644
index 000000000000..e84769cf0c26
--- /dev/null
+++ b/devel/jwt-cpp/pkg-descr
@@ -0,0 +1,5 @@
+A header only library for creating and validating JSON web tokens in C++.
+
+The objective is to deliver a versatile and universally applicable collection
+of algorithms, classes, and data structures, fostering adaptability and
+seamless integration with other libraries that you may already be employing.
diff --git a/devel/jwt-cpp/pkg-plist b/devel/jwt-cpp/pkg-plist
new file mode 100644
index 000000000000..8261bd63aaa1
--- /dev/null
+++ b/devel/jwt-cpp/pkg-plist
@@ -0,0 +1,16 @@
+include/jwt-cpp/base.h
+include/jwt-cpp/jwt.h
+include/jwt-cpp/traits/boost-json/defaults.h
+include/jwt-cpp/traits/boost-json/traits.h
+include/jwt-cpp/traits/danielaparker-jsoncons/defaults.h
+include/jwt-cpp/traits/danielaparker-jsoncons/traits.h
+include/jwt-cpp/traits/defaults.h.mustache
+include/jwt-cpp/traits/kazuho-picojson/defaults.h
+include/jwt-cpp/traits/kazuho-picojson/traits.h
+include/jwt-cpp/traits/nlohmann-json/defaults.h
+include/jwt-cpp/traits/nlohmann-json/traits.h
+include/jwt-cpp/traits/open-source-parsers-jsoncpp/defaults.h
+include/jwt-cpp/traits/open-source-parsers-jsoncpp/traits.h
+lib/cmake/jwt-cpp/jwt-cpp-config-version.cmake
+lib/cmake/jwt-cpp/jwt-cpp-config.cmake
+lib/cmake/jwt-cpp/jwt-cpp-targets.cmake