[Buildroot] [git commit] package/lua-sdl2: fix install path
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Tue Oct 8 07:22:48 UTC 2019
commit: https://git.buildroot.net/buildroot/commit/?id=f2d1ec39e4a86d223de686ed86a48e7b59bd7689
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
WITH_LUAVER must be set with a value depending of Lua interpreter,
by this way, the module is installed in the correct location
Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
Tested-by: Ricardo Martincoski <ricardo.martincoski at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/lua-sdl2/lua-sdl2.mk | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/package/lua-sdl2/lua-sdl2.mk b/package/lua-sdl2/lua-sdl2.mk
index a1e54bfded..43fa2668c6 100644
--- a/package/lua-sdl2/lua-sdl2.mk
+++ b/package/lua-sdl2/lua-sdl2.mk
@@ -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
More information about the buildroot
mailing list