From patchwork Tue Apr 16 08:49:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 236864 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 123A02C00FA for ; Tue, 16 Apr 2013 18:49:45 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 023E188E25; Tue, 16 Apr 2013 08:49:43 +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 aAdmxMmmWpbF; Tue, 16 Apr 2013 08:49:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 588EE87FF1; Tue, 16 Apr 2013 08:49:40 +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 AF3BE8F7AC for ; Tue, 16 Apr 2013 08:49:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1C74787FCB for ; Tue, 16 Apr 2013 08:49:38 +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 Uv5w1Rfkl7B2 for ; Tue, 16 Apr 2013 08:49:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id A687A87FF1 for ; Tue, 16 Apr 2013 08:49:36 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id m15so215776wgh.5 for ; Tue, 16 Apr 2013 01:49:35 -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=9vtz90PXiMVrpGLfyFooYtOVPOC7UV0p2vl7gruZbHo=; b=CZpM0FGfIkjxszYtWD/6OQCOhHED4u+CNw9y8HRkYQ1aoRT4JSlJ+KIChaZWb4uuKU Jv1U4z1ISbUIS7/ZK9SxvRCXtR4jjQmizdZCEkVZr7woP+wrLCq8+dMsWvP0Qx9jDcmb +xvb1bjLQRFSU5kzXRfkZ/mP0xNg7cMDJlFlfzRpNbsXkoZ0JoWiDgX8slvukgLeNY/W tERJAx74SgsL6vGBLsKSr9j/HiGsoT0HqFPKU+ZzgSKHpSdc7XhaUwb22AYS0cUx1pUd aDR28CI60FJ/l001lcdscUfrBRMrackQM5Xm4dTtYMywTmRfyvzhaYve5uoSsZdVNmUT QnLQ== X-Received: by 10.180.205.226 with SMTP id lj2mr10339941wic.5.1366102174985; Tue, 16 Apr 2013 01:49:34 -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 g4sm1471544wib.11.2013.04.16.01.49.33 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Apr 2013 01:49:33 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Tue, 16 Apr 2013 09:49:32 +0100 Message-Id: <1366102172-10308-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH v2] 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 --- 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 ++++++++++++++++++++ package/libserial/libserial.mk | 13 ++++++++++ 4 files changed, 50 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.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-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.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))