Still a lot more to do but pushing WIP to not have it wasted if more commits come in from others. Also got rid of some global variables. (cherry picked from commit ff2d22d915)
ff2d22d915
This is the code from the 'gimp-2.9' branch of the plug-in, integrated into GIMP's build system. (cherry picked from commit 79bc2dc1ef)
79bc2dc1ef