mirror of
https://git.busybox.net/buildroot.git
synced 2025-01-10 14:33:24 +08:00
package/openlayers: new package
Signed-off-by: Thomas Claveirole <thomas.claveirole@green-communications.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
9eeca607ba
commit
18d786d8f0
@ -1473,6 +1473,7 @@ endmenu
|
|||||||
endif
|
endif
|
||||||
source "package/jsmin/Config.in"
|
source "package/jsmin/Config.in"
|
||||||
source "package/json-javascript/Config.in"
|
source "package/json-javascript/Config.in"
|
||||||
|
source "package/openlayers/Config.in"
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "JSON/XML"
|
menu "JSON/XML"
|
||||||
|
11
package/openlayers/Config.in
Normal file
11
package/openlayers/Config.in
Normal file
@ -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
|
2
package/openlayers/openlayers.hash
Normal file
2
package/openlayers/openlayers.hash
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Locally computed:
|
||||||
|
sha256 4d62277993108a256fe4d11c02f880f15d4ef184f70e246e52cf1f164ac8ff8b v6.0.1-dist.zip
|
24
package/openlayers/openlayers.mk
Normal file
24
package/openlayers/openlayers.mk
Normal file
@ -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))
|
Loading…
Reference in New Issue
Block a user