From patchwork Mon Oct 29 15:49:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thiago Correa X-Patchwork-Id: 195057 X-Patchwork-Delegate: patrickdepinguin+buildroot@gmail.com 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 3B5EB2C008A for ; Tue, 30 Oct 2012 02:50:50 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 76EBC8A3CD; Mon, 29 Oct 2012 15:50:48 +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 AePxHxb3Fted; Mon, 29 Oct 2012 15:50:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 166648C3DF; Mon, 29 Oct 2012 15:50:47 +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 61FAA8F74A for ; Mon, 29 Oct 2012 15:50:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B6DDD8C398 for ; Mon, 29 Oct 2012 15:50:45 +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 mnaFjeU62hgj for ; Mon, 29 Oct 2012 15:50:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ye0-f171.google.com (mail-ye0-f171.google.com [209.85.213.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id A56248C4A9 for ; Mon, 29 Oct 2012 15:50:26 +0000 (UTC) Received: by mail-ye0-f171.google.com with SMTP id m11so964464yen.16 for ; Mon, 29 Oct 2012 08:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=52b3GlP5T3qi6Xw+nfeq1VdegymHou7cNDW250xHelE=; b=JvfvIXcQcHaO8ihtb/3aBX4bkqT4/JsVppzZW9YiR1XPewuFRruhGvDxhMXdl8kbs+ Ikm2asC/uowzNK/linHqkRLdXAkGFtEuVY5xE3v/CgYUvyx5w+6I1qJRQpTJ6SRZ9bcy SbM6Gsfkti/S+FpLdI1FjpyMc9FWkRm0XHSweFXYFkX/Lqr9itHPpVA2Jef1NUIR+zRU yQvHpuL538p8b7IpdFklbQAtez/dXUCf4//J1LMXie/THZPMVHpDAhFz7uNmrGMb7Yfq iOp9tPG7bj/gMzdf+k3MH4TK5UAgt5dDin78uYYw0Tu7Hbc5j3Kly+7bEXYOnvpi1oT+ 5qTg== Received: by 10.236.155.71 with SMTP id i47mr30036167yhk.72.1351525825502; Mon, 29 Oct 2012 08:50:25 -0700 (PDT) Received: from localhost.comm5.com.br ([177.141.130.195]) by mx.google.com with ESMTPS id z65sm9761165yhe.22.2012.10.29.08.50.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2012 08:50:24 -0700 (PDT) Date: Mon, 29 Oct 2012 13:49:49 -0200 From: "Thiago A. Correa" To: buildroot@busybox.net Message-ID: <20121029154949.GA15033@localhost.comm5.com.br> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: [Buildroot] [PATCHv3] QtSerialPort: 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Thiago A. Correa --- package/Config.in | 1 + package/qtserialport/Config.in | 12 +++++++++++ package/qtserialport/qtserialport.mk | 35 ++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 0 deletions(-) create mode 100644 package/qtserialport/Config.in create mode 100644 package/qtserialport/qtserialport.mk diff --git a/package/Config.in b/package/Config.in index 331d879..e869c8a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -133,6 +133,7 @@ source "package/sdl_gfx/Config.in" comment "other GUIs" source "package/efl/Config.in" source "package/qt/Config.in" +source "package/qtserialport/Config.in" source "package/x11r7/Config.in" comment "X libraries and helper libraries" diff --git a/package/qtserialport/Config.in b/package/qtserialport/Config.in new file mode 100644 index 0000000..f84387a --- /dev/null +++ b/package/qtserialport/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_QTSERIALPORT + bool "QtSerialPort" + depends on BR2_PACKAGE_QT + depends on BR2_PACKAGE_UDEV + help + QtSerialPort module is an add-on for the Qt library, providing + a single interface for both hardware and virtual serial ports. + + http://qt-project.org/wiki/QtSerialPort + +comment "QtSerialPort requires udev support" + depends on !(BR2_PACKAGE_UDEV) diff --git a/package/qtserialport/qtserialport.mk b/package/qtserialport/qtserialport.mk new file mode 100644 index 0000000..cfd0518 --- /dev/null +++ b/package/qtserialport/qtserialport.mk @@ -0,0 +1,35 @@ +############################################################# +# +# QtSerialPort +# +############################################################# +QTSERIALPORT_VERSION = e831107f468618881e435932c8a42404c1dde13c +QTSERIALPORT_SITE = git://gitorious.org/qtplayground/qtserialport.git +QTSERIALPORT_LICENSE = LGPLv2 +QTSERIALPORT_LICENSE_FILES = LICENSE.LGPL +QTSERIALPORT_INSTALL_STAGING = YES + +QTSERIALPORT_DEPENDENCIES = qt udev + +QTSERIALPORT_LDFLAGS = $(TARGET_LDFLAGS) + +define QTSERIALPORT_CONFIGURE_CMDS + (cd $(@D); \ + $(QT_QMAKE) -recursive CONFIG+=release) +endef + +define QTSERIALPORT_BUILD_CMDS + $(MAKE) -C $(@D)/src +endef + +define QTSERIALPORT_INSTALL_STAGING_CMDS + $(MAKE) -C $(@D)/src install + mv $(HOST_DIR)/usr/include/QtAddOnSerialPort $(STAGING_DIR)/usr/include/ +endef + +define QTSERIALPORT_INSTALL_TARGET_CMDS + cp -dpfr $(STAGING_DIR)/usr/lib/libSerialPort.so.* \ + $(TARGET_DIR)/usr/lib +endef + +$(eval $(generic-package))