Hi Itpritt! Alright, so I've been exploring the possibility of compiling mednafen directly, and I've got SDL 2 compiled. I hacked together a Portfile that can build the SM64EX version within Macports, so it hopefully won't conflict with other stuff, and as a bonus this might let SDL 2 be used for other programs that depend on it (if it works correctly, I haven't been able to test it yet).
If you (or anyone else) is interested, attached to this post you'll find a file - a zip archive containing both the overlay and the SDL source code, each in a .tar.gz (I couldn't attach .tar.gz directly to this post). Here's what you need to do: (and I apologize for how tedious and ugly this is going to be, I'm still very new to working with MacPorts):
(Also, I'm assuming you have macports installed and it's at /opt/local , the default installation location. If not, wherever you see this path, change it to wherever your repo is located)
Step 1: Extract the .zip file, then extract the sdl_overlay.tar.gz file (but don't extract the other one, the sdl2.0.6-master.tar.gz). I extracted mine into ~/src , but pretty much any location will work, just make sure you remember where it is.
Step 2: Edit /opt/local/etc/macports/sources.conf . At the bottom, you'll see a line that says something like rsync://rsync.macports.org . Above it, write a line that starts with file:// , and points to the sdl_overlay folder. So mine would be "file:///Users/mirage/src/sdl_overlay" for example. It has to be before the official macports repo so it has priority.
Step 3: Make a folder called "libsdl2" in /opt/local/var/macports/distfiles , and copy the sdl2.0.6-master file into it. Don't extract it - MacPorts will do that itself.
Step 4: run "sudo chown macports /opt/local/var/macports/distfiles/libsdl2/leopard_sdl2.0.6-master.tar.gz". This will ensure the macports build user can access it.
Step 5: All you should need to do now is "sudo port -v install libsdl2". Assuming I haven't forgotten a step, it should extract the file, compile it, and install it automatically - it compiles fine on my PowerBook, although I have yet to actually test it with anything. As a warning, there is one file in the build process that takes much longer to compile than the others, so it might appear frozen at one point. It's not, it'll just take a while before continuing.
If I can test that it works with something like Mednafen, and after I have someone more experienced than me look it over and help me figure out how to get it to stop tacking .tar.gz to the end of the distfile, I'll see if I can get it merged into the MacPorts base tree, so you won't have to deal with this yourself. But until then, if you want to try compiling Mednafen manually, this will remove a significant roadblock for you.
If you give this a try and run into any issues, please let me know! I tried to be thorough, but I'm certain I forgot a step or hardcoded something incorrectly. Don't expect it to work on the first go, this setup is incredibly brittle haha.
And if you decide to undo it, don't forget to delete or comment out the overlay line in your Macports sources.conf file after uninstalling it.
On to Mednafen itself!