4a09e9b54f
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>
28 lines
782 B
Makefile
28 lines
782 B
Makefile
################################################################################
|
|
#
|
|
# luasec
|
|
#
|
|
################################################################################
|
|
|
|
LUASEC_VERSION = 0.4.1
|
|
LUASEC_SITE = http://www.inf.puc-rio.br/~brunoos/luasec/download/
|
|
LUASEC_LICENSE = MIT
|
|
LUASEC_LICENSE_FILES = LICENSE
|
|
LUASEC_DEPENDENCIES = luainterpreter openssl
|
|
|
|
define LUASEC_BUILD_CMDS
|
|
$(MAKE) -C $(@D) CC="$(TARGET_CC)" LD="$(TARGET_CC)" \
|
|
CFLAGS="$(TARGET_CFLAGS) -fPIC" \
|
|
LDFLAGS="$(TARGET_LDFLAGS) -shared" linux
|
|
endef
|
|
|
|
define LUASEC_INSTALL_TARGET_CMDS
|
|
mkdir -p $(TARGET_DIR)/usr/share/lua
|
|
mkdir -p $(TARGET_DIR)/usr/lib/lua
|
|
$(MAKE) -C $(@D) \
|
|
LUAPATH="$(TARGET_DIR)/usr/share/lua" \
|
|
LUACPATH="$(TARGET_DIR)/usr/lib/lua" install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|