From patchwork Sun Dec 9 23:06:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 204805 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 094442C01FB for ; Mon, 10 Dec 2012 10:07:26 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 58910A00EC; Sun, 9 Dec 2012 23:07:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 82znv9-LFIUR; Sun, 9 Dec 2012 23:07:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 16CD4A010D; Sun, 9 Dec 2012 23:06:59 +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 6D9AD8F74B for ; Sun, 9 Dec 2012 23:06:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 69C12829B8 for ; Sun, 9 Dec 2012 23:06:53 +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 jpLjaoqLA++e for ; Sun, 9 Dec 2012 23:06:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id DCB5A81B96 for ; Sun, 9 Dec 2012 23:06:51 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id u3so1192901wey.16 for ; Sun, 09 Dec 2012 15:06:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=PpYLdCLOLMls8p2DLDVvrnGW53QAVh47Js+GPdkIt5Q=; b=wN5tgXJlG5BYes2VZ/hX7Ziyjmjo9Ru+0JfK9WKvxlVzfOqeqpl97YSoe6fcdaM1c1 WRTparGFfHIV86lNPRoxRerS3g/qMwn87mgWEz5EDpwOidySH6bIWoWedak4YPD2dbuv BJ91P4ANJA2YeKNHUYQHJwh8DQX+oPf0dEDUDlnI7yCRRa2yOAJWDmqa7w46GOPf8Xkl SOu1ZVLd00m7RYp2BsHnA9Xx8TPPeJGu1dZDE8HV8dpU2dgGGSBgoXcwclCrdHq0djiY R7yl++nD3Ezs6iNmyV0GZoQrk66ZBUCzZMmjeGkiwtYKu2ViVufunuxDjeYtt5y0E/sH 6USw== Received: by 10.180.92.74 with SMTP id ck10mr3002770wib.9.1355094411127; Sun, 09 Dec 2012 15:06:51 -0800 (PST) Received: from localhost.localdomain (ivr94-4-82-229-165-48.fbx.proxad.net. [82.229.165.48]) by mx.google.com with ESMTPS id y3sm7881379wix.6.2012.12.09.15.06.49 (version=SSLv3 cipher=OTHER); Sun, 09 Dec 2012 15:06:50 -0800 (PST) From: Samuel Martin To: buildroot@busybox.net Date: Mon, 10 Dec 2012 00:06:26 +0100 Message-Id: <1355094387-22886-6-git-send-email-s.martin49@gmail.com> X-Mailer: git-send-email 1.8.0.1 In-Reply-To: <1355094387-22886-1-git-send-email-s.martin49@gmail.com> References: <1355094387-22886-1-git-send-email-s.martin49@gmail.com> Cc: armadeus-forum@lists.sourceforge.net, Julien Boibessot Subject: [Buildroot] [PATCH] qwt: 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 Cc: Julien Boibessot Cc: Eric Jarrige Signed-off-by: Samuel Martin --- package/Config.in | 1 + package/qwt/Config.in | 17 +++++ .../qwt/qwt-5.2.1-change-install-directories.patch | 23 +++++++ package/qwt/qwt-5.2.1-disable-designer.patch | 17 +++++ package/qwt/qwt.mk | 74 ++++++++++++++++++++++ 5 files changed, 132 insertions(+) create mode 100644 package/qwt/Config.in create mode 100644 package/qwt/qwt-5.2.1-change-install-directories.patch create mode 100644 package/qwt/qwt-5.2.1-disable-designer.patch create mode 100644 package/qwt/qwt.mk diff --git a/package/Config.in b/package/Config.in index 45ccbcf..88849d3 100644 --- a/package/Config.in +++ b/package/Config.in @@ -141,6 +141,7 @@ comment "QT libraries and helper libraries" source "package/grantlee/Config.in" source "package/qextserialport/Config.in" source "package/qtuio/Config.in" +source "package/qwt/Config.in" endif source "package/x11r7/Config.in" diff --git a/package/qwt/Config.in b/package/qwt/Config.in new file mode 100644 index 0000000..15e3925 --- /dev/null +++ b/package/qwt/Config.in @@ -0,0 +1,17 @@ +comment "Qwt requires Qt to be installed" + depends on !BR2_PACKAGE_QT + +config BR2_PACKAGE_QWT + bool "Qwt" + depends on BR2_PACKAGE_QT + help + Qwt for Embedded Linux. + + http://qwt.sourceforge.net/ + +config BR2_PACKAGE_QWT_EXAMPLES + bool "Examples" + depends on BR2_PACKAGE_QWT + select BR2_PACKAGE_QT_SVG + help + Compile & install the examples. diff --git a/package/qwt/qwt-5.2.1-change-install-directories.patch b/package/qwt/qwt-5.2.1-change-install-directories.patch new file mode 100644 index 0000000..4c28065 --- /dev/null +++ b/package/qwt/qwt-5.2.1-change-install-directories.patch @@ -0,0 +1,23 @@ +Change install directories. + +Signed-off-by: Julien Boibessot +Signed-off-by: Samuel Martin + +--- qwt-5.2.1/src/src.pro.orig 2010-09-28 14:40:39.000000000 +0200 ++++ qwt-5.2.1/src/src.pro 2010-09-28 14:41:29.000000000 +0200 +@@ -218,9 +218,12 @@ + } + + # Install directives +- +-headers.files = $$HEADERS +-doc.files = $${QWT_ROOT}/doc/html $${QWT_ROOT}/doc/qwt-5.2.0.qch ++ ++target.path = /usr/lib ++headers.files = $$HEADERS ++headers.path = /usr/include/qwt-5.2.1 ++doc.files = $${QWT_ROOT}/doc/html $${QWT_ROOT}/doc/qwt-5.2.0.qch ++doc.path = /usr/doc/qwt-5.2.1 + unix { + doc.files += $${QWT_ROOT}/doc/man + } diff --git a/package/qwt/qwt-5.2.1-disable-designer.patch b/package/qwt/qwt-5.2.1-disable-designer.patch new file mode 100644 index 0000000..5d1bbe5 --- /dev/null +++ b/package/qwt/qwt-5.2.1-disable-designer.patch @@ -0,0 +1,17 @@ +Disable QwtDesigner. + +Signed-off-by: Julien Boibessot +Signed-off-by: Samuel Martin + +--- qwt-5.2.1/qwtconfig.pri.orig 2010-09-28 14:34:01.000000000 +0200 ++++ qwt-5.2.1/qwtconfig.pri 2010-09-28 15:37:02.000000000 +0200 +@@ -115,7 +115,7 @@ + # Otherwise you have to build it from the designer directory. + ###################################################################### + +-CONFIG += QwtDesigner ++#CONFIG += QwtDesigner + + ###################################################################### + # If you want to auto build the examples, enable the line below + diff --git a/package/qwt/qwt.mk b/package/qwt/qwt.mk new file mode 100644 index 0000000..3d4e7f1 --- /dev/null +++ b/package/qwt/qwt.mk @@ -0,0 +1,74 @@ +###################################################################### +# +# QWT +# +###################################################################### +QWT_VERSION = 5.2.1 +QWT_SOURCE = qwt-$(QWT_VERSION).zip +QWT_SITE = http://sourceforge.net/projects/qwt/files/qwt/$(QWT_VERSION) +# Qwt License v1.0 is a LGPL v2.1 with exceptions +QWT_LICENSE = QWTv1.0 +QWT_LICENSE_FILES = COPYING + +QWT_DEPENDENCIES = qt + +QWT_INSTALL_STAGING = YES + +define QWT_EXTRACT_CMDS + $(RM) -rf $(QWT_DIR) + unzip -q -d $(BUILD_DIR)/ $(DL_DIR)/$(QWT_SOURCE) + test -d $(QWT_DIR) || \ + mv $(BUILD_DIR)/$(subst .zip,,$(QWT_SOURCE)) $(QWT_DIR) +endef + +ifeq ($(BR2_PACKAGE_QWT_EXAMPLES),y) +define QWT_CONFIGURE_EXAMPLES + test ! -f $(@D)/examples/Makefile || $(MAKE) -C $(@D)/examples distclean + cd $(@D)/examples && $(QT_QMAKE) +endef + +define QWT_BUILD_EXAMPLES + $(MAKE) -C $(@D)/examples +endef + +define QWT_INSTALL_STAGING_EXAMPLES + $(INSTALL) -d $(STAGING_DIR)/usr/local/qwt-5.2.1/examples/bin + cp -f $(@D)/examples/bin/* \ + $(STAGING_DIR)/usr/local/qwt-5.2.1/examples/bin +endef + +define QWT_INSTALL_TARGET_EXAMPLES + $(INSTALL) -d $(TARGET_DIR)/usr/local/qwt-5.2.1/examples/bin + cp -f $(STAGING_DIR)/usr/local/qwt-5.2.1/examples/bin/* \ + $(TARGET_DIR)/usr/local/qwt-5.2.1/examples/bin +endef +endif + + +define QWT_CONFIGURE_CMDS + test ! -f $(@D)/Makefile || $(MAKE) -C $(@D) distclean + cd $(@D) && $(QT_QMAKE) + $(QWT_CONFIGURE_EXAMPLES) +endef + +define QWT_BUILD_CMDS + $(MAKE) -C $(@D) + $(QWT_BUILD_EXAMPLES) +endef + +define QWT_INSTALL_STAGING_CMDS + $(MAKE) INSTALL_ROOT=$(STAGING_DIR) -C $(@D) install + $(QWT_INSTALL_STAGING_EXAMPLES) +endef + +define QWT_INSTALL_TARGET_CMDS + cp -dpf $(STAGING_DIR)/usr/lib/libqwt.so* $(TARGET_DIR)/usr/lib/ + $(QWT_INSTALL_TARGET_EXAMPLES) +endef + +define QWT_CLEAN_CMDS + -$(MAKE) -C $(@D) clean + -rm $(TARGET_DIR)/usr/lib/libqwt.so.* +endef + +$(eval $(generic-package))