From 3703edb516145ffdfab5be9f705e54256bb51efd Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Mon, 22 May 2017 15:13:07 +0200 Subject: [PATCH] lua-sdl2: new package Signed-off-by: Francois Perrad [Thomas: add missing !BR2_STATIC_LIBS dependency, inherited from SDL2.] Signed-off-by: Thomas Petazzoni --- package/Config.in | 1 + package/lua-sdl2/Config.in | 16 ++++++++++++++++ package/lua-sdl2/lua-sdl2.hash | 2 ++ package/lua-sdl2/lua-sdl2.mk | 13 +++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 package/lua-sdl2/Config.in create mode 100644 package/lua-sdl2/lua-sdl2.hash create mode 100644 package/lua-sdl2/lua-sdl2.mk diff --git a/package/Config.in b/package/Config.in index d6b9901554..e1007ccd40 100644 --- a/package/Config.in +++ b/package/Config.in @@ -567,6 +567,7 @@ menu "Lua libraries/modules" source "package/lua-messagepack/Config.in" source "package/lua-msgpack-native/Config.in" source "package/lua-periphery/Config.in" + source "package/lua-sdl2/Config.in" source "package/lua-testmore/Config.in" source "package/luabitop/Config.in" source "package/luacrypto/Config.in" diff --git a/package/lua-sdl2/Config.in b/package/lua-sdl2/Config.in new file mode 100644 index 0000000000..f716dba9b5 --- /dev/null +++ b/package/lua-sdl2/Config.in @@ -0,0 +1,16 @@ +config BR2_PACKAGE_LUA_SDL2 + bool "lua-sdl2" + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_SDL2 + select BR2_PACKAGE_SDL2_IMAGE + select BR2_PACKAGE_SDL2_MIXER + select BR2_PACKAGE_SDL2_NET + select BR2_PACKAGE_SDL2_TTF + help + Lua-SDL2 is a pure C binding of SDL2 to Lua 5.1, Lua 5.2, + Lua 5.3, and LuaJIT. + + https://github.com/Tangent128/luasdl2 + +comment "lua-sdl2 needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS diff --git a/package/lua-sdl2/lua-sdl2.hash b/package/lua-sdl2/lua-sdl2.hash new file mode 100644 index 0000000000..56a2eeda6c --- /dev/null +++ b/package/lua-sdl2/lua-sdl2.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 36b626485529f318f284e0cc0c806d5a425fbde4e1e6329d4d5ee9f495ecff62 lua-sdl2-2.0.5.6.0-1.src.rock diff --git a/package/lua-sdl2/lua-sdl2.mk b/package/lua-sdl2/lua-sdl2.mk new file mode 100644 index 0000000000..adb3723c84 --- /dev/null +++ b/package/lua-sdl2/lua-sdl2.mk @@ -0,0 +1,13 @@ +################################################################################ +# +# lua-sdl2 +# +################################################################################ + +LUA_SDL2_VERSION = 2.0.5.6.0-1 +LUA_SDL2_LICENSE = ISC +LUA_SDL2_SUBDIR = luasdl2-2.0.5-6.0 +LUA_SDL2_LICENSE_FILES = $(LUA_SDL2_SUBDIR)/LICENSE +LUA_SDL2_DEPENDENCIES = sdl2 sdl2_image sdl2_mixer sdl2_net sdl2_ttf + +$(eval $(luarocks-package)) -- 2.30.2