Hi all, Emscripten is a C/C++ to asm.js and WebAssembly transpiler. It sounds like a terrible idea but it is actually very effective for porting existing OpenGL / SDL applications.
We use it a lot at work and a few of us run OpenBSD systems but up to this point I don't believe a port has ever been made. I personally have always just built it manually to /opt/emscripten. I have added the port to my github account here: https://github.com/osen/openbsd_emscripten Some notes... - Emscripten is basically a modified llvm/clang compiler called fastcomp. - Installs to $PREFIX/emscripten, with scripts to i.e $PREFIX/bin/emcc - I did this to not conflict with standard clang and to keep it all together - Requires gcc>4.8. It compiles on clang with the provided patches but the binary fails with "failed to allocate memory". I am not sure why yet. - During compiling on amd64 it can take up to ~3.5 gigs of memory (for the clang executable). When compiling as a normal user, you might need to bump up the data ulimit. - Latest version, we use an older version at work that aligns to a commercial game engine but the latest seems to work well and I plan to keep it up to date. If you would like to test, please let me know if there are any issues. I have not made an OpenBSD port for over 4 years so I am probably quite rusty. Best regards, Karsten
