kumquat-buildroot/package/openlayers/openlayers.mk
Thomas Claveirole 7b9b7daf52 package/openlayers: bump to version 6.14.1
Signed-off-by: Thomas Claveirole <thomas.claveirole@green-communications.fr>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-04-23 16:43:40 +02:00

25 lines
851 B
Makefile

################################################################################
#
# openlayers
#
################################################################################
OPENLAYERS_VERSION = 6.14.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) -D -m 0644 $(@D)/ol.css $(TARGET_DIR)/var/www/ol.css
$(INSTALL) -D -m 0644 $(@D)/ol.js $(TARGET_DIR)/var/www/ol.js
endef
$(eval $(generic-package))