2019-10-17 15:18:50 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# openlayers
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-11-04 17:16:16 +01:00
|
|
|
OPENLAYERS_VERSION = 6.1.1
|
2019-10-17 15:18:50 +02:00
|
|
|
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
|
2019-10-24 12:05:58 +02:00
|
|
|
$(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
|
2019-10-17 15:18:50 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|