Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
ISC License
385 stars 74 forks source link

Luarocks builtin recipe #20

Closed Tangent128 closed 9 years ago

Tangent128 commented 9 years ago

It would be nice if Luarocks could build Lua-SDL2 without requiring Cmake as a build dependency.

Besides the general advantage of one less dependency, Luarocks is probably smarter about the correct way to build Lua modules for different platforms.

Keep in mind that we need to link the platform's SDL2.

Tangent128 commented 9 years ago

The luarocks-builtin branch contains an initial stab at a builtin rockspec. As of the time of writing, only the core SDL module is built, and there's no provision for automatically finding the SDL2 framework on OSX.

Tangent128 commented 9 years ago

The luarocks-builtin branch rockspec seems to be complete enough for Linux, will be merging that into master in a day or three.

Windows hopefully works with some manual configuration to find the headers, OS X probably needs some platform overrides still.