Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel devel: Add lua-sdl2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b910359ed2e4
branches:  trunk
changeset: 435558:b910359ed2e4
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 09 10:04:25 2020 +0000

description:
devel: Add lua-sdl2

Lua-SDL2 is a portable binding of SDL2, written in pure C for efficiency.
It tries to stay as close to SDL as possible, acting as a simple binding
rather than attempting to re-design the interaction between the programmer
and SDL.

Lua-SDL2 takes full advantage of Lua's object-oriented capabilities wherever
possible, allowing the programmer to fully leverage SDL's inherent
object-oriented design.

diffstat:

 devel/Makefile          |   3 ++-
 devel/lua-sdl2/DESCR    |   8 ++++++++
 devel/lua-sdl2/Makefile |  28 ++++++++++++++++++++++++++++
 devel/lua-sdl2/PLIST    |  33 +++++++++++++++++++++++++++++++++
 devel/lua-sdl2/distinfo |   6 ++++++
 5 files changed, 77 insertions(+), 1 deletions(-)

diffs (108 lines):

diff -r d5883bfaf16c -r b910359ed2e4 devel/Makefile
--- a/devel/Makefile    Thu Jul 09 09:42:58 2020 +0000
+++ b/devel/Makefile    Thu Jul 09 10:04:25 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3165 2020/07/08 16:23:23 nia Exp $
+# $NetBSD: Makefile,v 1.3166 2020/07/09 10:04:25 nia Exp $
 #
 
 COMMENT=       Development utilities
@@ -876,6 +876,7 @@
 SUBDIR+=       lua-posix
 SUBDIR+=       lua-rocks
 SUBDIR+=       lua-say
+SUBDIR+=       lua-sdl2
 SUBDIR+=       lua-std-_debug
 SUBDIR+=       lua-std-normalize
 SUBDIR+=       lua-stdlib
diff -r d5883bfaf16c -r b910359ed2e4 devel/lua-sdl2/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-sdl2/DESCR      Thu Jul 09 10:04:25 2020 +0000
@@ -0,0 +1,8 @@
+Lua-SDL2 is a portable binding of SDL2, written in pure C for efficiency.
+It tries to stay as close to SDL as possible, acting as a simple binding
+rather than attempting to re-design the interaction between the programmer
+and SDL.
+
+Lua-SDL2 takes full advantage of Lua's object-oriented capabilities wherever
+possible, allowing the programmer to fully leverage SDL's inherent
+object-oriented design.
diff -r d5883bfaf16c -r b910359ed2e4 devel/lua-sdl2/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-sdl2/Makefile   Thu Jul 09 10:04:25 2020 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 10:04:25 nia Exp $
+
+DISTNAME=      luasdl2-2.0.5.6.0
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1}
+CATEGORIES=    devel lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=Tangent128/}
+GITHUB_PROJECT=        luasdl2
+GITHUB_TAG=    v2.0.5-6.0
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/Tangent128/luasdl2
+COMMENT=       Pure C binding of SDL 2.0 for Lua
+LICENSE=       isc
+
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+=   -DWITH_DOCSDIR="share/doc/${PKGNAME_NOREV}"
+CMAKE_ARGS+=   -DWITH_LUAVER="user"
+CMAKE_ARGS+=   -DLUA_LIBDIR=${LUA_CDIR}
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../fonts/SDL2_ttf/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.include "../../net/SDL2_net/buildlink3.mk"
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r d5883bfaf16c -r b910359ed2e4 devel/lua-sdl2/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-sdl2/PLIST      Thu Jul 09 10:04:25 2020 +0000
@@ -0,0 +1,33 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 10:04:25 nia Exp $
+${LUA_CDIR}/SDL.so
+${LUA_CDIR}/SDL/image.so
+${LUA_CDIR}/SDL/mixer.so
+${LUA_CDIR}/SDL/net.so
+${LUA_CDIR}/SDL/ttf.so
+share/doc/${PKGNAME}/examples/audio/audio-processor.lua
+share/doc/${PKGNAME}/examples/audio/audio.lua
+share/doc/${PKGNAME}/examples/audio/gun.wav
+share/doc/${PKGNAME}/examples/font/DejaVuSans.ttf
+share/doc/${PKGNAME}/examples/font/font.lua
+share/doc/${PKGNAME}/examples/image/Lua-SDL2.png
+share/doc/${PKGNAME}/examples/image/image.lua
+share/doc/${PKGNAME}/examples/joystick/joystick.lua
+share/doc/${PKGNAME}/examples/keyboard/keyboard.lua
+share/doc/${PKGNAME}/examples/paths/paths.lua
+share/doc/${PKGNAME}/examples/rwops/rwops.lua
+share/doc/${PKGNAME}/examples/tcp/client.lua
+share/doc/${PKGNAME}/examples/tcp/server.lua
+share/doc/${PKGNAME}/examples/threads/channel.lua
+share/doc/${PKGNAME}/examples/udp/client.lua
+share/doc/${PKGNAME}/examples/udp/server.lua
+share/doc/${PKGNAME}/tutorials/01-initialization/tutorial.lua
+share/doc/${PKGNAME}/tutorials/02-window/tutorial.lua
+share/doc/${PKGNAME}/tutorials/03-events/tutorial.lua
+share/doc/${PKGNAME}/tutorials/04-drawing/Lua-SDL2.png
+share/doc/${PKGNAME}/tutorials/04-drawing/tutorial.lua
+share/doc/${PKGNAME}/tutorials/05-sound/gun.wav
+share/doc/${PKGNAME}/tutorials/05-sound/tutorial.lua
+share/doc/${PKGNAME}/tutorials/06-text/DejaVuSans.ttf
+share/doc/${PKGNAME}/tutorials/06-text/tutorial.lua
+share/doc/${PKGNAME}/tutorials/07-bouncing/Lua-SDL2.png
+share/doc/${PKGNAME}/tutorials/07-bouncing/tutorial.lua
diff -r d5883bfaf16c -r b910359ed2e4 devel/lua-sdl2/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-sdl2/distinfo   Thu Jul 09 10:04:25 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/09 10:04:25 nia Exp $
+
+SHA1 (luasdl2-2.0.5.6.0.tar.gz) = 44ba8a90dfb1a20e10badea65bcbc56863eb413b
+RMD160 (luasdl2-2.0.5.6.0.tar.gz) = aa999efd4c4cf524c0d360edac8d79f44873e6e8
+SHA512 (luasdl2-2.0.5.6.0.tar.gz) = 9c10c15f24fc46b4e4c3de9545dd1b680bd740d0e9f76e4aa799534b0d447a690623815b1d6034b1a1e3d81ae6d86f4e922dbac1eae659f343dd54949db60998
+Size (luasdl2-2.0.5.6.0.tar.gz) = 11147375 bytes



Home | Main Index | Thread Index | Old Index