summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2012-06-25 04:43:17 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-05-05 20:15:28 (GMT)
commiteb3bff76eceeb5ee277d19f5e357b2b35e7922de (patch)
tree9948d5a7c2ac685dbde31e649d085e54feaee60c
parentbaebf863ea11dbbcfea55a5877f4be0e85c1f37b (diff)
downloadbuildroot-eb3bff76eceeb5ee277d19f5e357b2b35e7922de.tar.gz
buildroot-eb3bff76eceeb5ee277d19f5e357b2b35e7922de.tar.bz2
json-javascript: new package
[Peter: update for generic-package, add license info] Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/json-javascript/Config.in6
-rw-r--r--package/json-javascript/json-javascript.mk20
3 files changed, 27 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 79b6b8f..e743dc8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -489,6 +489,7 @@ source "package/jquery-keyboard/Config.in"
source "package/jquery-sparkline/Config.in"
source "package/jquery-validation/Config.in"
source "package/jsmin/Config.in"
+source "package/json-javascript/Config.in"
endmenu
menu "Multimedia"
diff --git a/package/json-javascript/Config.in b/package/json-javascript/Config.in
new file mode 100644
index 0000000..501c54f
--- /dev/null
+++ b/package/json-javascript/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_JSON_JAVASCRIPT
+ bool "json-javascript"
+ help
+ JSON in JavaScript
+
+ https://github.com/douglascrockford/JSON-js/
diff --git a/package/json-javascript/json-javascript.mk b/package/json-javascript/json-javascript.mk
new file mode 100644
index 0000000..a700e07
--- /dev/null
+++ b/package/json-javascript/json-javascript.mk
@@ -0,0 +1,20 @@
+#############################################################
+#
+# json-javascript
+#
+#############################################################
+
+JSON_JAVASCRIPT_VERSION = 42c18c621a411c3f39a81bb0a387fc50dcd738d9
+JSON_JAVASCRIPT_SITE = git://github.com/douglascrockford/JSON-js.git
+JSON_JAVASCRIPT_LICENSE = Public Domain
+JSON_JAVASCRIPT_LICENSE_FILES = json2.js
+
+define JSON_JAVASCRIPT_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0644 -D $(@D)/json2.js $(TARGET_DIR)/var/www/json2.js
+endef
+
+define JSON_JAVASCRIPT_UNINSTALL_TARGET_CMDS
+ $(RM) $(TARGET_DIR)/var/www/json2.js
+endef
+
+$(eval $(generic-package))