summaryrefslogtreecommitdiffstats
path: root/package/libbson
diff options
context:
space:
mode:
authorSemyon Kolganov <semenak94@mail.ru>2017-04-10 16:59:15 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-04-12 21:49:59 +0200
commitd5f821d2bd0445a5642d41991842168187b4039f (patch)
treefdb5e6ecefed9a0912e750595de9b8ca981efa94 /package/libbson
parent04d8d5961566f8ba80b16defdf1fc10542158537 (diff)
downloadbuildroot-d5f821d2bd0445a5642d41991842168187b4039f.tar.gz
buildroot-d5f821d2bd0445a5642d41991842168187b4039f.zip
libbson: new package
Signed-off-by: Semyon Kolganov <semenak94@mail.ru> [Arnout: remove _SOURCE, fix spelling in comment] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> [Thomas: add missing Config.in comment, and DEVELOPERS entry.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libbson')
-rw-r--r--package/libbson/Config.in9
-rw-r--r--package/libbson/libbson.hash2
-rw-r--r--package/libbson/libbson.mk21
3 files changed, 32 insertions, 0 deletions
diff --git a/package/libbson/Config.in b/package/libbson/Config.in
new file mode 100644
index 0000000000..4305ca9037
--- /dev/null
+++ b/package/libbson/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBBSON
+ bool "libbson"
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ help
+ libbson is a library providing useful routines related to
+ building, parsing, and iterating BSON documents.
+
+comment "libbson needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libbson/libbson.hash b/package/libbson/libbson.hash
new file mode 100644
index 0000000000..27abe90bfd
--- /dev/null
+++ b/package/libbson/libbson.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 aad410123e4bd8a9804c3c3d79e03344e2df104872594dc2cf19605d492944ba libbson-1.6.2.tar.gz
diff --git a/package/libbson/libbson.mk b/package/libbson/libbson.mk
new file mode 100644
index 0000000000..8a71fc394c
--- /dev/null
+++ b/package/libbson/libbson.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# libbson
+#
+################################################################################
+
+LIBBSON_VERSION = 1.6.2
+LIBBSON_SITE = https://github.com/mongodb/libbson/releases/download/$(LIBBSON_VERSION)
+LIBBSON_LICENSE = Apache-2.0, MIT (jsonl), ISC (b64), Zlib (md5)
+LIBBSON_LICENSE_FILES = COPYING THIRD_PARTY_NOTICES
+LIBBSON_CONF_OPTS = \
+ --disable-tests \
+ --disable-examples \
+ --disable-man-pages \
+ --disable-html-docs
+
+LIBBSON_INSTALL_STAGING = YES
+
+# Also has CMake support, but that forces shared+static libs and static
+# lib has a different name.
+$(eval $(autotools-package))
OpenPOWER on IntegriCloud