kumquat-buildroot/package/openlayers/openlayers.mk
Thomas Claveirole ec1b5c59a1 package/openlayers: bump to version 7.1.0
OpenLayers changed its release format again, only two weeks after the
previous change.  The good news is, though, that they now ship a
single release archive that includes the compiled JavaScript code
together with the source code.  Furthermore, they ship both code with
a single license, which file is part of the archive.

Hence, we still do not need to rely on host-nodejs for this package,
at least not for this version.

Signed-off-by: Thomas Claveirole <thomas.claveirole@green-communications.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-09-06 16:50:02 +02:00

23 lines
736 B
Makefile

################################################################################
#
# openlayers
#
################################################################################
OPENLAYERS_VERSION = 7.1.0
OPENLAYERS_SOURCE = v$(OPENLAYERS_VERSION)-package.zip
OPENLAYERS_SITE = https://github.com/openlayers/openlayers/releases/download/v$(OPENLAYERS_VERSION)
OPENLAYERS_LICENSE = BSD-2-Clause
OPENLAYERS_LICENSE_FILES = LICENSE.md
define OPENLAYERS_EXTRACT_CMDS
unzip $(OPENLAYERS_DL_DIR)/$(OPENLAYERS_SOURCE) -d $(@D)
endef
define OPENLAYERS_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0644 $(@D)/ol.css $(TARGET_DIR)/var/www/ol.css
$(INSTALL) -D -m 0644 $(@D)/dist/ol.js $(TARGET_DIR)/var/www/ol.js
endef
$(eval $(generic-package))