[Buildroot] [git commit] package: add libwebsockets

Andreas Wetzel andreas.wetzel at nanotronic.ch
Tue Jun 11 12:52:08 UTC 2013


Hi,

Just for my understandings:

 > [Peter: add missing zlib select to Config.in]

This means, we kind of track dependencies twice?

1) in Config.in we tell the config system to also select the packages we 
depend on (here "zlib").
2) On the other hand I have to specify the dependencies in the 
build-recipe too ("LIBWEBSOCKETS_DEPENENCIES = zlib").

What is the reason we do this twice?

My thought to not add "select BR2_PACKAGE_ZLIB" was:
When I select libwebsockets, it automatically includes zlib in the build 
process. When I later de-select libwebsockets, the next build would not 
include zlib.


Regards,
Andi





On 04/14/2013 09:35 PM, Peter Korsgaard wrote:
> commit: http://git.buildroot.net/buildroot/commit/?id=381c4646c5078cb2f31437598e1e353fb1bdb587
> branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
>
> [Peter: add missing zlib select to Config.in]
> Signed-off-by: Andreas Wetzel <andreas.wetzel at nanotronic.ch>
> Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
> ---
>   package/Config.in                      |    1 +
>   package/libwebsockets/Config.in        |    9 +++++++++
>   package/libwebsockets/libwebsockets.mk |   15 +++++++++++++++
>   3 files changed, 25 insertions(+), 0 deletions(-)
>
> diff --git a/package/Config.in b/package/Config.in
> index 97ba790..322e005 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -535,6 +535,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/openpgm/Config.in"
>   source "package/ortp/Config.in"
> diff --git a/package/libwebsockets/Config.in b/package/libwebsockets/Config.in
> new file mode 100644
> index 0000000..1d927bb
> --- /dev/null
> +++ b/package/libwebsockets/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_LIBWEBSOCKETS
> +	bool "libwebsockets"
> +	select BR2_PACKAGE_ZLIB
> +	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))
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
>

-- 
Andreas Wetzel
nanoTRONIC GmbH // Hintermättlistrasse 9 // CH-5506 Mägenwil


More information about the buildroot mailing list