mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
config BR2_PACKAGE_LUA_SDL2
|
||||
bool "lua-sdl2"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on !BR2_PACKAGE_LUA_5_4
|
||||
select BR2_PACKAGE_SDL2
|
||||
help
|
||||
Lua-SDL2 is a pure C binding of SDL2 to Lua 5.1, Lua 5.2,
|
||||
@@ -8,5 +9,5 @@ config BR2_PACKAGE_LUA_SDL2
|
||||
|
||||
https://github.com/Tangent128/luasdl2
|
||||
|
||||
comment "lua-sdl2 needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
comment "lua-sdl2 needs a toolchain w/ dynamic library, Lua <= 5.3"
|
||||
depends on BR2_STATIC_LIBS || BR2_PACKAGE_LUA_5_4
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 cee7875106062fbc00cf8acb3b2738e336e2327df73ede011968cb060c094bfb lua-sdl2-2.0.5-6.0.tar.gz
|
||||
sha256 cee7875106062fbc00cf8acb3b2738e336e2327df73ede011968cb060c094bfb lua-sdl2-2.0.5-6.0.tar.gz
|
||||
sha256 4f56a5b6943a8ff9611a39e7d4d88dba9ad314dcdf56c62a1425798a6e624494 LICENSE
|
||||
|
||||
@@ -10,7 +10,15 @@ LUA_SDL2_LICENSE = ISC
|
||||
LUA_SDL2_LICENSE_FILES = LICENSE
|
||||
LUA_SDL2_DEPENDENCIES = luainterpreter sdl2
|
||||
|
||||
LUA_SDL2_CONF_OPTS += -DWITH_LUAVER=user -DLUA_INCLUDE_DIR=$(STAGING_DIR)/usr/include
|
||||
ifeq ($(BR2_PACKAGE_LUAJIT),y)
|
||||
LUA_SDL2_LUAVER = JIT
|
||||
else ifeq ($(BR2_PACKAGE_LUA_5_3),y)
|
||||
LUA_SDL2_LUAVER = 53
|
||||
else
|
||||
LUA_SDL2_LUAVER = 51
|
||||
endif
|
||||
|
||||
LUA_SDL2_CONF_OPTS += -DWITH_LUAVER=$(LUA_SDL2_LUAVER) -DLUA_INCLUDE_DIR=$(STAGING_DIR)/usr/include
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SDL2_IMAGE),y)
|
||||
LUA_SDL2_DEPENDENCIES += sdl2_image
|
||||
|
||||
Reference in New Issue
Block a user