summaryrefslogtreecommitdiff
path: root/package/flot/flot.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-12-19 00:01:43 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2011-12-19 00:01:43 +0100
commita8342a525bb2287846d1dcfd279e54b1bfc2d3db (patch)
treec32df1a20959b67ed86c6850ad24755c35924bce /package/flot/flot.mk
parent645ff758fea4c640d1afc8d1a00da1a5f0b076ab (diff)
package: add flot jQuery plugin
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/flot/flot.mk')
-rw-r--r--package/flot/flot.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/flot/flot.mk b/package/flot/flot.mk
new file mode 100644
index 000000000..df3f4d18a
--- /dev/null
+++ b/package/flot/flot.mk
@@ -0,0 +1,23 @@
+FLOT_VERSION = 0.7
+FLOT_SITE = http://flot.googlecode.com/files
+FLOT_FILES = jquery.flot $(addprefix jquery.flot.,\
+ $(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) -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 $(call GENTARGETS))