package: add explorercanvas
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 18 Dec 2011 23:07:46 +0000 (00:07 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 18 Dec 2011 23:07:46 +0000 (00:07 +0100)
Explorercanvas is a HTML5 canvas tag emulation library for IE<9.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/explorercanvas/Config.in [new file with mode: 0644]
package/explorercanvas/explorercanvas.mk [new file with mode: 0644]

index bfa4b405f48c518e33c39da8f3c3511fc23f1de4..1c62ea37eb7389fbbb4c968504b805713dcb0ee4 100644 (file)
@@ -323,6 +323,7 @@ endmenu
 endif
 
 menu "Javascript"
+source "package/explorercanvas/Config.in"
 source "package/flot/Config.in"
 source "package/jquery/Config.in"
 source "package/jquery-sparkline/Config.in"
diff --git a/package/explorercanvas/Config.in b/package/explorercanvas/Config.in
new file mode 100644 (file)
index 0000000..9714a58
--- /dev/null
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_EXPLORERCANVAS
+       bool "explorercanvas"
+       help
+         Modern browsers like Firefox, Safari, Chrome and Opera
+         support the HTML5 canvas tag to allow 2D command-based
+         drawing. ExplorerCanvas brings the same functionality to
+         Internet Explorer (<v9). To use, web developers only need to
+         include a single script tag in their existing web pages.
+
+         http://excanvas.sf.net/
diff --git a/package/explorercanvas/explorercanvas.mk b/package/explorercanvas/explorercanvas.mk
new file mode 100644 (file)
index 0000000..93dcb1f
--- /dev/null
@@ -0,0 +1,18 @@
+EXPLORERCANVAS_VERSION = r3
+EXPLORERCANVAS_SITE = http://explorercanvas.googlecode.com/files/
+EXPLORERCANVAS_SOURCE = excanvas_$(EXPLORERCANVAS_VERSION).zip
+
+define EXPLORERCANVAS_EXTRACT_CMDS
+       unzip -d $(@D) $(DL_DIR)/$(EXPLORERCANVAS_SOURCE)
+endef
+
+define EXPLORERCANVAS_INSTALL_TARGET_CMDS
+       $(INSTALL) -D $(@D)/excanvas.compiled.js \
+               $(TARGET_DIR)/var/www/excanvas.js
+endef
+
+define EXPLORERCANVAS_UNINSTALL_TARGET_CMDS
+       rm -f $(TARGET_DIR)/var/www/excanvas.js
+endef
+
+$(eval $(call GENTARGETS))