mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-26 03:50:44 -09:00
lua*: refactor with luarocks infrastructure
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
63058f8b02
commit
5886f8c339
@@ -4,23 +4,9 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
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
|
||||
LUA_CJSON_VERSION_UPSTREAM = 2.1.0
|
||||
LUA_CJSON_VERSION = $(LUA_CJSON_VERSION_UPSTREAM)-1
|
||||
LUA_CJSON_LICENSE = MIT
|
||||
LUA_CJSON_LICENSE_FILES = lua-cjson-$(LUA_CJSON_VERSION_UPSTREAM)/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))
|
||||
$(eval $(luarocks-package))
|
||||
|
||||
Reference in New Issue
Block a user