Dear community,
I've been working on porting The Dark Mod natively to FreeBSD. I'm happy to report that at this stage, I have a working thedarkmod.x64 and tdm_installer executables on FreeBSD 13 amd64 (x86-64) with SVN revision 9889 and 2.10 game files. I've been able to play through both default missions as well as several contributed missions.
There were minimal changes required to get a working port, including:
Fixing the build with Clang, FreeBSD's system compiler (committed in 9889 by Stephan)
Fixing up header files and #ifdef's for FreeBSD (attached here)
Fixing up header files for zipsync (attached here)
Modifying the CMakeLists.txt to use FreeBSD system libraries instead of the pre-built libraries for Linux (working, but still cleaning this up before upstreaming the changes)
I hope the portability changes will be accepted upstream. I'll also look to see which CMakeLists.txt changes would be appropriate to upstream, but it is not too much of a problem for me to maintain it locally for FreeBSD.
Once most of the changes have landed, I also plan to create a package ("port") with a thedarkmod and tdm_installer binary.
Regards,
Kevin
patch-FreeBSD2.diff
patch-zipsync.diff