Please refer to SDL2 version on https://github.com/devkitpro maintained by @cpasjuste
Soon I'll commit the SDL1.2 code there too.
About portlibs you'll have to use the ones on https://github.com/devkitpro. @realWinterMute is going to release what needed for installing them soon.
Sorry, but wintermute asked me to keep everything as clean as possible, so I removed my version of the portlibs, that indeed had some bad compilation flags.
Everything is now released. See https://devkitpro.org/viewtopic.php?f=13&t=8702&p=15914#p15914 for details. Check your PMs too