From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH v2 2/7] libbson: new package: routines related to BSON documents
Date: Thu, 25 May 2023 00:34:08 +0200 [thread overview]
Message-ID: <20230524223413.1079888-2-rhi@pengutronix.de> (raw)
In-Reply-To: <20230524223413.1079888-1-rhi@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
PATCH v2:
- add configure options for host package too
- merge fixup patch removing commented LIBBSON_SUBDIR line
PATCH v1: https://lore.ptxdist.org/ptxdist/20230515072054.1997217-2-rhi@pengutronix.de
---
rules/host-libbson.in | 6 +++
rules/host-libbson.make | 54 +++++++++++++++++++++++++
rules/libbson.in | 9 +++++
rules/libbson.make | 89 +++++++++++++++++++++++++++++++++++++++++
4 files changed, 158 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..046495d8dd48
--- /dev/null
+++ b/rules/host-libbson.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2023 by Roland Hieber <rhi@pengutronix.de>
+#
+# 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) \
+ -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
+
+# 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..bd1d65596727
--- /dev/null
+++ b/rules/libbson.make
@@ -0,0 +1,89 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2023 by Roland Hieber <rhi@pengutronix.de>
+#
+# 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_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 <rhi@pengutronix.de>")
+ @$(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
next prev parent reply other threads:[~2023-05-24 22:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-24 22:34 [ptxdist] [PATCH v2 1/7] cpputest: new package: C++ unit test framework Roland Hieber
2023-05-24 22:34 ` Roland Hieber [this message]
2023-06-02 7:17 ` [ptxdist] [APPLIED] libbson: new package: routines related to BSON documents Michael Olbrich
2023-05-24 22:34 ` [ptxdist] [PATCH v2 3/7] libconfig: correct license and pin down license files Roland Hieber
2023-06-02 7:17 ` [ptxdist] [APPLIED] " Michael Olbrich
2023-05-24 22:34 ` [ptxdist] [PATCH v2 4/7] libevent: amend license and pin down license file Roland Hieber
2023-06-02 7:17 ` [ptxdist] [APPLIED] " Michael Olbrich
2023-05-24 22:34 ` [ptxdist] [PATCH v2 5/7] htmldoc: new package: HTML-to-PDF/PostScript/EPUB converter Roland Hieber
2023-06-02 7:17 ` [ptxdist] [APPLIED] " Michael Olbrich
2023-05-24 22:34 ` [ptxdist] [PATCH v2 6/7] host-libconfig: add host package Roland Hieber
2023-06-02 7:17 ` [ptxdist] [APPLIED] " Michael Olbrich
2023-05-24 22:34 ` [ptxdist] [PATCH v2 7/7] host-libevent: " Roland Hieber
2023-06-02 7:17 ` [ptxdist] [APPLIED] " Michael Olbrich
2023-06-02 7:17 ` [ptxdist] [APPLIED] cpputest: new package: C++ unit test framework Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230524223413.1079888-2-rhi@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox