2
1
Эх сурвалжийг харах

package/msgpack-c: add new package

MessagePack ships both in a C++ and a C variant. Add the latter to
Buildroot. This will be used by fluent-bit.

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
[Julien:
 - switch homepage URL to use https
 - add a note in package/msgpack{,-c}/Config.in to clarify C/C++
   variants
]
Signed-off-by: Julien Olivain <ju.o@free.fr>
Thomas Devoogdt 2 сар өмнө
parent
commit
110cd92932

+ 1 - 0
package/Config.in

@@ -2305,6 +2305,7 @@ endif
 	source "package/mpfr/Config.in"
 	source "package/mpir/Config.in"
 	source "package/msgpack/Config.in"
+	source "package/msgpack-c/Config.in"
 	source "package/musl-compat-headers/Config.in"
 	source "package/musl-fts/Config.in"
 	source "package/neon-2-sse/Config.in"

+ 12 - 0
package/msgpack-c/Config.in

@@ -0,0 +1,12 @@
+config BR2_PACKAGE_MSGPACK_C
+	bool "msgpack-c"
+	help
+	  MessagePack is an efficient binary serialization format.
+
+	  It lets you exchange data among multiple languages like JSON
+	  but it's faster and smaller.
+
+	  Note: this package is the C variant of msgpack-c. For the
+	  C++ variant, use the "msgpack" Buildroot package.
+
+	  https://msgpack.org/

+ 4 - 0
package/msgpack-c/msgpack-c.hash

@@ -0,0 +1,4 @@
+# Locally computed:
+sha256  c23c4070dbe01f46044bf70c5349f29453d655935b6dc710714c008bca0825a7  msgpack-c-6.1.0.tar.gz
+sha256  664550b43996452a5a2c7471bb0ff77185a58c69ccafa60f983dc4c162e1ee22  COPYING
+sha256  c9bff75738922193e67fa726fa225535870d2aa1059f91452c411736284ad566  LICENSE_1_0.txt

+ 18 - 0
package/msgpack-c/msgpack-c.mk

@@ -0,0 +1,18 @@
+################################################################################
+#
+# msgpack-c
+#
+################################################################################
+
+MSGPACK_C_VERSION = 6.1.0
+MSGPACK_C_SITE = $(call github,msgpack,msgpack-c,c-$(MSGPACK_C_VERSION))
+MSGPACK_C_LICENSE = BSL-1.0
+MSGPACK_C_LICENSE_FILES = COPYING LICENSE_1_0.txt
+MSGPACK_C_INSTALL_STAGING = YES
+MSGPACK_C_CONF_OPTS = -DMSGPACK_BUILD_EXAMPLES=OFF -DMSGPACK_BUILD_TESTS=OFF
+
+ifeq ($(BR2_STATIC_LIBS),y)
+MSGPACK_C_CONF_OPTS += -DMSGPACK_ENABLE_SHARED=OFF
+endif
+
+$(eval $(cmake-package))

+ 3 - 0
package/msgpack/Config.in

@@ -8,6 +8,9 @@ config BR2_PACKAGE_MSGPACK
 	  It lets you exchange data among multiple languages like JSON
 	  but it's faster and smaller.
 
+	  Note: this package is the C++ variant of msgpack. For the
+	  C variant, use the "msgpack-c" Buildroot package.
+
 	  http://msgpack.org/
 
 comment "msgpack needs a toolchain w/ C++"