040ab81555
Bump to latest release that bundles lua-openssl 0.7.4 to fix compatibility with OpenSSL 1.1.1a. Drop patches 0001 and 0002 that are included in the new release. Successfully build and runtime tested on Banana Pro, note that version string for lua-openssl does not match the tag name (0.7.4): ``` luvi v2.9.0 zlib: 1.2.11 libuv: 1.25.0 ssl: OpenSSL 1.1.1a 20 Nov 2018, lua-openssl 0.7.3 ``` Fixes: http://autobuild.buildroot.net/results/e87994a3dc987f5aa101a5e721ac927e21453373 http://autobuild.buildroot.net/results/ea725ad90cfcd3c5e242268a593dcabd7297fe70 http://autobuild.buildroot.net/results/f2fb9eea0044e4a5f674742d29ea95af49cf5a45 http://autobuild.buildroot.net/results/de4daa1b930f907f06640dc98a708016217ddea5 .. and many more. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
63 lines
1.8 KiB
Makefile
63 lines
1.8 KiB
Makefile
################################################################################
|
|
#
|
|
# luvi
|
|
#
|
|
################################################################################
|
|
|
|
LUVI_VERSION = v2.9.0
|
|
LUVI_SOURCE = luvi-src-$(LUVI_VERSION).tar.gz
|
|
LUVI_SITE = https://github.com/luvit/luvi/releases/download/$(LUVI_VERSION)
|
|
LUVI_LICENSE = Apache-2.0
|
|
LUVI_LICENSE_FILES = LICENSE.txt
|
|
LUVI_DEPENDENCIES = libuv luajit luv host-luajit
|
|
|
|
# Dispatch all architectures of LuaJIT
|
|
ifeq ($(BR2_i386),y)
|
|
LUVI_TARGET_ARCH = x86
|
|
else ifeq ($(BR2_x86_64),y)
|
|
LUVI_TARGET_ARCH = x64
|
|
else ifeq ($(BR2_powerpc),y)
|
|
LUVI_TARGET_ARCH = ppc
|
|
else ifeq ($(BR2_arm)$(BR2_armeb),y)
|
|
LUVI_TARGET_ARCH = arm
|
|
else ifeq ($(BR2_mips),y)
|
|
LUVI_TARGET_ARCH = mips
|
|
else ifeq ($(BR2_mipsel),y)
|
|
LUVI_TARGET_ARCH = mipsel
|
|
else
|
|
LUVI_TARGET_ARCH = $(BR2_ARCH)
|
|
endif
|
|
|
|
# Bundled lua bindings have to be linked statically into the luvi executable
|
|
LUVI_CONF_OPTS = \
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
-DWithSharedLibluv=ON \
|
|
-DTARGET_ARCH=$(LUVI_TARGET_ARCH) \
|
|
-DLUA_PATH=$(HOST_DIR)/share/luajit-$(LUAJIT_VERSION)/?.lua
|
|
|
|
# Add "rex" module (PCRE via bundled lrexlib)
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
LUVI_DEPENDENCIES += pcre
|
|
LUVI_CONF_OPTS += -DWithPCRE=ON -DWithSharedPCRE=ON
|
|
else
|
|
LUVI_CONF_OPTS += -DWithPCRE=OFF -DWithSharedPCRE=OFF
|
|
endif
|
|
|
|
# Add "ssl" module (via bundled lua-openssl)
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
LUVI_DEPENDENCIES += openssl
|
|
LUVI_CONF_OPTS += -DWithOpenSSL=ON -DWithOpenSSLASM=ON -DWithSharedOpenSSL=ON
|
|
else
|
|
LUVI_CONF_OPTS += -DWithOpenSSL=OFF -DWithOpenSSLASM=OFF -DWithSharedOpenSSL=OFF
|
|
endif
|
|
|
|
# Add "zlib" module (via bundled lua-zlib)
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
LUVI_DEPENDENCIES += zlib
|
|
LUVI_CONF_OPTS += -DWithZLIB=ON -DWithSharedZLIB=ON
|
|
else
|
|
LUVI_CONF_OPTS += -DWithZLIB=OFF -DWithSharedZLIB=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|