summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 79b6b8f13..e743dc8b2 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 000000000..501c54f3d
--- /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 000000000..a700e07d6
--- /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))