Looks like GL2 compatibility has been kept for LZDoom versions post 3.86, so we can update to the latest 3.x release tag.
Other:
* Removed the CFLAGS manipulation, since the math optimizations have been removed in c3751a4f0e, but left the warning for building with `-funsafe-math-optimizations`
* Use the direct link to the license page
Original module required game data from Debian. Debian has since removed this data to due licence issues.
Having tested adjusting the module to use manually installed game data, at least on the RPI4 it doesn't seem
to work correctly, with some screen corruption and input issues.
If someone wants to take a look at this again, it can be re-added
Use mktemp for temporary files (game_data actually had a typo on $__tmpdir, so it used the current folder).
Make sure destination exists, so the function works outside of a full install, and de-duplicate paths
Also de-duplicate descent1/descent2 paths using dest_d1/dest_d2 vars, making sure they exist
in case the function is called outside of a full install. Also update urls to the new https location.
* not all the packages are available depending on distro / version so do a check and install what we can.
* remove the added ppa repository on removal
* improve the logic in depends and return an error if OS/platform isn't supported
* config file symlinking should be done only as part of install
* makeUserDir $md_conf_root/$md_id is needed as the config directory won't be created until addPort otherwise
* alter dependencies to libsdl2-dev / libsdl2-net-dev
* default to fullscreen
* move Makefile change to retain cflags and fullscreen change into patch file
* as now using sdl2, remove dispmanx flag and enable for mali targets
* latest code requires gcc 7 or newer, so use an older revision if gcc < 7
* added missing sdl1/sdl2-image-dev dependencies and rework logic
* remove logic for sdl1 + gles for now as it's not used by any platform
* add -j with our configured number of jobs for parallel building
* performance is much better on gles, but there are glitches - possibly tweaking some options could improve this
* rework logic to build twice on the rpi4. Shader code is initially patched, commenting out the problematic "invariant"
qualifier, and then later reverted for the opengl build.
* use addEmulator to add the gles version first, then use the existing code which calls addPort
* enable gl_nopartialtextureupdates by default on rpi (fixes slowdown on rpi4 in game, doesn't seem to harm rpi1-3/videocore)
* remove makefile patch and override instead with makefile vars for parameters - this should make it simpler for adding additional gles platforms
* apply makefile.inc changes on all systems (which allows passing through of cpu parameters)
* override makefile.inc OPTIM_RELEASE parameters so we use our default optimisations
* packages seem to be available for Raspbian Buster (not aarch64 though).
* licensing is vague for these requisites - need to check, and if it looks ok, include them on our server
* updated the dependency list to include the Vorbis and VLC libraries.
* choose explicitly the SDL1 backend and build time.
* added the `dispmanx` flag to enable proper scaling on FKMS (Pi4) platforms.
* explicitly depend on `python2-dev` since python3 port is not complete.
Older GCC on at least Debian used to output a 3 part version like 6.3.0 with gcc -dumpversion
Newer GCC / OS seems to only output the major version which broke comparisons as dpkg will consider a version such as "6" to be lower than 6.0.0
* added missing libglm-dev dependency
* make sure libraspberrypi-dev is installed in videocore platform
* added switch to disable debugging Lua console
* added preloading of legacy videocore GLES2 drivers (if necessary)
* use exec to run the binary in the wrapper shell script