diff --git a/DEVELOPERS b/DEVELOPERS index 228311beeb..af596a3847 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3360,6 +3360,7 @@ F: configs/nvidia_bf3_defconfig F: package/bfscripts/ F: package/dpdk/ F: package/libecoli/ +F: package/libyang-cpp/ N: Vincent Prince F: package/nss-myhostname/ diff --git a/package/Config.in b/package/Config.in index 499c59a52e..a663869f6d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2106,6 +2106,7 @@ menu "Networking" source "package/libvncserver/Config.in" source "package/libwebsockets/Config.in" source "package/libyang/Config.in" + source "package/libyang-cpp/Config.in" source "package/libzenoh-c/Config.in" source "package/libzenoh-pico/Config.in" source "package/lksctp-tools/Config.in" diff --git a/package/libyang-cpp/Config.in b/package/libyang-cpp/Config.in new file mode 100644 index 0000000000..87b31ea713 --- /dev/null +++ b/package/libyang-cpp/Config.in @@ -0,0 +1,20 @@ +config BR2_PACKAGE_LIBYANG_CPP + bool "libyang-cpp" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_10 + depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libyang + depends on BR2_TOOLCHAIN_HAS_THREADS # libyang + depends on !BR2_STATIC_LIBS # libyang + select BR2_PACKAGE_LIBYANG + help + C++ bindings for the libyang library (v4). + + libyang-cpp implements modern C++ RAII wrappers around the + libyang C API, used by sysrepo, Kea + NETCONF, etc. + + https://github.com/CESNET/libyang-cpp + +comment "libyang-cpp needs a toolchain w/ threads, dynamic library, C++, gcc >= 10" + depends on BR2_TOOLCHAIN_HAS_SYNC_4 + depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \ + !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_10 diff --git a/package/libyang-cpp/libyang-cpp.hash b/package/libyang-cpp/libyang-cpp.hash new file mode 100644 index 0000000000..cf4dc8085d --- /dev/null +++ b/package/libyang-cpp/libyang-cpp.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 70fd0df940026fb930d5407abe679e064caf4701bff35d79465b9ad2c0915808 libyang-cpp-4.tar.gz +sha256 82e3758011ec44c78e98d0777799d6e12aec5b8a64b32ebb20d0fe50e32488bb LICENSE diff --git a/package/libyang-cpp/libyang-cpp.mk b/package/libyang-cpp/libyang-cpp.mk new file mode 100644 index 0000000000..5dff240305 --- /dev/null +++ b/package/libyang-cpp/libyang-cpp.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# libyang-cpp +# +################################################################################ + +LIBYANG_CPP_VERSION = 4 +LIBYANG_CPP_SITE = $(call github,CESNET,libyang-cpp,v$(LIBYANG_CPP_VERSION)) +LIBYANG_CPP_LICENSE = BSD-3-Clause +LIBYANG_CPP_LICENSE_FILES = LICENSE +LIBYANG_CPP_INSTALL_STAGING = YES +LIBYANG_CPP_SUPPORTS_IN_SOURCE_BUILD = NO +LIBYANG_CPP_DEPENDENCIES = libyang + +LIBYANG_CPP_CONF_OPTS = -DWITH_DOCS=OFF + +$(eval $(cmake-package))