wampcc: new package
authorSven Neumann <neumann@teufel.de>
Thu, 28 Jun 2018 13:50:08 +0000 (15:50 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 28 Jun 2018 19:28:58 +0000 (21:28 +0200)
Signed-off-by: Sven Neumann <neumann@teufel.de>
[Thomas:
 - add entry to DEVELOPERS file
 - add missing dependency on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
 - rework comments on the dependencies]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/wampcc/Config.in [new file with mode: 0644]
package/wampcc/wampcc.hash [new file with mode: 0644]
package/wampcc/wampcc.mk [new file with mode: 0644]

index c52a57c507af1c271cc679f06561d4e6bc5cda7b..d26c53b2dee39a830fe428d0d279e87c0c58bcb1 100644 (file)
@@ -1883,6 +1883,7 @@ F:        package/python-influxdb/
 
 N:     Sven Neumann <neumann@teufel.de>
 F:     package/gstreamer1/gst1-libav/
+F:     package/wampcc/
 
 N:     Sven Neumann <s.neumann@raumfeld.com>
 F:     package/glib-networking/
index a012d2c8099b0d3576311e731fe9c9ddda7fd7cb..f72670c4e58a1442043f12407daf512c68463995 100644 (file)
@@ -1487,6 +1487,7 @@ menu "Networking"
        source "package/sofia-sip/Config.in"
        source "package/thrift/Config.in"
        source "package/usbredir/Config.in"
+       source "package/wampcc/Config.in"
        source "package/zeromq/Config.in"
        source "package/zmqpp/Config.in"
        source "package/zyre/Config.in"
diff --git a/package/wampcc/Config.in b/package/wampcc/Config.in
new file mode 100644 (file)
index 0000000..d9d82df
--- /dev/null
@@ -0,0 +1,25 @@
+config BR2_PACKAGE_WAMPCC
+       bool "wampcc"
+       depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
+       depends on BR2_USE_MMU # libuv
+       depends on !BR2_STATIC_LIBS # libuv
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
+       depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
+       select BR2_PACKAGE_LIBUV
+       select BR2_PACKAGE_JANSSON
+       select BR2_PACKAGE_OPENSSL
+       help
+         wampcc is a C++ library that implements the Web Application
+         Messaging Protocol.
+
+         https://github.com/darrenjs/wampcc
+
+comment "wampcc needs a toolchain w/ NPTL, dynamic library"
+       depends on BR2_USE_MMU
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4
+       depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
+
+comment "wampcc needs a toolchain not affected by GCC bug 64735"
+       depends on BR2_USE_MMU
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4
+       depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
diff --git a/package/wampcc/wampcc.hash b/package/wampcc/wampcc.hash
new file mode 100644 (file)
index 0000000..162dcab
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  b3c3633b4c6a74d7ac8a676a7ea30fbfde7ae19aa1fc37de3b8aa3a553b674a2  wampcc-v1.6.tar.gz
+sha256  bd185b1ec8a292d42b42346757ff6e198073e13c1e080e9ea548d34dd42d30d8  LICENSE
diff --git a/package/wampcc/wampcc.mk b/package/wampcc/wampcc.mk
new file mode 100644 (file)
index 0000000..d8e093f
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# wampcc
+#
+################################################################################
+
+WAMPCC_VERSION = v1.6
+WAMPCC_SITE = $(call github,darrenjs,wampcc,$(WAMPCC_VERSION))
+WAMPCC_DEPENDENCIES = host-pkgconf libuv jansson openssl
+WAMPCC_INSTALL_STAGING = YES
+WAMPCC_LICENSE = MIT
+WAMPCC_LICENSE_FILES = LICENSE
+
+$(eval $(cmake-package))