aboutsummaryrefslogtreecommitdiffstats
path: root/package/flot/flot.mk
blob: 97110bccfe9d8b64c8d2f01e84640b7e9b1eb4a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FLOT_VERSION = 0.8.0
FLOT_SITE = http://www.flotcharts.org/downloads
FLOT_LICENSE = MIT
FLOT_LICENSE_FILES = LICENSE.txt
FLOT_FILES = jquery.flot $(addprefix jquery.flot.,\
	$(if $(BR2_PACKAGE_FLOT_CANVAS),canvas) \
	$(if $(BR2_PACKAGE_FLOT_FILLBETWEEN),fillbetween) \
	$(if $(BR2_PACKAGE_FLOT_NAVIGATE),navigate) \
	$(if $(BR2_PACKAGE_FLOT_PIE),pie) \
	$(if $(BR2_PACKAGE_FLOT_RESIZE),resize) \
	$(if $(BR2_PACKAGE_FLOT_SELECTION),selection) \
	$(if $(BR2_PACKAGE_FLOT_STACK),stack) \
	$(if $(BR2_PACKAGE_FLOT_SYMBOL),symbol) \
	$(if $(BR2_PACKAGE_FLOT_THRESHOLD),threshold) \
	)

define FLOT_INSTALL_TARGET_CMDS
	for i in $(FLOT_FILES); do \
		$(INSTALL) -m 0644 -D $(@D)/$$i.min.js $(TARGET_DIR)/var/www/$$i.js; \
	done
endef

define FLOT_UNINSTALL_TARGET_CMDS
	rm -f $(TARGET_DIR)/var/www/jquery.flot*
endef

$(eval $(generic-package))