From patchwork Sun Dec 22 13:23:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilles Talis X-Patchwork-Id: 1214706 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.136; helo=silver.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="btfJ0Np9"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47gjq439b7z9sPc for ; Mon, 23 Dec 2019 00:23:28 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EA59B20494; Sun, 22 Dec 2019 13:23:26 +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 qTRLWoySFDgR; Sun, 22 Dec 2019 13:23:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id D174C20034; Sun, 22 Dec 2019 13:23:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 5ED4B1BF3C9 for ; Sun, 22 Dec 2019 13:23:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5BC3C85CB8 for ; Sun, 22 Dec 2019 13:23:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CTgJ1rqSFGyK for ; Sun, 22 Dec 2019 13:23:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 6453385CA3 for ; Sun, 22 Dec 2019 13:23:23 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id p17so13646925wmb.0 for ; Sun, 22 Dec 2019 05:23:23 -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; bh=bW2w2l349mKrARAnZBzDCmqxRszZ1PiB8Is+fB61m7A=; b=btfJ0Np9YMD+5W4EkUM5J7n35y/Z9+GR0+OkbKyuoaCGfzdc8dEJAU/Skm+5dPm0gH 7Jxjdd5a79czBQegrMoV1damCT4YgUHVfmMvgy6fcAwQD+WkpB/3Cbh/qsnQWfjqykH1 CtDroU+DRNZgA96pMLCI9lBWwFX1PyGnflCmi45QEP4OK7OpJeWd/UwTMuleIJd//MfM 3J1rYGNm7DNPO6qT/+StBzt5VnIJnEhS7WRFoDpoYFaasMGxyKiHTiZobixqLq0GTFVh qhs4pvO4llASACbNhnuHZfaE2eODTjBPiBVOFTxVhXBtant6qN5KkLirri2Hfn2MKp1C GpUQ== 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; bh=bW2w2l349mKrARAnZBzDCmqxRszZ1PiB8Is+fB61m7A=; b=ZoJJ0+x7p8374BozYdgWzV/bByAY5H2vyogvOkjsCdUpkwaNDklsI5uKioFw1A0Q4U gF5AetJSy/7G78M+YHpzTaDFRRK+ds+qcAEfxtqihT5T7g+lS/wDyMTWhet+N0IkhzXu nahoj0sSFXrJSuo0pnqv0OKFUOW8wFgwHWPi7/vtHQS8xlAaYvsmSUs7v76XgCWxpEnV SV2kOeY7b4V4BR9ztQjSTtCZXKcxe13tyWzTaVqWKcpC//8cGt2d0g7jVA8JsKXci47M TRj0Rktc0+G7XbMGl6cTNePVi3jNjWPa4pikfJ6Frp35ClbQTk+DwFOmjCWZxDKufEpB WTmw== X-Gm-Message-State: APjAAAXHt1Qqz/23GVTJ8BaptRv0OGy2KALwJAtnIyAIDHdVLgWpFv69 FvQJfepq++nWWhHtHtQFT4YBLZpT X-Google-Smtp-Source: APXvYqz5HMQzemwjVB55oGxLirsBz0y46CPQrTchnivKVLt4GjiT9URV9LrKi/+dTP7ie5MA5oDXfg== X-Received: by 2002:a7b:cc6a:: with SMTP id n10mr27814331wmj.170.1577021001599; Sun, 22 Dec 2019 05:23:21 -0800 (PST) Received: from gilles-Gazelle-Professional.home ([2a01:cb1d:b6:bd00:1dad:59f:445d:2515]) by smtp.gmail.com with ESMTPSA id d16sm18770491wrg.27.2019.12.22.05.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2019 05:23:20 -0800 (PST) From: Gilles Talis To: buildroot@buildroot.org Date: Sun, 22 Dec 2019 14:23:14 +0100 Message-Id: <20191222132314.15130-1-gilles.talis@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH] package/cctz: 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: Gilles Talis MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" CCTZ is a C++ library for translating between absolute and civil times using the rules of a time zone. Signed-off-by: Gilles Talis --- DEVELOPERS | 1 + package/Config.in | 1 + package/cctz/Config.in | 29 +++++++++++++++++++++++++++++ package/cctz/cctz.hash | 3 +++ package/cctz/cctz.mk | 27 +++++++++++++++++++++++++++ 5 files changed, 61 insertions(+) create mode 100644 package/cctz/Config.in create mode 100644 package/cctz/cctz.hash create mode 100644 package/cctz/cctz.mk diff --git a/DEVELOPERS b/DEVELOPERS index d2089e2672..57fcab3ea7 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -983,6 +983,7 @@ F: configs/qemu_* N: Gilles Talis F: board/freescale/imx8mmevk/ F: configs/freescale_imx8mmevk_defconfig +F: package/cctz/ F: package/fdk-aac/ F: package/httping/ F: package/iozone/ diff --git a/package/Config.in b/package/Config.in index 2bfec09702..3c8fc32dd9 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1728,6 +1728,7 @@ menu "Other" source "package/boost/Config.in" source "package/c-capnproto/Config.in" source "package/capnproto/Config.in" + source "package/cctz/Config.in" source "package/clang/Config.in" source "package/clapack/Config.in" source "package/classpath/Config.in" diff --git a/package/cctz/Config.in b/package/cctz/Config.in new file mode 100644 index 0000000000..73a0f9f7e7 --- /dev/null +++ b/package/cctz/Config.in @@ -0,0 +1,29 @@ +config BR2_PACKAGE_CCTZ + bool "cctz" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11 + select BR2_TARGET_TZ_INFO # runtime dependency + help + CCTZ is a C++ library for translating between absolute + and civil times using the rules of a time zone. + + https://github.com/google/cctz + +if BR2_PACKAGE_CCTZ + +config BR2_PACKAGE_CCTZ_INSTALL_TOOLS + bool "Install tools" + help + This option allows installing CCTZ tools. + +config BR2_PACKAGE_CCTZ_INSTALL_EXAMPLES + bool "Install example programs" + help + This option allows installing CCTZ example programs. + +endif + +comment "cctz needs a toolchain w/ C++, threads, gcc >= 4.8" + depends on !BR2_INSTALL_LIBSTDCPP || \ + !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 diff --git a/package/cctz/cctz.hash b/package/cctz/cctz.hash new file mode 100644 index 0000000000..fe8897c501 --- /dev/null +++ b/package/cctz/cctz.hash @@ -0,0 +1,3 @@ +# locally computed +sha256 8615b20d4e33e02a271c3b93a3b208e3d7d5d66880f5f6208b03426e448f32db cctz-2.3.tar.gz +sha256 c79a7fea0e3cac04cd43f20e7b648e5a0ff8fa5344e644b0ee09ca1162b62747 LICENSE.txt diff --git a/package/cctz/cctz.mk b/package/cctz/cctz.mk new file mode 100644 index 0000000000..bcc80bad47 --- /dev/null +++ b/package/cctz/cctz.mk @@ -0,0 +1,27 @@ +################################################################################ +# +# cctz +# +################################################################################ + +CCTZ_VERSION = 2.3 +CCTZ_SITE = $(call github,google,cctz,v$(CCTZ_VERSION)) +CCTZ_LICENSE = Apache-2.0 +CCTZ_LICENSE_FILES = LICENSE.txt +CCTZ_INSTALL_STAGING = YES + +CCTZ_CONF_OPTS = -DBUILD_TESTING=OFF + +ifeq ($(BR2_PACKAGE_CCTZ_INSTALL_TOOLS),y) +CCTZ_CONF_OPTS += -DBUILD_TOOLS=ON +else +CCTZ_CONF_OPTS += -DBUILD_TOOLS=OFF +endif + +ifeq ($(BR2_PACKAGE_CCTZ_INSTALL_EXAMPLES),y) +CCTZ_CONF_OPTS += -DBUILD_EXAMPLES=ON +else +CCTZ_CONF_OPTS += -DBUILD_EXAMPLES=OFF +endif + +$(eval $(cmake-package))