mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-28 04:50:36 -09:00
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>
This commit is contained in:
committed by
Peter Korsgaard
parent
72afb294ff
commit
a6c5347844
14
package/lua-cjson/Config.in
Normal file
14
package/lua-cjson/Config.in
Normal file
@@ -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
|
||||
26
package/lua-cjson/lua-cjson.mk
Normal file
26
package/lua-cjson/lua-cjson.mk
Normal file
@@ -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))
|
||||
Reference in New Issue
Block a user