2013-06-20 06:40:50 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# luaposix
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-12-29 03:07:25 +01:00
|
|
|
LUAPOSIX_VERSION = 34.0.4
|
|
|
|
LUAPOSIX_SITE = $(call github,luaposix,luaposix,v$(LUAPOSIX_VERSION))
|
2013-06-20 06:40:50 +02:00
|
|
|
LUAPOSIX_LICENSE = MIT
|
2017-09-24 09:59:24 +02:00
|
|
|
LUAPOSIX_LICENSE_FILES = LICENSE
|
2016-03-03 22:12:46 +01:00
|
|
|
LUAPOSIX_DEPENDENCIES = luainterpreter host-lua
|
2013-06-20 06:40:50 +02:00
|
|
|
|
2017-09-24 09:59:24 +02:00
|
|
|
define LUAPOSIX_BUILD_CMDS
|
|
|
|
(cd $(@D); \
|
|
|
|
$(LUA_RUN) build-aux/luke \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LUA_INCDIR=$(STAGING_DIR)/usr/include \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LUAPOSIX_INSTALL_TARGET_CMDS
|
|
|
|
(cd $(@D); \
|
|
|
|
$(LUA_RUN) build-aux/luke install \
|
|
|
|
INST_LIBDIR="$(TARGET_DIR)/usr/lib/lua/$(LUAINTERPRETER_ABIVER)" \
|
|
|
|
INST_LUADIR="$(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)" \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|