From patchwork Tue Apr 23 14:52:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 238934 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 763F02C00DB for ; Wed, 24 Apr 2013 00:53:55 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C560625C2A; Tue, 23 Apr 2013 14:53:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g9UpF4q5QknI; Tue, 23 Apr 2013 14:53:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 9469925A38; Tue, 23 Apr 2013 14:53:51 +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 71F808F7A5 for ; Tue, 23 Apr 2013 14:53:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D64758A9D4 for ; Tue, 23 Apr 2013 14:53:49 +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 WRx2RVAxlPuU for ; Tue, 23 Apr 2013 14:53:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) by whitealder.osuosl.org (Postfix) with ESMTPS id 377548A893 for ; Tue, 23 Apr 2013 14:53:48 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id u3so695101wey.10 for ; Tue, 23 Apr 2013 07:53:46 -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=uWwnLIBqlX2e3bkR9kLIhZI6MWu8mx6hajjFNB6Y4LI=; b=nzlDd4r/2eN4DzUVebXuOsfemysoJE5uNkjNoiaD4WEKgPrKwROZVBwxj9u1r/cB0T igrC8t1CQKOgoeD9xeu/v2EuTaYvTJsCHXJeir69t3HUg3r1HwvM+5XKsWJ1jgjzDM/v 6Lr4xZH33i1MmXZX12hTk37Ai/e85kaUHDwwD1CkTv0ALm+nx2OwGmm/cRi/D7LSDUc7 QRLsK+JQvarmpIQygv55AEQMLFdDc0pB226JMdoUUTpU0GbJ7sptSh4xUH1COqzdnd1t w8tDoah52THMfZL7E1iYjPEpgRIVNwrNsRnRA1+QM8DGY29qF7wGwdpNrHtZm2a0V8/m 2fDw== X-Received: by 10.180.37.101 with SMTP id x5mr551274wij.0.1366728826325; Tue, 23 Apr 2013 07:53:46 -0700 (PDT) Received: from localhost.localdomain (88-105-230-36.dynamic.dsl.as9105.com. [88.105.230.36]) by mx.google.com with ESMTPS id fz3sm29425417wib.0.2013.04.23.07.53.44 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Apr 2013 07:53:45 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Tue, 23 Apr 2013 15:52:39 +0100 Message-Id: <1366728759-3522-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH v3] 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 Note that the Python binding is disabled; we can't build this in Buildroot without the sipconfig Python module for the host. Signed-off-by: Simon Dawson --- v3: Add a patch (sent upstream) to fix a build error found by Peter Korsgaard. v2: Fix Sourceforge mirror and patch numbering, as suggested by Thomas Petazzoni; use upstream version 0.6.0rc1, which requires less patching; disable build of Python bindings, which require the sipconfig Python module. package/Config.in | 1 + package/libserial/Config.in | 11 +++++++++ .../libserial-0001-disable-python-bindings.patch | 25 ++++++++++++++++++++ ...libserial-0002-add-missing-header-include.patch | 15 ++++++++++++ package/libserial/libserial.mk | 13 ++++++++++ 5 files changed, 65 insertions(+) create mode 100644 package/libserial/Config.in create mode 100644 package/libserial/libserial-0001-disable-python-bindings.patch create mode 100644 package/libserial/libserial-0002-add-missing-header-include.patch create mode 100644 package/libserial/libserial.mk diff --git a/package/Config.in b/package/Config.in index 06bcdef..ad070f4 100644 --- a/package/Config.in +++ b/package/Config.in @@ -464,6 +464,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-0001-disable-python-bindings.patch b/package/libserial/libserial-0001-disable-python-bindings.patch new file mode 100644 index 0000000..54b5cb6 --- /dev/null +++ b/package/libserial/libserial-0001-disable-python-bindings.patch @@ -0,0 +1,25 @@ +Disable build of Python bindings, which requires the sipconfig module. + +Signed-off-by: Simon Dawson + +diff -Nurp a/Makefile.am b/Makefile.am +--- a/Makefile.am 2008-11-12 01:27:31.000000000 +0000 ++++ b/Makefile.am 2013-04-16 09:41:13.476002178 +0100 +@@ -1,4 +1,4 @@ +-SUBDIRS=src doc examples sip ++SUBDIRS=src doc examples + + EXTRA_DIST = doxygen.conf.in Makefile.dist libserial.spec libserial.pc + +diff -Nurp a/Makefile.in b/Makefile.in +--- a/Makefile.in 2008-11-12 01:28:14.000000000 +0000 ++++ b/Makefile.in 2013-04-16 09:41:05.628013626 +0100 +@@ -197,7 +197,7 @@ sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ +-SUBDIRS = src doc examples sip ++SUBDIRS = src doc examples + EXTRA_DIST = doxygen.conf.in Makefile.dist libserial.spec libserial.pc + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = libserial.pc diff --git a/package/libserial/libserial-0002-add-missing-header-include.patch b/package/libserial/libserial-0002-add-missing-header-include.patch new file mode 100644 index 0000000..a022637 --- /dev/null +++ b/package/libserial/libserial-0002-add-missing-header-include.patch @@ -0,0 +1,15 @@ +Add a missing header include, to fix a build error. + +Signed-off-by: Simon Dawson + +diff -Nurp a/src/SerialPort.cpp b/src/SerialPort.cpp +--- a/src/SerialPort.cpp 2008-11-12 01:27:30.000000000 +0000 ++++ b/src/SerialPort.cpp 2013-04-23 15:43:41.537495852 +0100 +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/package/libserial/libserial.mk b/package/libserial/libserial.mk new file mode 100644 index 0000000..a835439 --- /dev/null +++ b/package/libserial/libserial.mk @@ -0,0 +1,13 @@ +############################################################# +# +# libserial +# +############################################################# + +LIBSERIAL_VERSION = 0.6.0rc1 +LIBSERIAL_SITE = http://downloads.sourceforge.net/libserial +LIBSERIAL_INSTALL_STAGING = YES +LIBSERIAL_LICENSE = GPLv2+ +LIBSERIAL_LICENSE_FILES = COPYING + +$(eval $(autotools-package))