From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 15 May 2023 09:21:22 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pySWJ-001UXZ-Sg for lore@lore.pengutronix.de; Mon, 15 May 2023 09:21:22 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pySWH-000331-OA; Mon, 15 May 2023 09:21:21 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pySVu-0002li-4q; Mon, 15 May 2023 09:20:58 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pySVt-000J0H-HP; Mon, 15 May 2023 09:20:57 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pySVs-008NZy-3s; Mon, 15 May 2023 09:20:56 +0200 From: Roland Hieber To: ptxdist@pengutronix.de Date: Mon, 15 May 2023 09:20:48 +0200 Message-Id: <20230515072054.1997217-2-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230515072054.1997217-1-rhi@pengutronix.de> References: <20230515072054.1997217-1-rhi@pengutronix.de> MIME-Version: 1.0 Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH 2/8] libbson: new package: routines related to BSON documents X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Roland Hieber --- rules/host-libbson.in | 6 +++ rules/host-libbson.make | 33 +++++++++++++++ rules/libbson.in | 9 +++++ rules/libbson.make | 90 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 138 insertions(+) create mode 100644 rules/host-libbson.in create mode 100644 rules/host-libbson.make create mode 100644 rules/libbson.in create mode 100644 rules/libbson.make diff --git a/rules/host-libbson.in b/rules/host-libbson.in new file mode 100644 index 000000000000..23eef8540091 --- /dev/null +++ b/rules/host-libbson.in @@ -0,0 +1,6 @@ +## SECTION=hosttools_noprompt + +config HOST_LIBBSON + tristate + default y if ALLYES + select HOST_CMAKE diff --git a/rules/host-libbson.make b/rules/host-libbson.make new file mode 100644 index 000000000000..b68ee64362fe --- /dev/null +++ b/rules/host-libbson.make @@ -0,0 +1,33 @@ +# -*-makefile-*- +# +# Copyright (C) 2023 by Roland Hieber +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +HOST_PACKAGES-$(PTXCONF_HOST_LIBBSON) += host-libbson + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# cmake +# +HOST_LIBBSON_CONF_TOOL := cmake +HOST_LIBBSON_CONF_OPT := \ + $(HOST_CMAKE_OPT) \ + -DENABLE_BSON=ON \ + -DENABLE_COVERAGE=OFF \ + -DENABLE_HTML_DOCS=OFF \ + -DENABLE_ICU=OFF \ + -DENABLE_MONGOC=OFF \ + -DENABLE_SASL=OFF \ + -DENABLE_ZLIB=OFF \ + -DENABLE_ZSTD=OFF + +# vim: syntax=make diff --git a/rules/libbson.in b/rules/libbson.in new file mode 100644 index 000000000000..58649ec64863 --- /dev/null +++ b/rules/libbson.in @@ -0,0 +1,9 @@ +## SECTION=system_libraries + +config LIBBSON + tristate + select HOST_CMAKE + select GLIBC_RT + prompt "libbson" + help + Routines related to building, parsing, and iterating BSON documents diff --git a/rules/libbson.make b/rules/libbson.make new file mode 100644 index 000000000000..af0eb8a13401 --- /dev/null +++ b/rules/libbson.make @@ -0,0 +1,90 @@ +# -*-makefile-*- +# +# Copyright (C) 2023 by Roland Hieber +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBBSON) += libbson + +# +# Paths and names +# +LIBBSON_VERSION := 1.23.4 +LIBBSON_MD5 := 28f2f253777e8d80839c41239de44188 +LIBBSON := libbson-$(LIBBSON_VERSION) +LIBBSON_SUFFIX := tar.gz +LIBBSON_URL := https://github.com/mongodb/mongo-c-driver/releases/download/$(LIBBSON_VERSION)/mongo-c-driver-$(LIBBSON_VERSION).$(LIBBSON_SUFFIX) +LIBBSON_SOURCE := $(SRCDIR)/$(LIBBSON).$(LIBBSON_SUFFIX) +LIBBSON_DIR := $(BUILDDIR)/$(LIBBSON) +#LIBBSON_SUBDIR := src/libbson +LIBBSON_LICENSE := Apache-2.0 AND MIT +LIBBSON_LICENSE_FILES := \ + file://src/libbson/src/bson/bson.c;endline=15;md5=24960268974cd1c54441e1999c9b5d38 \ + file://COPYING;md5=2ee41112a44fe7014dce33e26468ba93 \ + file://src/libbson/THIRD_PARTY_NOTICES;md5=7c6dab59ecb788b1bfe8a307e54c203a + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# cmake +# +LIBBSON_CONF_TOOL := cmake +LIBBSON_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -DBSON_OUTPUT_BASENAME=bson \ + -DENABLE_APPLE_FRAMEWORK=OFF \ + -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=ON \ + -DENABLE_BSON=ON \ + -DENABLE_CLIENT_SIDE_ENCRYPTION=OFF \ + -DENABLE_COVERAGE=OFF \ + -DENABLE_CRYPTO_SYSTEM_PROFILE=OFF \ + -DENABLE_DEBUG_ASSERTIONS=OFF \ + -DENABLE_EXAMPLES=OFF \ + -DENABLE_EXTRA_ALIGNMENT=ON \ + -DENABLE_HTML_DOCS=OFF \ + -DENABLE_ICU=OFF \ + -DENABLE_MAINTAINER_FLAGS=OFF \ + -DENABLE_MAN_PAGES=OFF \ + -DENABLE_MONGOC=OFF \ + -DENABLE_MONGODB_AWS_AUTH=AUTO \ + -DENABLE_PIC=ON \ + -DENABLE_RDTSCP=OFF \ + -DENABLE_SASL=OFF \ + -DENABLE_SHM_COUNTERS=ON \ + -DENABLE_SNAPPY=OFF \ + -DENABLE_SRV=OFF \ + -DENABLE_SSL=OFF \ + -DENABLE_STATIC=OFF \ + -DENABLE_TESTS=OFF \ + -DENABLE_TRACING=OFF \ + -DENABLE_UNINSTALL=ON \ + -DENABLE_ZLIB=OFF \ + -DENABLE_ZSTD=OFF + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libbson.targetinstall: + @$(call targetinfo) + + @$(call install_init, libbson) + @$(call install_fixup, libbson,PRIORITY,optional) + @$(call install_fixup, libbson,SECTION,base) + @$(call install_fixup, libbson,AUTHOR,"Roland Hieber ") + @$(call install_fixup, libbson,DESCRIPTION,missing) + + @$(call install_lib, libbson, 0, 0, 0755, libbson-1.0) + + @$(call install_finish, libbson) + + @$(call touch) + +# vim: syntax=make -- 2.39.2