Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/lua-sdl2: fix install path
@ 2019-10-07  4:02 Francois Perrad
  2019-10-07 23:33 ` Ricardo Martincoski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Francois Perrad @ 2019-10-07  4:02 UTC (permalink / raw)
  To: buildroot

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>
---
 package/lua-sdl2/lua-sdl2.mk | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/package/lua-sdl2/lua-sdl2.mk b/package/lua-sdl2/lua-sdl2.mk
index a1e54bfde..e0ed0b7e2 100644
--- a/package/lua-sdl2/lua-sdl2.mk
+++ b/package/lua-sdl2/lua-sdl2.mk
@@ -10,7 +10,17 @@ 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
+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
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-28  9:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-07  4:02 [Buildroot] [PATCH] package/lua-sdl2: fix install path Francois Perrad
2019-10-07 23:33 ` Ricardo Martincoski
2019-10-08  7:23 ` Thomas Petazzoni
2019-10-28  9:57 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox