From patchwork Tue Feb 12 10:47:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lukichev X-Patchwork-Id: 219783 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 6D5852C0326 for ; Tue, 12 Feb 2013 21:49:24 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 71EEA8AABB; Tue, 12 Feb 2013 10:49:22 +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 Q8haEvVyiCtv; Tue, 12 Feb 2013 10:49:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C5A528AB1C; Tue, 12 Feb 2013 10:48:36 +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 3EFBB8F753 for ; Tue, 12 Feb 2013 10:48:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E5C938AC23 for ; Tue, 12 Feb 2013 10:48: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 kcayPWVBeoTs for ; Tue, 12 Feb 2013 10:48:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by whitealder.osuosl.org (Postfix) with ESMTPS id A5E0B80A26 for ; Tue, 12 Feb 2013 10:48:01 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id gm6so30024lbb.12 for ; Tue, 12 Feb 2013 02:47:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=uaXG27yHdfXWh+aSLW9Tle3Jvv/rmAvvzbCNZLnIKPk=; b=qumQwZRgpDa9CSCMINQGDM05rpZ91X4f0lOqo9V04B2079nf4W05drXHrGjEShNEoB Z4N0wvm3Z23AJw6Cm5Q9u2yqdXUQXWmpNTH93z2J3boDw4nJvT+adqeU2oB92BX3teSP bhRZDL9hd5A9f183M3qv0oj8gahlnrF7dlUDljMRWrkNQWVytAzK2sbBQHWguXxIBcpb PmFHVK4bk02UNyQoWC9e3StGROI55B3fEeR7m4DuI5YfWsJ8agbT9697J7dEyrlZj2fH Nxobh6ftse7+/loZudosJ0DR0B6jt/nZdJ5fpyKqrwzwn4H+IiNFwwHc/4+Slbzk5uVK LiEA== X-Received: by 10.112.17.137 with SMTP id o9mr7259199lbd.15.1360666079397; Tue, 12 Feb 2013 02:47:59 -0800 (PST) Received: from localhost.localdomain (37-219-103-9.nat.bb.dnainternet.fi. [37.219.103.9]) by mx.google.com with ESMTPS id er8sm14083915lbb.9.2013.02.12.02.47.57 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 12 Feb 2013 02:47:58 -0800 (PST) From: Alexander Lukichev To: buildroot@busybox.net Date: Tue, 12 Feb 2013 12:47:31 +0200 Message-Id: <1360666051-16475-2-git-send-email-alexander.lukichev@gmail.com> X-Mailer: git-send-email 1.8.0.1 In-Reply-To: <1360666051-16475-1-git-send-email-alexander.lukichev@gmail.com> References: <1360666051-16475-1-git-send-email-alexander.lukichev@gmail.com> Cc: Alexander Lukichev Subject: [Buildroot] [PATCH 1/1] openpgm: 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: Alexander Lukichev OpenPGM is an open source implementation of the Pragmatic General Multicast (PGM) specification in RFC 3208 available at www.ietf.org. It is required for PGM/EPGM support in ZeroMQ library. Signed-off-by: Alexander Lukichev Signed-off-by: Alexander Lukichev --- package/Config.in | 1 + package/openpgm/Config.in | 10 ++++++++++ package/openpgm/openpgm-cross-compile.patch | 30 +++++++++++++++++++++++++++++ package/openpgm/openpgm.mk | 18 +++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 package/openpgm/Config.in create mode 100644 package/openpgm/openpgm-cross-compile.patch create mode 100644 package/openpgm/openpgm.mk diff --git a/package/Config.in b/package/Config.in index 2fad94d..bfaf944 100644 --- a/package/Config.in +++ b/package/Config.in @@ -524,6 +524,7 @@ source "package/libtorrent/Config.in" source "package/libupnp/Config.in" source "package/libvncserver/Config.in" source "package/nss-mdns/Config.in" +source "package/openpgm/Config.in" source "package/ortp/Config.in" source "package/slirp/Config.in" source "package/usbredir/Config.in" diff --git a/package/openpgm/Config.in b/package/openpgm/Config.in new file mode 100644 index 0000000..e9e5ee6 --- /dev/null +++ b/package/openpgm/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_OPENPGM + bool "OpenPGM" + help + OpenPGM is an open source implementation of the Pragmatic General + Multicast (PGM) specification in RFC 3208 available at www.ietf.org. + PGM is a reliable and scalable multicast protocol that enables + receivers to detect loss, request retransmission of lost data, or + notify an application of unrecoverable loss. + + http://code.google.com/p/openpgm/ diff --git a/package/openpgm/openpgm-cross-compile.patch b/package/openpgm/openpgm-cross-compile.patch new file mode 100644 index 0000000..67fc9cf --- /dev/null +++ b/package/openpgm/openpgm-cross-compile.patch @@ -0,0 +1,30 @@ +--- a/openpgm/pgm/configure.ac 2011-09-27 20:59:08.000000000 +0300 ++++ b/openpgm/pgm/configure.ac 2013-02-12 10:33:53.000000000 +0200 +@@ -272,14 +272,19 @@ uint32_t add32_with_carry (uint32_t a, u + ;; + esac + # ticket spinlock friendly: unaligned pointers & atomic ops (excl. Sun Pro) +-AC_MSG_CHECKING([for unaligned pointers]) +-AC_RUN_IFELSE( +- [AC_LANG_PROGRAM([[char* nezumi = "mouse";]], +- [[short x = *(short*)(nezumi + 2)]])], +- [AC_MSG_RESULT([yes]) +- pgm_unaligned_pointers=yes], +- [AC_MSG_RESULT([no]) +- pgm_unaligned_pointers=no]) ++AC_CACHE_CHECK([if unaligned access fails], [ac_cv_lbl_unaligned_fail], ++ [AC_RUN_IFELSE( ++ [AC_LANG_PROGRAM([[char* nezumi = "mouse";]], ++ [[short x = *(short*)(nezumi + 2)]])], ++ [ac_cv_lbl_unaligned_fail=no], ++ [ac_cv_lbl_unaligned_fail=yes], ++ [ac_cv_lbl_unaligned_fail=yes]) ++ ]) ++if test "$ac_cv_lbl_unaligned_fail" = yes; then ++ pgm_unaligned_pointers=no ++else ++ pgm_unaligned_pointers=yes ++fi + AC_MSG_CHECKING([for intrinsic atomic ops]) + # AC_PREPROC_IFELSE not always portable + AC_COMPILE_IFELSE( diff --git a/package/openpgm/openpgm.mk b/package/openpgm/openpgm.mk new file mode 100644 index 0000000..34c5965 --- /dev/null +++ b/package/openpgm/openpgm.mk @@ -0,0 +1,18 @@ +############################################################# +# +# openpgm +# +############################################################# + +OPENPGM_VERSION = 5.2.121~dfsg +OPENPGM_SOURCE = libpgm-$(OPENPGM_VERSION).tar.gz +OPENPGM_SITE = http://openpgm.googlecode.com/files/ +OPENPGM_LICENSE = LGPLv2.1+ +OPENPGM_LICENSE_FILES = openpgm/pgm/LICENSE +OPENPGM_INSTALL_STAGING = YES +OPENPGM_AUTORECONF = YES +OPENPGM_SUBDIR = openpgm/pgm/ +OPENPGM_CONF_ENV = ac_cv_file__proc_cpuinfo=yes ac_cv_file__dev_rtc=no \ + ac_cv_file__dev_hpet=no + +$(eval $(autotools-package))