From patchwork Fri Dec 20 14:48:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas De Schampheleire X-Patchwork-Id: 1214170 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ey4Js9nb"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47fWjX54vbz9sPJ for ; Sat, 21 Dec 2019 01:44:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 87BB7880C4; Fri, 20 Dec 2019 14:44:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9JviMufjQpLw; Fri, 20 Dec 2019 14:44:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 436348803B; Fri, 20 Dec 2019 14:44:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 033051BF384 for ; Fri, 20 Dec 2019 14:44:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id F32F62041B for ; Fri, 20 Dec 2019 14:44:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fTQLWIKKBLgY for ; Fri, 20 Dec 2019 14:44:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by silver.osuosl.org (Postfix) with ESMTPS id B2B8F20394 for ; Fri, 20 Dec 2019 14:44:18 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id u2so9482541wmc.3 for ; Fri, 20 Dec 2019 06:44:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=txZ+LWpg+iqKN9zBX+IdEgXjnumhm1HY7+t8ychfcY4=; b=ey4Js9nb8fnzo717TsLWRhaNHNvuFXn4dCnjEzmlgsCibu9dYNG9PeugEuDio4/xZ9 W7i4HhWXvGKOaaK1RyjxcbAZN0iC7ZqgNyefCp8J8ptTZy5YV8XYHRjLfLiCD92HdtIV Ck7yEy2rZaezMPAUVdQrVdy+lNxJSFfuuqQlW+K93xKkVQAW3blKWNvF3MPC4QeKDGeT rp7XC1xaf8adbNDfnQl5o45ZcSKgT/x8pamBCzvYhEV3wAcfzqm2sqEeVy1Frkn7NPuA CTVLqIl0jqcF4cnkKxJlOeJ6+4LnpG7FJy2VGySl0OzpBksRVPztra79gE698+pDfN12 1gaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=txZ+LWpg+iqKN9zBX+IdEgXjnumhm1HY7+t8ychfcY4=; b=X/iw85sepN4qf0oM2HzG6pp15WFBf2HK0gO18prK6JkFqnCATjoDFqKLHn8PlkP3+5 4nRY8RQM/PxuDj5CURZogGz+OMmpyQSuPEOm2jGDkAopWR58AhBcQu5Vg4In1rS4eLl6 LjlqCwZ5NJ9sauzsZlcPQ/RaWeB1brM3MhjzeQI3WEF+8CscYCO5RySsMwC8Lr3shKAj fvVE6X0+XonEqKcTBlPedC0TmPLcLOucHD9Y20LdzlyYVnTw2cfvgfpUXdkDsrw4Dlnr amqsGJz8N68uawc3Kkv+K6dirYPEhR0uyvj5okNwWCom9hlH1XBSUjXmoG5bqdWLhSag d/Eg== X-Gm-Message-State: APjAAAX8z/3NIyrd+BdNJOguFoZ1WTenbTtR1p1xWrCVdXyvk8JsvOHj pZL2FoTbp3HIczy18x89UFlVfR1xmZk= X-Google-Smtp-Source: APXvYqyjEZh0InjvR/RM+4Mu4ISn0bHOI1WiAxMJtipL3L6j6yh0du9OsH4HlJ0FDQSL8rIhBePJkg== X-Received: by 2002:a7b:c5d8:: with SMTP id n24mr16340512wmk.124.1576853056689; Fri, 20 Dec 2019 06:44:16 -0800 (PST) Received: from localhost ([131.228.32.167]) by smtp.gmail.com with ESMTPSA id i11sm10064041wrs.10.2019.12.20.06.44.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 06:44:15 -0800 (PST) From: Thomas De Schampheleire To: buildroot@buildroot.org Date: Fri, 20 Dec 2019 15:48:04 +0100 Message-Id: <20191220144804.28307-1-patrickdepinguin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/cereal: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas De Schampheleire Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Thomas De Schampheleire Signed-off-by: Thomas De Schampheleire --- DEVELOPERS | 1 + package/Config.in | 1 + package/cereal/Config.in | 20 ++++++++++++++++++++ package/cereal/cereal.hash | 3 +++ package/cereal/cereal.mk | 17 +++++++++++++++++ 5 files changed, 42 insertions(+) create mode 100644 package/cereal/Config.in create mode 100644 package/cereal/cereal.hash create mode 100644 package/cereal/cereal.mk NOTE: cereal is bundling external packages like rapidjson and rapidxml. The LICENSE file only declares the license for cereal. I opened an issue for that [1], not sure what you want to do meanwhile in CEREAL_LICENSE. [1] https://github.com/USCiLab/cereal/issues/609 diff --git a/DEVELOPERS b/DEVELOPERS index d9b4864b9f..a48af96961 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2325,6 +2325,7 @@ F: package/civetweb/ N: Thomas De Schampheleire F: docs/manual/ +F: package/cereal/ F: package/opkg-utils/ F: package/perl-convert-asn1/ F: package/perl-crypt-blowfish/ diff --git a/package/Config.in b/package/Config.in index f304a8fbd3..5fb969da8a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1721,6 +1721,7 @@ menu "Other" source "package/boost/Config.in" source "package/c-capnproto/Config.in" source "package/capnproto/Config.in" + source "package/cereal/Config.in" source "package/clang/Config.in" source "package/clapack/Config.in" source "package/classpath/Config.in" diff --git a/package/cereal/Config.in b/package/cereal/Config.in new file mode 100644 index 0000000000..3ac463c4fc --- /dev/null +++ b/package/cereal/Config.in @@ -0,0 +1,20 @@ +config BR2_PACKAGE_CEREAL + bool "cereal" + depends on BR2_USE_WCHAR + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11 + help + cereal is a header-only C++11 serialization library. + cereal takes arbitrary data types and reversibly turns them + into different representations, such as compact binary + encodings, XML or JSON. cereal was designed to be fast, + light-weight, and easy to extend - it has no external + dependencies and can be easily bundled with other code or used + standalone. + + https://github.com/USCiLab/cereal + +comment "cereal needs a toolchain w/ C++, gcc >= 4.7, threads, wchar" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 diff --git a/package/cereal/cereal.hash b/package/cereal/cereal.hash new file mode 100644 index 0000000000..0dd598ff12 --- /dev/null +++ b/package/cereal/cereal.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 329ea3e3130b026c03a4acc50e168e7daff4e6e661bc6a7dfec0d77b570851d5 cereal-1.3.0.tar.gz +sha256 18fd7618c44c9fe28b5f54cd19747df3c0472ed33e8507fea571e2acf6e72f34 LICENSE diff --git a/package/cereal/cereal.mk b/package/cereal/cereal.mk new file mode 100644 index 0000000000..991eee76a2 --- /dev/null +++ b/package/cereal/cereal.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# cereal +# +################################################################################ + +CEREAL_VERSION = 1.3.0 +CEREAL_SITE = $(call github,USCiLab,cereal,v$(CEREAL_VERSION)) +CEREAL_LICENSE = BSD-3-Clause +CEREAL_LICENSE_FILES = LICENSE +CEREAL_INSTALL_STAGING = YES +CEREAL_INSTALL_TARGET = NO +CEREAL_CONF_OPTS = \ + -DTHREAD_SAFE=ON \ + -DJUST_INSTALL_CEREAL=ON + +$(eval $(cmake-package))