diff mbox

package: add libwebsockets

Message ID 1360150139-6879-1-git-send-email-andreas.wetzel@nanotronic.ch
State Accepted
Headers show

Commit Message

Andreas Wetzel Feb. 6, 2013, 11:28 a.m. UTC
Signed-off-by: Andreas Wetzel <andreas.wetzel@nanotronic.ch>
---
 package/Config.in                      |    1 +
 package/libwebsockets/Config.in        |    8 ++++++++
 package/libwebsockets/libwebsockets.mk |   15 +++++++++++++++
 3 files changed, 24 insertions(+)
 create mode 100644 package/libwebsockets/Config.in
 create mode 100644 package/libwebsockets/libwebsockets.mk

Comments

Peter Korsgaard April 14, 2013, 7:36 p.m. UTC | #1
>>>>> "Andreas" == Andreas Wetzel <andreas.wetzel@nanotronic.ch> writes:

 Andreas> Signed-off-by: Andreas Wetzel <andreas.wetzel@nanotronic.ch>
 Andreas> ---
 Andreas>  package/Config.in                      |    1 +
 Andreas>  package/libwebsockets/Config.in        |    8 ++++++++
 Andreas>  package/libwebsockets/libwebsockets.mk |   15 +++++++++++++++
 Andreas>  3 files changed, 24 insertions(+)
 Andreas>  create mode 100644 package/libwebsockets/Config.in
 Andreas>  create mode 100644 package/libwebsockets/libwebsockets.mk

 Andreas> diff --git a/package/Config.in b/package/Config.in
 Andreas> index 15d7ad6..dc0a80d 100644
 Andreas> --- a/package/Config.in
 Andreas> +++ b/package/Config.in
 Andreas> @@ -476,6 +476,7 @@ source "package/libtirpc/Config.in"
 Andreas>  source "package/libtorrent/Config.in"
 Andreas>  source "package/libupnp/Config.in"
 Andreas>  source "package/libvncserver/Config.in"
 Andreas> +source "package/libwebsockets/Config.in"
 Andreas>  source "package/nss-mdns/Config.in"
 Andreas>  source "package/ortp/Config.in"
 Andreas>  source "package/zeromq/Config.in"
 Andreas> diff --git a/package/libwebsockets/Config.in b/package/libwebsockets/Config.in
 Andreas> new file mode 100644
 Andreas> index 0000000..c4d3beb
 Andreas> --- /dev/null
 Andreas> +++ b/package/libwebsockets/Config.in
 Andreas> @@ -0,0 +1,8 @@
 Andreas> +config BR2_PACKAGE_LIBWEBSOCKETS
 Andreas> +	bool "libwebsockets"
 Andreas> +	help

You forgot to select BR2_PACKAGE_ZLIB, otherwise it looks good -
Committed with that fixed, thanks.

I see that there's newer releases than 1.1. Care to send a followup
patch to bump the version?
diff mbox

Patch

diff --git a/package/Config.in b/package/Config.in
index 15d7ad6..dc0a80d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -476,6 +476,7 @@  source "package/libtirpc/Config.in"
 source "package/libtorrent/Config.in"
 source "package/libupnp/Config.in"
 source "package/libvncserver/Config.in"
+source "package/libwebsockets/Config.in"
 source "package/nss-mdns/Config.in"
 source "package/ortp/Config.in"
 source "package/zeromq/Config.in"
diff --git a/package/libwebsockets/Config.in b/package/libwebsockets/Config.in
new file mode 100644
index 0000000..c4d3beb
--- /dev/null
+++ b/package/libwebsockets/Config.in
@@ -0,0 +1,8 @@ 
+config BR2_PACKAGE_LIBWEBSOCKETS
+	bool "libwebsockets"
+	help
+	  Libwebsockets is a lightweight pure C library built to use
+	  minimal CPU and memory resources, and provide fast throughput
+	  in both directions.
+
+	  http://libwebsockets.org/
diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk
new file mode 100644
index 0000000..a3d8936
--- /dev/null
+++ b/package/libwebsockets/libwebsockets.mk
@@ -0,0 +1,15 @@ 
+################################################################################
+#
+# libwebsockets
+#
+################################################################################
+
+LIBWEBSOCKETS_VERSION = v1.1-chrome26-firefox18
+LIBWEBSOCKETS_SITE = http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/snapshot
+LIBWEBSOCKETS_LICENSE = LGPLv2.1
+LIBWEBSOCKETS_LICENSE_FILES = COPYING
+LIBWEBSOCKETS_DEPENDENCIES = zlib
+LIBWEBSOCKETS_AUTORECONF = YES
+LIBWEBSOCKETS_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))