From patchwork Thu Oct 17 13:18:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Claveirole X-Patchwork-Id: 1178594 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=green-communications.fr Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46v8z44zgJz9sPV for ; Fri, 18 Oct 2019 00:24:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3094D8693F; Thu, 17 Oct 2019 13:24:46 +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 W2DE3vQkbimN; Thu, 17 Oct 2019 13:24:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 803488625B; Thu, 17 Oct 2019 13:24:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id C37BE1BF834 for ; Thu, 17 Oct 2019 13:24:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BFFE620518 for ; Thu, 17 Oct 2019 13:24:43 +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 ABq5mVuvuRHH for ; Thu, 17 Oct 2019 13:24:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by silver.osuosl.org (Postfix) with ESMTPS id F3274203F1 for ; Thu, 17 Oct 2019 13:24:41 +0000 (UTC) Received: from hardbit.localdomain ([92.154.77.116]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.168]) with ESMTPSA (Nemesis) id 1MWRmF-1iWoqT0ZC7-00XqZW; Thu, 17 Oct 2019 15:19:34 +0200 From: Thomas Claveirole To: buildroot@buildroot.org Date: Thu, 17 Oct 2019 15:18:51 +0200 Message-Id: <20191017131851.26272-2-thomas.claveirole@green-communications.fr> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191017131851.26272-1-thomas.claveirole@green-communications.fr> References: <20191017131851.26272-1-thomas.claveirole@green-communications.fr> MIME-Version: 1.0 X-Provags-ID: V03:K1:yopW/gorQUI6iDvYW1jVKLerxCG2zZCU6vzwMTA22Om0Rw8fU+B M1T8ozPiMRqWMN58oRkXvTDomoV2GUHG1Vr/qO54eYCGJPPjsWlaFuM1Cl2pmB2Y7dElJqV wOB9HNujI1drT5+zz6BFBXroDQ/sSLMBNNIy3WevH1h0DWTNRs4rJzb06/xwc2i1m3DxAUf ARnKZmlYtDxPVRciZzYZg== X-UI-Out-Filterresults: notjunk:1; V03:K0:4IOP/+LIaLQ=:jG11IlromhxH4LvdH9VMPw L3RdsV8q5O7pzK2esPzPU0ESMI5r9sG7C20dumsefofkF2rcCNdqZCgM3gdWmRgmvjbB94+wD yiuTuDYIQlL8xxJiS/exA4/yp/0UlNCRDVVI9U4vnmaSjm+x5EAkoE1h1sTFi1W/CGtdsHADs i/RAzcUWje60PRdpV1qLmEt3VVlwjYRY/2rfV+6m1nYHvW/SrJ+BRhpQoGtAnY9DU4Jo6LJdf M/DUsZhks5E0bT32mbmrcI0OG7NjQBjA6hefG/7LCb0DCS3xMALWmyt1eOpm9WCTB+Ihbwb0a wzAuAzCP6LsdvBE0YJaGWA/e5v870eAsUDyMAv5ssQ4Igznlt57ifDVf9AeYPPONWIUuDjjuI dNYFzJu0KnPSRULvaXS1v2GWCmBaa3uWlhotmd2ErRwvVAcJT/fSfVgZ9+cyCbOj2h6NAOj1L m5mRB7gB++g4+ogY6h7nmUC6x0gFbLtoFu6WnkCo01syDWizqp1Fto5tH+a+nLGDqPIM40hr1 g3zfVliwdQXqWSuu2WNJlmlM9O5bzZxgtdAeOi1uUyA5lZ0plbQAlPcuxhrzMY8VLBA+WHmZl SGiOUc9yMlfGDU0p5Ug0c2NHBcbU1LCoEzRSTTumFeDz1JwcLQssnDsINYVcZWAjAip1DvJ89 8vdRKrcBu0cmtrf7FOA6kAeIULHVBQbeQ+eX6bjhJ36siKcT7uLdWnpRxtLTTB6/YaBu70950 Ykc6VD+QSXdU955cfgnepMFZnS4D5v1pyTOhqBbWrrLmS79TzcLv3tzwSKjs7RT70fkhsjRCu O8/B5jDBJWV/8xZ4/tkXSyukQfe2QMzY034xZEUBkjCzy5/Mb3aMciG/Ayiflhpz4F2Aljm07 FaLaLADiDR74OrDSq7+po5kuuQqZqgESMPROvhWPbA/K0dVsH80UTg7ESpLLNW Subject: [Buildroot] [PATCH] package/openlayers: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Claveirole Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" --- package/Config.in | 1 + package/openlayers/Config.in | 11 +++++++++++ package/openlayers/openlayers.hash | 2 ++ package/openlayers/openlayers.mk | 24 ++++++++++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 package/openlayers/Config.in create mode 100644 package/openlayers/openlayers.hash create mode 100644 package/openlayers/openlayers.mk diff --git a/package/Config.in b/package/Config.in index a51313235c..c739a968cb 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1471,6 +1471,7 @@ endmenu endif source "package/jsmin/Config.in" source "package/json-javascript/Config.in" + source "package/openlayers/Config.in" endmenu menu "JSON/XML" diff --git a/package/openlayers/Config.in b/package/openlayers/Config.in new file mode 100644 index 0000000000..a7b7f334cf --- /dev/null +++ b/package/openlayers/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_OPENLAYERS + bool "openlayers" + help + OpenLayers makes it easy to put a dynamic map in any web + page. It can display map tiles, vector data and markers + loaded from any source. OpenLayers has been developed to + further the use of geographic information of all kinds. It + is completely free, Open Source JavaScript, released under + the 2-clause BSD License (also known as the FreeBSD). + + https://openlayers.org diff --git a/package/openlayers/openlayers.hash b/package/openlayers/openlayers.hash new file mode 100644 index 0000000000..edb6f937e1 --- /dev/null +++ b/package/openlayers/openlayers.hash @@ -0,0 +1,2 @@ +# Locally computed: +sha256 4d62277993108a256fe4d11c02f880f15d4ef184f70e246e52cf1f164ac8ff8b v6.0.1-dist.zip diff --git a/package/openlayers/openlayers.mk b/package/openlayers/openlayers.mk new file mode 100644 index 0000000000..6dadc6d96a --- /dev/null +++ b/package/openlayers/openlayers.mk @@ -0,0 +1,24 @@ +################################################################################ +# +# openlayers +# +################################################################################ + +OPENLAYERS_VERSION = 6.0.1 +OPENLAYERS_SOURCE = v$(OPENLAYERS_VERSION)-dist.zip +OPENLAYERS_SITE = https://github.com/openlayers/openlayers/releases/download/v$(OPENLAYERS_VERSION) +OPENLAYERS_LICENSE = BSD-2-Clause +# There's no separate license file in the archive, only minified files. + +define OPENLAYERS_EXTRACT_CMDS + unzip $(OPENLAYERS_DL_DIR)/$(OPENLAYERS_SOURCE) -d $(@D) + mv $(@D)/v$(OPENLAYERS_VERSION)-dist/* $(@D) + rmdir $(@D)/v$(OPENLAYERS_VERSION)-dist/ +endef + +define OPENLAYERS_INSTALL_TARGET_CMDS + $(INSTALL) -m 0644 -D -t $(TARGET_DIR)/var/www/ \ + $(@D)/ol.css $(@D)/ol.js +endef + +$(eval $(generic-package))