From: Simon Dawson Date: Mon, 25 Jun 2012 04:43:17 +0000 (+0000) Subject: json-javascript: new package X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb3bff76eceeb5ee277d19f5e357b2b35e7922de;p=buildroot.git json-javascript: new package [Peter: update for generic-package, add license info] Signed-off-by: Simon Dawson Signed-off-by: Peter Korsgaard --- diff --git a/package/Config.in b/package/Config.in index 79b6b8f138..e743dc8b21 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 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))