summaryrefslogtreecommitdiffstats
path: root/package/json-javascript
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2012-06-25 04:43:17 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-05-05 22:15:28 +0200
commiteb3bff76eceeb5ee277d19f5e357b2b35e7922de (patch)
tree9948d5a7c2ac685dbde31e649d085e54feaee60c /package/json-javascript
parentbaebf863ea11dbbcfea55a5877f4be0e85c1f37b (diff)
downloadbuildroot-eb3bff76eceeb5ee277d19f5e357b2b35e7922de.tar.gz
buildroot-eb3bff76eceeb5ee277d19f5e357b2b35e7922de.zip
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>
Diffstat (limited to 'package/json-javascript')
-rw-r--r--package/json-javascript/Config.in6
-rw-r--r--package/json-javascript/json-javascript.mk20
2 files changed, 26 insertions, 0 deletions
diff --git a/package/json-javascript/Config.in b/package/json-javascript/Config.in
new file mode 100644
index 0000000000..501c54f3d1
--- /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 0000000000..a700e07d68
--- /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))
OpenPOWER on IntegriCloud