From d5bba26801b352f591451cf73e0b7509de0e6850 Mon Sep 17 00:00:00 2001 From: Alessandro Partesotti Date: Sun, 29 Jan 2023 23:50:01 +0100 Subject: [PATCH] package/oatpp: new package Upstream suggests to use it as a static library only, so follow that principle. Signed-off-by: Alessandro Partesotti [Arnout: - keep DEVELOPERS alphabetical; - use oatpp for the prompt; - add threads to the toolchain dependencies comment; - move comment after the main prompt; - rewrap the help text; - empty line before upstream URL; - hash comment Locally calulated instead of pointing to upstream tarball URL; - change hash to sha256; - add hash for license file; - reorder variables in .mk file; - use _CONF_OPTS instead of invalid _CMAKE_OPTS. ] Signed-off-by: Arnout Vandecappelle --- DEVELOPERS | 3 +++ package/Config.in | 1 + package/oatpp/Config.in | 13 +++++++++++++ package/oatpp/oatpp.hash | 3 +++ package/oatpp/oatpp.mk | 16 ++++++++++++++++ 5 files changed, 36 insertions(+) create mode 100644 package/oatpp/Config.in create mode 100644 package/oatpp/oatpp.hash create mode 100644 package/oatpp/oatpp.mk diff --git a/DEVELOPERS b/DEVELOPERS index d096ab0449..ac277423a1 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -71,6 +71,9 @@ F: package/libmbim/ F: package/libqmi/ F: package/modem-manager/ +N: Alessandro Partesotti +F: package/oatpp/ + N: Alex Michel F: package/libzenoh-pico/ F: package/network-manager-openvpn/ diff --git a/package/Config.in b/package/Config.in index a0d5339b0a..cd687a682b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2009,6 +2009,7 @@ menu "Networking" source "package/nss-mdns/Config.in" source "package/nss-myhostname/Config.in" source "package/nss-pam-ldapd/Config.in" + source "package/oatpp/Config.in" source "package/omniorb/Config.in" source "package/open-isns/Config.in" source "package/open62541/Config.in" diff --git a/package/oatpp/Config.in b/package/oatpp/Config.in new file mode 100644 index 0000000000..a4009e8744 --- /dev/null +++ b/package/oatpp/Config.in @@ -0,0 +1,13 @@ +config BR2_PACKAGE_OATPP + bool "oatpp" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS + help + Oat++ is an open-source C++ web framework for highly scalable + and resource-efficient web applications. It provides all the + necessary components for production-grade development. + + https://oatpp.io/docs/start + +comment "oatpp needs a toolchain w/ C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/oatpp/oatpp.hash b/package/oatpp/oatpp.hash new file mode 100644 index 0000000000..e6b35d8d51 --- /dev/null +++ b/package/oatpp/oatpp.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 e1f80fa8fd7a74da6737e7fee1a4db68b4d7085a3f40e7d550752d6ff5714583 oatpp-1.3.0.tar.gz +sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE diff --git a/package/oatpp/oatpp.mk b/package/oatpp/oatpp.mk new file mode 100644 index 0000000000..621a549023 --- /dev/null +++ b/package/oatpp/oatpp.mk @@ -0,0 +1,16 @@ +################################################################################ +# +# oatpp +# +################################################################################ + +OATPP_VERSION = 1.3.0 +OATPP_SITE = $(call github,oatpp,oatpp,$(OATPP_VERSION)) +OATPP_LICENSE = Apache-2.0 +OATPP_LICENSE_FILES = LICENSE +OATPP_CONF_OPTS = -DBUILD_SHARED_LIBS=OFF +OATPP_INSTALL_STAGING = YES +# Only builds a static lib and headers +OATPP_INSTALL_TARGET = NO + +$(eval $(cmake-package))