mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/lua-sdl2: fix install path
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@gadz.org>
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit f2d1ec39e4)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
c9a56c1cd3
commit
99162d55f1
@@ -10,7 +10,15 @@ LUA_SDL2_LICENSE = ISC
|
|||||||
LUA_SDL2_LICENSE_FILES = LICENSE
|
LUA_SDL2_LICENSE_FILES = LICENSE
|
||||||
LUA_SDL2_DEPENDENCIES = luainterpreter sdl2
|
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)
|
ifeq ($(BR2_PACKAGE_SDL2_IMAGE),y)
|
||||||
LUA_SDL2_DEPENDENCIES += sdl2_image
|
LUA_SDL2_DEPENDENCIES += sdl2_image
|
||||||
|
|||||||
Reference in New Issue
Block a user