From patchwork Mon Mar 18 16:53:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 228703 X-Patchwork-Delegate: yann.morin.1998@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 08C382C0095 for ; Tue, 19 Mar 2013 03:54:36 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EE544A00A7; Mon, 18 Mar 2013 16:54:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0L8y0wPU0d+M; Mon, 18 Mar 2013 16:54:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D48A2A00DC; Mon, 18 Mar 2013 16:54:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5AF928F7A3 for ; Mon, 18 Mar 2013 16:54:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B8B9084AAF for ; Mon, 18 Mar 2013 16:54:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aHIzH5KVbpF2 for ; Mon, 18 Mar 2013 16:54:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by whitealder.osuosl.org (Postfix) with ESMTPS id 68C1F8A92D for ; Mon, 18 Mar 2013 16:54:29 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id fg15so5045356wgb.13 for ; Mon, 18 Mar 2013 09:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer; bh=H+xh6gkYHDgXFyVRBvbqSSUmhYcT6H3tV2hY5DsGONw=; b=vCNZ7ZErXQg7HhOt5daV7w1edJYpnsd/sckNEIXBGro9XYDoAbzKE140thkugk8zkm l04ckpq6wm1MKucGBjfT4P6QqNxDPs0wgjULhn02KTT2nB1cKZGrj9rcrotDHIbryWaN 8XbobB1PYIiJUp/RpyeJJQdfi6WGnd1HRXWjc7zPtzwUXFRHpN78UdiyQ+DZRHiX6Nmf JJrnr3aDFX6d8F8Eseo1gW0oMutYN6SXzkInOJwLimYEJY+4C/OTm1WQNJz/+otjQ1eh 6RLW39KbaQi2lOrMI+3OT8Kz9OUXAJE8mCBN4x4HQzVoPxdKK4CsUQl96T8/GUjIZpfk Stnw== X-Received: by 10.180.74.131 with SMTP id t3mr18106757wiv.26.1363625667781; Mon, 18 Mar 2013 09:54:27 -0700 (PDT) Received: from localhost.localdomain (host-84-13-110-38.opaltelecom.net. [84.13.110.38]) by mx.google.com with ESMTPS id q13sm15306960wie.0.2013.03.18.09.54.24 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Mar 2013 09:54:25 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Mon, 18 Mar 2013 16:53:19 +0000 Message-Id: <1363625599-3345-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH] cppzmq: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Simon Dawson Now that zeromq has been bumped to version 3.2.2, we need to provide the C++ binding using a separate package. The cppzmq package provides a simple single-header C++ binding. Signed-off-by: Simon Dawson --- package/Config.in | 1 + package/cppzmq/Config.in | 15 +++++++++++++++ package/cppzmq/cppzmq.mk | 22 ++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 package/cppzmq/Config.in create mode 100644 package/cppzmq/cppzmq.mk diff --git a/package/Config.in b/package/Config.in index 9853b06..e4b9854 100644 --- a/package/Config.in +++ b/package/Config.in @@ -495,6 +495,7 @@ source "package/mediastreamer/Config.in" endmenu menu "Networking" +source "package/cppzmq/Config.in" source "package/glib-networking/Config.in" source "package/libcgi/Config.in" source "package/libcgicc/Config.in" diff --git a/package/cppzmq/Config.in b/package/cppzmq/Config.in new file mode 100644 index 0000000..878f414 --- /dev/null +++ b/package/cppzmq/Config.in @@ -0,0 +1,15 @@ +config BR2_PACKAGE_CPPZMQ + bool "cppzmq" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_INET_IPV6 # zeromq + depends on BR2_LARGEFILE # util-linux + depends on BR2_USE_WCHAR # util-linux + select BR2_PACKAGE_ZEROMQ + help + C++ binding for zeromq (ZeroMQ, 0MQ, zmq). + + http://github.com/zeromq/cppzmq + +comment "cppzmq requires a toolchain with C++, IPV6, LARGEFILE and WCHAR support" + depends on !(BR2_INSTALL_LIBSTDCPP && BR2_INET_IPV6 && BR2_LARGEFILE \ + && BR2_USE_WCHAR) diff --git a/package/cppzmq/cppzmq.mk b/package/cppzmq/cppzmq.mk new file mode 100644 index 0000000..11664b6 --- /dev/null +++ b/package/cppzmq/cppzmq.mk @@ -0,0 +1,22 @@ +############################################################# +# +# cppzmq +# +############################################################# + +CPPZMQ_VERSION = b232978 +CPPZMQ_SITE = git://github.com/zeromq/cppzmq.git +CPPZMQ_INSTALL_STAGING = YES +CPPZMQ_DEPENDENCIES = zeromq +CPPZMQ_LICENSE = MIT +CPPZMQ_LICENSE_FILES = zmq.hpp + +define CPPZMQ_INSTALL_STAGING_CMDS + $(INSTALL) -m 0644 -D $(@D)/zmq.hpp $(STAGING_DIR)/usr/include/zmq.hpp +endef + +define CPPZMQ_UNINSTALL_STAGING_CMDS + $(RM) $(STAGING_DIR)/usr/include/zmq.hpp +endef + +$(eval $(generic-package))