aboutsummaryrefslogtreecommitdiff
path: root/package/lua-cjson
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2014-01-11 16:42:08 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-01-13 23:17:45 +0100
commita6c5347844a45a5f61260cf4e1d108c39fc6bf44 (patch)
tree7736bdfec3ea9d18cce160c126c58f898a31a773 /package/lua-cjson
parent72afb294fffe7b06aa6d1db1ced637852e408d21 (diff)
downloadbuildroot-a6c5347844a45a5f61260cf4e1d108c39fc6bf44.tar.gz
buildroot-a6c5347844a45a5f61260cf4e1d108c39fc6bf44.tar.bz2
lua-cjson: restore official name
(need by LuaRocks) Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/lua-cjson')
-rw-r--r--package/lua-cjson/Config.in14
-rw-r--r--package/lua-cjson/lua-cjson.mk26
2 files changed, 40 insertions, 0 deletions
diff --git a/package/lua-cjson/Config.in b/package/lua-cjson/Config.in
new file mode 100644
index 0000000000..8129fab4c3
--- /dev/null
+++ b/package/lua-cjson/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_LUA_CJSON
+ bool "lua-cjson"
+ depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
+ help
+ The Lua CJSON module provides JSON support for Lua. It features:
+ - Fast, standards compliant encoding/parsing routines
+ - Full support for JSON with UTF-8, including decoding surrogate pairs
+ - Optional run-time support for common exceptions to the JSON
+ specification (infinity, NaN, ...)
+ - No dependencies on other libraries
+
+ (C-module)
+
+ http://www.kyne.com.au/~mark/software/lua-cjson.php
diff --git a/package/lua-cjson/lua-cjson.mk b/package/lua-cjson/lua-cjson.mk
new file mode 100644
index 0000000000..92af23f1dc
--- /dev/null
+++ b/package/lua-cjson/lua-cjson.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# lua-cjson
+#
+################################################################################
+
+LUA_CJSON_VERSION = 2.1.0
+LUA_CJSON_SITE = http://www.kyne.com.au/~mark/software/download
+LUA_CJSON_DEPENDENCIES = luainterpreter
+LUA_CJSON_LICENSE = MIT
+LUA_CJSON_LICENSE_FILES = LICENSE
+
+define LUA_CJSON_BUILD_CMDS
+ $(MAKE) -C $(@D) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ CC="$(TARGET_CC)" \
+ LD="$(TARGET_LD)" \
+ PREFIX=$(STAGING_DIR)/usr
+endef
+
+define LUA_CJSON_INSTALL_TARGET_CMDS
+ $(MAKE) DESTDIR="$(TARGET_DIR)" PREFIX="/usr" -C $(@D) install
+endef
+
+$(eval $(generic-package))