From patchwork Tue Apr 16 07:20:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 236843 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 C5B662C00F2 for ; Tue, 16 Apr 2013 17:20:26 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BE8F3894D4; Tue, 16 Apr 2013 07:20:21 +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 xtdpiKlBpqCN; Tue, 16 Apr 2013 07:20:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E29BC856B0; Tue, 16 Apr 2013 07:20:15 +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 CB0248F75E for ; Tue, 16 Apr 2013 07:20:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 69B89856B0 for ; Tue, 16 Apr 2013 07:20:14 +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 hss1TR+fakxz for ; Tue, 16 Apr 2013 07:20:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f174.google.com (mail-we0-f174.google.com [74.125.82.174]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5E38A8558F for ; Tue, 16 Apr 2013 07:20:12 +0000 (UTC) Received: by mail-we0-f174.google.com with SMTP id u12so119918wey.5 for ; Tue, 16 Apr 2013 00:20:10 -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=wOWvLEh6vYPsHVd6jIF7d15ET5CS7SbRQf9VHpGKQeo=; b=zHNPl4x4Llc1AaCijeG9W0oJ5S/QqdUpG/IZ0RHoy0N4HYFs1FHwfIeWz//7ZUsPe/ I5MibZRwXcLXFlmtq+0nXiYtQxv5sLhUeVCW+NGBsX3WPoaGWxZ6IWF7AwtZFxqI1o2p 6pLU7JO1tDYDGWZ9x54/WoTvkTjk3qMdlcV3RLGBo2SgbDsPo62Rt7AlBbd2m/flroJD uPY/XM5jnKjt3kuqqr3JFZ/cEwu4g0Csqn4cTySMVP5Glvo2jhYdyzAsz271OKjWmBBq 78ldPrZuTYi1swQS+Pdb5q86a60siY/htcvLz15BaGrszlo0x8WtjPA+MOVC6ODfJDMg 21pA== X-Received: by 10.194.81.71 with SMTP id y7mr1503151wjx.19.1366096809965; Tue, 16 Apr 2013 00:20:09 -0700 (PDT) Received: from localhost.localdomain (host109-145-0-131.range109-145.btcentralplus.com. [109.145.0.131]) by mx.google.com with ESMTPS id fp2sm17609364wib.7.2013.04.16.00.20.08 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Apr 2013 00:20:08 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Tue, 16 Apr 2013 08:20:04 +0100 Message-Id: <1366096804-2032-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH] libserial: 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 Signed-off-by: Simon Dawson --- package/Config.in | 1 + package/libserial/Config.in | 11 ++++ .../libserial-0000-missing-includes.patch | 54 ++++++++++++++++++++ package/libserial/libserial.mk | 13 +++++ 4 files changed, 79 insertions(+) create mode 100644 package/libserial/Config.in create mode 100644 package/libserial/libserial-0000-missing-includes.patch create mode 100644 package/libserial/libserial.mk diff --git a/package/Config.in b/package/Config.in index f28cedd..6f87a6d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -463,6 +463,7 @@ source "package/libhid/Config.in" source "package/libiqrf/Config.in" source "package/libnfc/Config.in" source "package/libnfc-llcp/Config.in" +source "package/libserial/Config.in" source "package/libusb/Config.in" source "package/libusb-compat/Config.in" source "package/libv4l/Config.in" diff --git a/package/libserial/Config.in b/package/libserial/Config.in new file mode 100644 index 0000000..f098e28 --- /dev/null +++ b/package/libserial/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_LIBSERIAL + bool "libserial" + depends on BR2_INSTALL_LIBSTDCPP + help + Simplified serial port programming in C++ under POSIX operating + systems. + + http://libserial.sourceforge.net/ + +comment "libserial requires a toolchain with C++ support enabled" + depends on !BR2_INSTALL_LIBSTDCPP diff --git a/package/libserial/libserial-0000-missing-includes.patch b/package/libserial/libserial-0000-missing-includes.patch new file mode 100644 index 0000000..ddff4c4 --- /dev/null +++ b/package/libserial/libserial-0000-missing-includes.patch @@ -0,0 +1,54 @@ +Add missing header includes. + +Signed-off-by: Simon Dawson + +diff -Nurp a/examples/read_port.cpp b/examples/read_port.cpp +--- a/examples/read_port.cpp 2005-09-27 05:34:18.000000000 +0100 ++++ b/examples/read_port.cpp 2013-04-16 08:02:55.408457114 +0100 +@@ -1,3 +1,4 @@ ++#include + #include + #include + +diff -Nurp a/examples/write_port.cpp b/examples/write_port.cpp +--- a/examples/write_port.cpp 2005-09-27 05:44:36.000000000 +0100 ++++ b/examples/write_port.cpp 2013-04-16 08:03:34.088439743 +0100 +@@ -1,3 +1,4 @@ ++#include + #include + #include + #include +diff -Nurp a/src/PosixSignalDispatcher.cpp b/src/PosixSignalDispatcher.cpp +--- a/src/PosixSignalDispatcher.cpp 2005-10-09 10:06:54.000000000 +0100 ++++ b/src/PosixSignalDispatcher.cpp 2013-04-16 07:58:16.784610979 +0100 +@@ -12,6 +12,7 @@ + #include "PosixSignalDispatcher.h" + #include "PosixSignalHandler.h" + #include ++#include + #include + #include + +diff -Nurp a/src/SerialPort.cpp b/src/SerialPort.cpp +--- a/src/SerialPort.cpp 2005-09-19 08:11:46.000000000 +0100 ++++ b/src/SerialPort.cpp 2013-04-16 07:59:28.596606012 +0100 +@@ -25,6 +25,8 @@ + #include + #include + #include ++#include ++#include + #include + #include + #include +diff -Nurp a/src/SerialStreamBuf.cc b/src/SerialStreamBuf.cc +--- a/src/SerialStreamBuf.cc 2005-10-17 01:12:52.000000000 +0100 ++++ b/src/SerialStreamBuf.cc 2013-04-16 08:01:13.680519020 +0100 +@@ -6,6 +6,7 @@ + #include + #include + #include ++#include + #include "SerialStreamBuf.h" + + using namespace std ; diff --git a/package/libserial/libserial.mk b/package/libserial/libserial.mk new file mode 100644 index 0000000..5f6ec72 --- /dev/null +++ b/package/libserial/libserial.mk @@ -0,0 +1,13 @@ +############################################################# +# +# libserial +# +############################################################# + +LIBSERIAL_VERSION = 0.5.2 +LIBSERIAL_SITE = http://prdownloads.sourceforge.net/libserial +LIBSERIAL_INSTALL_STAGING = YES +LIBSERIAL_LICENSE = GPLv2+ +LIBSERIAL_LICENSE_FILES = COPYING + +$(eval $(autotools-package))