Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH resend] new package: zeromq
@ 2012-03-14 16:38 Thomas De Schampheleire
  2012-03-15 10:45 ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas De Schampheleire @ 2012-03-14 16:38 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>

---
I hope the ? symbol in Config.in is not a problem.

 package/Config.in        |   1 +
 package/zeromq/Config.in |  22 ++++++++++++++++++++++
 package/zeromq/zeromq.mk |  12 ++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/package/Config.in b/package/Config.in
--- a/package/Config.in
+++ b/package/Config.in
@@ -366,6 +366,7 @@ source "package/librsync/Config.in"
 source "package/libsoup/Config.in"
 source "package/libupnp/Config.in"
 source "package/libvncserver/Config.in"
+source "package/zeromq/Config.in"
 endmenu
 
 menu "Other"
diff --git a/package/zeromq/Config.in b/package/zeromq/Config.in
new file mode 100644
--- /dev/null
+++ b/package/zeromq/Config.in
@@ -0,0 +1,22 @@
+comment "zeromq requires a toolchain with WCHAR support"
+	depends on !BR2_USE_WCHAR
+
+config BR2_PACKAGE_ZEROMQ
+	bool "zeromq"
+	depends on BR2_USE_WCHAR # util-linux
+	select BR2_PACKAGE_UTIL_LINUX
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	help
+	  ?MQ (ZeroMQ, 0MQ, zmq) looks like an embeddable networking library but
+	  acts like a concurrency framework. It gives you sockets that carry
+	  whole messages across various transports like in-process, inter-
+	  process, TCP, and multicast. You can connect sockets N-to-N with
+	  patterns like fanout, pub-sub, task distribution, and request-reply.
+	  It's fast enough to be the fabric for clustered products. Its
+	  asynchronous I/O model gives you scalable multicore applications,
+	  built as asynchronous message-processing tasks. It has a score of
+	  language APIs and runs on most operating systems.
+
+	  ?MQ is from iMatix and is LGPL open source.
+
+	  http://www.zeromq.org/
diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk
new file mode 100644
--- /dev/null
+++ b/package/zeromq/zeromq.mk
@@ -0,0 +1,12 @@
+#############################################################
+#
+# zeromq
+#
+#############################################################
+
+ZEROMQ_VERSION = 2.1.11
+ZEROMQ_SITE = http://download.zeromq.org/
+
+ZEROMQ_DEPENDENCIES = util-linux
+
+$(eval $(call AUTOTARGETS))

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH resend] new package: zeromq
  2012-03-14 16:38 [Buildroot] [PATCH resend] new package: zeromq Thomas De Schampheleire
@ 2012-03-15 10:45 ` Peter Korsgaard
  2012-03-15 19:26   ` Thomas De Schampheleire
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2012-03-15 10:45 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> writes:

 Thomas> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
 Thomas> ---
 Thomas> I hope the ? symbol in Config.in is not a problem.

It doesn't render nicely in menuconfig here, but ok.

 Thomas>  package/Config.in        |   1 +
 Thomas>  package/zeromq/Config.in |  22 ++++++++++++++++++++++
 Thomas>  package/zeromq/zeromq.mk |  12 ++++++++++++
 Thomas>  3 files changed, 35 insertions(+), 0 deletions(-)

 Thomas> diff --git a/package/Config.in b/package/Config.in
 Thomas> --- a/package/Config.in
 Thomas> +++ b/package/Config.in
 Thomas> @@ -366,6 +366,7 @@ source "package/librsync/Config.in"
 Thomas>  source "package/libsoup/Config.in"
 Thomas>  source "package/libupnp/Config.in"
 Thomas>  source "package/libvncserver/Config.in"
 Thomas> +source "package/zeromq/Config.in"
 Thomas>  endmenu
 
 Thomas>  menu "Other"
 Thomas> diff --git a/package/zeromq/Config.in b/package/zeromq/Config.in
 Thomas> new file mode 100644
 Thomas> --- /dev/null
 Thomas> +++ b/package/zeromq/Config.in
 Thomas> @@ -0,0 +1,22 @@
 Thomas> +comment "zeromq requires a toolchain with WCHAR support"
 Thomas> +	depends on !BR2_USE_WCHAR
 Thomas> +
 Thomas> +config BR2_PACKAGE_ZEROMQ
 Thomas> +	bool "zeromq"
 Thomas> +	depends on BR2_USE_WCHAR # util-linux

