From patchwork Mon Apr 4 14:10:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Corjon X-Patchwork-Id: 605889 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 3qdv6d6t42z9s3v for ; Tue, 5 Apr 2016 00:11:21 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 54E0C89D3C; Mon, 4 Apr 2016 14:11:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yjuTySdUc7zC; Mon, 4 Apr 2016 14:11:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 309698930D; Mon, 4 Apr 2016 14:11:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id BC2131C1EC3 for ; Mon, 4 Apr 2016 14:11:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B4F03892F3 for ; Mon, 4 Apr 2016 14:11:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SHyu5cB32bTC for ; Mon, 4 Apr 2016 14:11:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qg0-f47.google.com (mail-qg0-f47.google.com [209.85.192.47]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 692E088C70 for ; Mon, 4 Apr 2016 14:11:04 +0000 (UTC) Received: by mail-qg0-f47.google.com with SMTP id f52so54844533qga.3 for ; Mon, 04 Apr 2016 07:11:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5ZpyFyxJfuS0o4ydKp+Xi7n8Xwtn/2EjLQutTHqFD4o=; b=b5yoNFogEoPYuOIka8D0xovM9hHPNiAB1C/mRrC70OS8OxgxObxoxuHvJfHR1oHJw7 QodKyS0/vr5ejKsmhg8FeIjbQND+QaqLN/3KNpW7Uedn2PcEBlSbkQnzz6YGwzUmUf4L 5G0BAsFMFxUw/gDJQQCUXGITlAzCKEEGwvsDsmblZ7tajxW6pXKkhmuGmid3ExAQd2kQ BwQirVFT+qAkIjSeP0vbmktIY5ild4gjyvhxv/B06G9IA/JXdgc/OW+AT0QQ0qgysqR4 Bw8IZZ2Ux+lP3I5ouLXRPv5zNch6l5+0vUTx1yklMSIb7eGOVMLZejlI67+taC84BWwl 2mqg== X-Gm-Message-State: AD7BkJKjbrwvjVbTFe6OjCr4lVcELANHFXGNIjJK3HVChfy1A9JXoric2jfBg/c/RQjGnA== X-Received: by 10.194.21.197 with SMTP id x5mr7916828wje.90.1459779063486; Mon, 04 Apr 2016 07:11:03 -0700 (PDT) Received: from mic341-linux.sinters-int.fr ([195.200.174.78]) by smtp.gmail.com with ESMTPSA id q62sm14236635wmg.12.2016.04.04.07.11.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Apr 2016 07:11:02 -0700 (PDT) From: Julien Corjon To: buildroot@buildroot.org Date: Mon, 4 Apr 2016 16:10:53 +0200 Message-Id: <1459779053-19936-1-git-send-email-corjon.j@ecagroup.com> X-Mailer: git-send-email 2.5.0 Cc: ECA SINTERS software Subject: [Buildroot] [PATCH] qt5location: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Signed-off-by: Julien Corjon --- package/qt5/Config.in | 1 + package/qt5/qt5location/Config.in | 10 ++++++ package/qt5/qt5location/qt5location.hash | 2 ++ package/qt5/qt5location/qt5location.mk | 61 ++++++++++++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 package/qt5/qt5location/Config.in create mode 100644 package/qt5/qt5location/qt5location.hash create mode 100644 package/qt5/qt5location/qt5location.mk diff --git a/package/qt5/Config.in b/package/qt5/Config.in index f673daa..ecae7cb 100644 --- a/package/qt5/Config.in +++ b/package/qt5/Config.in @@ -37,6 +37,7 @@ source "package/qt5/qt5declarative/Config.in" source "package/qt5/qt5enginio/Config.in" source "package/qt5/qt5graphicaleffects/Config.in" source "package/qt5/qt5imageformats/Config.in" +source "package/qt5/qt5location/Config.in" source "package/qt5/qt5multimedia/Config.in" source "package/qt5/qt5quickcontrols/Config.in" source "package/qt5/qt5sensors/Config.in" diff --git a/package/qt5/qt5location/Config.in b/package/qt5/qt5location/Config.in new file mode 100644 index 0000000..209d134 --- /dev/null +++ b/package/qt5/qt5location/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_QT5LOCATION + bool "qt5location" + select BR2_PACKAGE_QT5BASE + help + Qt is a cross-platform application and UI framework for + developers using C++. + + This package corresponds to the qt5location module. + + http://qt.io diff --git a/package/qt5/qt5location/qt5location.hash b/package/qt5/qt5location/qt5location.hash new file mode 100644 index 0000000..e078ec5 --- /dev/null +++ b/package/qt5/qt5location/qt5location.hash @@ -0,0 +1,2 @@ +# Hash from: http://download.qt.io/official_releases/qt/5.6/5.6.0/submodules/qtlocation-opensource-src-5.6.0.tar.xz.mirrorlist +sha256 360e1519d0fcafe4f86923d224e76d56dd785dfb0e1a19fd2e2b0016799653c9 qtlocation-opensource-src-5.6.0.tar.xz diff --git a/package/qt5/qt5location/qt5location.mk b/package/qt5/qt5location/qt5location.mk new file mode 100644 index 0000000..358b162 --- /dev/null +++ b/package/qt5/qt5location/qt5location.mk @@ -0,0 +1,61 @@ +################################################################################ +# +# qt5location +# +################################################################################ + +QT5LOCATION_VERSION = $(QT5_VERSION) +QT5LOCATION_SITE = $(QT5_SITE) +QT5LOCATION_SOURCE = qtlocation-opensource-src-$(QT5LOCATION_VERSION).tar.xz +QT5LOCATION_DEPENDENCIES = qt5base +QT5LOCATION_INSTALL_STAGING = YES + +ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y) +QT5LOCATION_LICENSE = GPLv2 or GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs) +QT5LOCATION_LICENSE_FILES = LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL +else +QT5LOCATION_LICENSE = Commercial license +QT5LOCATION_REDISTRIBUTE = NO +endif + +ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y) +QT5LOCATION_DEPENDENCIES += qt5declarative +endif + +define QT5LOCATION_CONFIGURE_CMDS + (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake) +endef + +define QT5LOCATION_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define QT5LOCATION_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install + $(QT5_LA_PRL_FILES_FIXUP) +endef + +ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y) +define QT5LOCATION_INSTALL_TARGET_QMLS + cp -dpfr $(STAGING_DIR)/usr/qml/QtPositioning $(TARGET_DIR)/usr/qml/ + cp -dpfr $(STAGING_DIR)/usr/qml/QtLocation $(TARGET_DIR)/usr/qml/ +endef +define QT5LOCATION_INSTALL_TARGET_LOCATION + cp -dpf $(STAGING_DIR)/usr/lib/libQt5Location.so.* $(TARGET_DIR)/usr/lib + cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/geoservices $(TARGET_DIR)/usr/lib/qt/plugins/ +endef +endif + +define QT5LOCATION_INSTALL_TARGET_POSITION + cp -dpf $(STAGING_DIR)/usr/lib/libQt5Positioning.so.* $(TARGET_DIR)/usr/lib + cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/position $(TARGET_DIR)/usr/lib/qt/plugins/ +endef + +define QT5LOCATION_INSTALL_TARGET_CMDS + $(QT5LOCATION_INSTALL_TARGET_POSITION) + $(QT5LOCATION_INSTALL_TARGET_LOCATION) + $(QT5LOCATION_INSTALL_TARGET_QMLS) +endef + + +$(eval $(generic-package))