mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-03-12 21:52:11 +00:00
This patch introduces the luainterpreter virtual package, which is provided either by 'lua' or by 'lua-jit'. Packages that require a Lua interpreter can then depend on BR2_PACKAGE_LUAINTERPRETER (in their Config.in) and luainterpreter (in their .mk). Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [yann.morin.1998@free.fr: switch to package-defined providers, apply Thomas' comments] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
31 lines
953 B
Makefile
31 lines
953 B
Makefile
################################################################################
|
|
#
|
|
# luaexpat
|
|
#
|
|
################################################################################
|
|
|
|
LUAEXPAT_VERSION = 1.2.0
|
|
LUAEXPAT_SITE = http://matthewwild.co.uk/projects/luaexpat
|
|
LUAEXPAT_DEPENDENCIES = luainterpreter expat
|
|
LUAEXPAT_LICENSE = MIT
|
|
|
|
|
|
LUAEXPAT_MFLAGS += LUA_VERSION_NUM=501
|
|
LUAEXPAT_MFLAGS += LUA_INC=$(STAGING_DIR)/usr/include/lua
|
|
LUAEXPAT_MFLAGS += EXPAT_INC=$(STAGING_DIR)/usr/include
|
|
LUAEXPAT_MFLAGS += LIBNAME=lxp.so
|
|
LUAEXPAT_MFLAGS += LIB_OPTION="-shared -fPIC $(TARGET_CFLAGS)"
|
|
LUAEXPAT_MFLAGS += CC="$(TARGET_CC) -fPIC $(TARGET_CFLAGS)"
|
|
|
|
|
|
define LUAEXPAT_BUILD_CMDS
|
|
$(MAKE) -C $(@D) $(LUAEXPAT_MFLAGS)
|
|
endef
|
|
|
|
define LUAEXPAT_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D $(@D)/src/lxp.so $(TARGET_DIR)/usr/lib/lua/lxp.so
|
|
$(INSTALL) -D -m 0644 $(@D)/src/lxp/lom.lua $(TARGET_DIR)/usr/share/lua/lxp/lom.lua
|
|
endef
|
|
|
|
$(eval $(generic-package))
|