Util-linux also depends on LARGEFILE, so you need that as well.
Zeromq is written in C++, so you also need INSTALL_LIBSTDCPP.

 Thomas> +	select BR2_PACKAGE_UTIL_LINUX
 Thomas> +	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
 Thomas> +	help
 Thomas> +	  ?MQ (ZeroMQ, 0MQ, zmq) looks like an embeddable networking library but
 Thomas> +	  acts like a concurrency framework. It gives you sockets that carry
 Thomas> +	  whole messages across various transports like in-process, inter-
 Thomas> +	  process, TCP, and multicast. You can connect sockets N-to-N with
 Thomas> +	  patterns like fanout, pub-sub, task distribution, and request-reply.
 Thomas> +	  It's fast enough to be the fabric for clustered products. Its
 Thomas> +	  asynchronous I/O model gives you scalable multicore applications,
 Thomas> +	  built as asynchronous message-processing tasks. It has a score of
 Thomas> +	  language APIs and runs on most operating systems.
 Thomas> +
 Thomas> +	  ?MQ is from iMatix and is LGPL open source.

I reformatted the help text to fit in menuconfig.

 Thomas> +
 Thomas> +	  http://www.zeromq.org/
 Thomas> diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk
 Thomas> new file mode 100644
 Thomas> --- /dev/null
 Thomas> +++ b/package/zeromq/zeromq.mk
 Thomas> @@ -0,0 +1,12 @@
 Thomas> +#############################################################
 Thomas> +#
 Thomas> +# zeromq
 Thomas> +#
 Thomas> +#############################################################
 Thomas> +
 Thomas> +ZEROMQ_VERSION = 2.1.11
 Thomas> +ZEROMQ_SITE = http://download.zeromq.org/
 Thomas> +

ZEROMQ is a library, so you need to install into staging as well.

Committed with these fixes, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH resend] new package: zeromq
  2012-03-15 10:45 ` Peter Korsgaard
@ 2012-03-15 19:26   ` Thomas De Schampheleire
  2012-03-15 20:53     ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas De Schampheleire @ 2012-03-15 19:26 UTC (permalink / raw)
  To: buildroot

On Thu, Mar 15, 2012 at 11:45 AM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Thomas" == Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> writes:
>
> ?Thomas> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
> ?Thomas> ---
> ?Thomas> I hope the ? symbol in Config.in is not a problem.
>
> It doesn't render nicely in menuconfig here, but ok.
>
> ?Thomas> ?package/Config.in ? ? ? ?| ? 1 +
> ?Thomas> ?package/zeromq/Config.in | ?22 ++++++++++++++++++++++
> ?Thomas> ?package/zeromq/zeromq.mk | ?12 ++++++++++++
> ?Thomas> ?3 files changed, 35 insertions(+), 0 deletions(-)
>
> ?Thomas> diff --git a/package/Config.in b/package/Config.in
> ?Thomas> --- a/package/Config.in
> ?Thomas> +++ b/package/Config.in
> ?Thomas> @@ -366,6 +366,7 @@ source "package/librsync/Config.in"
> ?Thomas> ?source "package/libsoup/Config.in"
> ?Thomas> ?source "package/libupnp/Config.in"
> ?Thomas> ?source "package/libvncserver/Config.in"
> ?Thomas> +source "package/zeromq/Config.in"
> ?Thomas> ?endmenu
>
> ?Thomas> ?menu "Other"
> ?Thomas> diff --git a/package/zeromq/Config.in b/package/zeromq/Config.in
> ?Thomas> new file mode 100644
> ?Thomas> --- /dev/null
> ?Thomas> +++ b/package/zeromq/Config.in
> ?Thomas> @@ -0,0 +1,22 @@
> ?Thomas> +comment "zeromq requires a toolchain with WCHAR support"
> ?Thomas> + ? ? ?depends on !BR2_USE_WCHAR
> ?Thomas> +
> ?Thomas> +config BR2_PACKAGE_ZEROMQ
> ?Thomas> + ? ? ?bool "zeromq"
> ?Thomas> + ? ? ?depends on BR2_USE_WCHAR # util-linux
>
> Util-linux also depends on LARGEFILE, so you need that as well.
> Zeromq is written in C++, so you also need INSTALL_LIBSTDCPP.

