I’m not ready to make a PR for this yet, but if you want to experiment with SDL rather X11 as the display subsystem, then checkout the “sdl” branch of maiko.
On a Ubuntu box you’ll need to install the libsdl2-dev package using your favorite package management tool.
On a Mac, you’ll need to install the SDL2 framework, which you can get as a .dmg disk image at
https://github.com/libsdl-org/SDL/releases — install by dragging the SDL2.framework to a Finder open on /Library/Frameworks/. I have tested with version 2.26.0, which was released about an hour ago.
To build, using makeright:
./makeright sdl cleanup
./makeright sdl
and you’ll find the lde and ldesdl executables in the same place that it would previously build the lde and ldex. Make sure they’re on your search path and then you can use “run-medley” to get things going.
Things to note:
The “-pixelscale 2” option will get you a pixel-doubled display (useful on on a HiDPI display)
The keyboard input follows the OS keyboard selection, unlike X11 which uses the physical key position and corresponds to a US labelled keyboard.
I don’t have the makefile fragments for SDL on Solaris, there is still work to be done there.
If you want to enable the NetHub code as well, add -DMAIKO_ENABLE_NETHUB to the options in the makefile fragment for your OS/CPU/display subsystem (eitther SDL or X11)
If there are problems, drop me a note.