mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 06:36:34 +00:00
luv: new package
libuv bindings for LuaJIT and Lua. [Thomas: - Move the package to the sub-menu of Lua modules. - Remove no longer needed dependency on BR2_PACKAGE_HAS_LUAINTERPRETER. - Propagate dependencies of libuv (mmu, !static, threads) - Update to upstream version 1.7.4-4. - Add hash file.] Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
dab6765150
commit
e512a4b9d0
@ -502,6 +502,7 @@ menu "Lua libraries/modules"
|
|||||||
source "package/luasocket/Config.in"
|
source "package/luasocket/Config.in"
|
||||||
source "package/luasql-sqlite3/Config.in"
|
source "package/luasql-sqlite3/Config.in"
|
||||||
source "package/lunit/Config.in"
|
source "package/lunit/Config.in"
|
||||||
|
source "package/luv/Config.in"
|
||||||
source "package/lzlib/Config.in"
|
source "package/lzlib/Config.in"
|
||||||
source "package/orbit/Config.in"
|
source "package/orbit/Config.in"
|
||||||
source "package/rings/Config.in"
|
source "package/rings/Config.in"
|
||||||
|
14
package/luv/Config.in
Normal file
14
package/luv/Config.in
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
config BR2_PACKAGE_LUV
|
||||||
|
bool "luv"
|
||||||
|
select BR2_PACKAGE_LIBUV
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_THREADS # libuv
|
||||||
|
depends on BR2_USE_MMU # libuv
|
||||||
|
depends on !BR2_STATIC_LIBS # libuv
|
||||||
|
help
|
||||||
|
libuv bindings for LuaJIT and Lua.
|
||||||
|
|
||||||
|
https://github.com/luvit/luv
|
||||||
|
|
||||||
|
comment "luv needs a toolchain w/ threads, dynamic library"
|
||||||
|
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||||
|
depends on BR2_USE_MMU
|
2
package/luv/luv.hash
Normal file
2
package/luv/luv.hash
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Locally calculated
|
||||||
|
sha256 9ea1c2343e76f653f8e7d3420d2c7718ef4eca67a645a9d17297ae91caa224b5 luv-1.7.4-4.tar.gz
|
30
package/luv/luv.mk
Normal file
30
package/luv/luv.mk
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# luv
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
LUV_VERSION = 1.7.4-4
|
||||||
|
LUV_SOURCE = luv-$(LUV_VERSION).tar.gz
|
||||||
|
LUV_SITE = https://github.com/luvit/luv/releases/download/$(LUV_VERSION)
|
||||||
|
LUV_LICENSE = Apache-2.0
|
||||||
|
LUV_LICENSE_FILE = LICENSE.txt
|
||||||
|
LUV_DEPENDENCIES = libuv
|
||||||
|
LUV_INSTALL_STAGING = YES
|
||||||
|
|
||||||
|
LUV_CONF_OPTS += \
|
||||||
|
-DBUILD_MODULE=OFF \
|
||||||
|
-DWITH_SHARED_LIBUV=ON \
|
||||||
|
-DLUA_BUILD_TYPE=System
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LUAJIT),y)
|
||||||
|
LUV_DEPENDENCIES += luajit
|
||||||
|
LUV_CONF_OPTS += \
|
||||||
|
-DWITH_LUA_ENGINE=LuaJIT
|
||||||
|
else
|
||||||
|
LUV_DEPENDENCIES += lua
|
||||||
|
LUV_CONF_OPTS += \
|
||||||
|
-DWITH_LUA_ENGINE=Lua
|
||||||
|
endif
|
||||||
|
|
||||||
|
$(eval $(cmake-package))
|
Loading…
x
Reference in New Issue
Block a user