Is there somewhere some documentation that explains these rules? The
C++ thing is new to me for example.
It would make sense to me that this is described.

>
> ?Thomas> + ? ? ?select BR2_PACKAGE_UTIL_LINUX
> ?Thomas> + ? ? ?select BR2_PACKAGE_UTIL_LINUX_LIBUUID
> ?Thomas> + ? ? ?help
> ?Thomas> + ? ? ? ??MQ (ZeroMQ, 0MQ, zmq) looks like an embeddable networking library but
> ?Thomas> + ? ? ? ?acts like a concurrency framework. It gives you sockets that carry
> ?Thomas> + ? ? ? ?whole messages across various transports like in-process, inter-
> ?Thomas> + ? ? ? ?process, TCP, and multicast. You can connect sockets N-to-N with
> ?Thomas> + ? ? ? ?patterns like fanout, pub-sub, task distribution, and request-reply.
> ?Thomas> + ? ? ? ?It's fast enough to be the fabric for clustered products. Its
> ?Thomas> + ? ? ? ?asynchronous I/O model gives you scalable multicore applications,
> ?Thomas> + ? ? ? ?built as asynchronous message-processing tasks. It has a score of
> ?Thomas> + ? ? ? ?language APIs and runs on most operating systems.
> ?Thomas> +
> ?Thomas> + ? ? ? ??MQ is from iMatix and is LGPL open source.
>
> I reformatted the help text to fit in menuconfig.
>
> ?Thomas> +
> ?Thomas> + ? ? ? ?http://www.zeromq.org/
> ?Thomas> diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk
> ?Thomas> new file mode 100644
> ?Thomas> --- /dev/null
> ?Thomas> +++ b/package/zeromq/zeromq.mk
> ?Thomas> @@ -0,0 +1,12 @@
> ?Thomas> +#############################################################
> ?Thomas> +#
> ?Thomas> +# zeromq
> ?Thomas> +#
> ?Thomas> +#############################################################
> ?Thomas> +
> ?Thomas> +ZEROMQ_VERSION = 2.1.11
> ?Thomas> +ZEROMQ_SITE = http://download.zeromq.org/
> ?Thomas> +
>
> ZEROMQ is a library, so you need to install into staging as well.
>
> Committed with these fixes, thanks.

Thanks!
Thomas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH resend] new package: zeromq
  2012-03-15 19:26   ` Thomas De Schampheleire
@ 2012-03-15 20:53     ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2012-03-15 20:53 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> writes:

Hi,

 >> Util-linux also depends on LARGEFILE, so you need that as well.
 >> Zeromq is written in C++, so you also need INSTALL_LIBSTDCPP.

 Thomas> Is there somewhere some documentation that explains these rules? The
 Thomas> C++ thing is new to me for example.

Well, it's pretty simple - There's basically 2 kind of dependencies:

1: Toolchain configuration options (largefile, wchar, C++, ..)
2: Libraries

For the first type we use 'depends by' and add a comment so people know
what to change in their toolchain to be able to use the package. For the
second we automatically enable the dependencies using 'select'.

There's a few special situations that fall outside this (an example is
when you have multiple backends like X11 and directfb), but this covers
90%+ of the situations.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-15 20:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 16:38 [Buildroot] [PATCH resend] new package: zeromq Thomas De Schampheleire
2012-03-15 10:45 ` Peter Korsgaard
2012-03-15 19:26   ` Thomas De Schampheleire
2012-03-15 20:53     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox