xref: /OK3568_Linux_fs/buildroot/package/openlayers/openlayers.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# openlayers
4#
5################################################################################
6
7OPENLAYERS_VERSION = 6.8.1
8OPENLAYERS_SOURCE = v$(OPENLAYERS_VERSION)-dist.zip
9OPENLAYERS_SITE = https://github.com/openlayers/openlayers/releases/download/v$(OPENLAYERS_VERSION)
10OPENLAYERS_LICENSE = BSD-2-Clause
11# There's no separate license file in the archive, only minified files.
12
13define OPENLAYERS_EXTRACT_CMDS
14	unzip $(OPENLAYERS_DL_DIR)/$(OPENLAYERS_SOURCE) -d $(@D)
15	mv $(@D)/v$(OPENLAYERS_VERSION)-dist/* $(@D)
16	rmdir $(@D)/v$(OPENLAYERS_VERSION)-dist/
17endef
18
19define OPENLAYERS_INSTALL_TARGET_CMDS
20	$(INSTALL) -D -m 0644 $(@D)/ol.css $(TARGET_DIR)/var/www/ol.css
21	$(INSTALL) -D -m 0644 $(@D)/ol.js $(TARGET_DIR)/var/www/ol.js
22endef
23
24$(eval $(generic-package))
25