Since iortcw port is not maintained for several years already i will just drop this here.
This is only for Single Player. I have not tested MP.
Install build deps:
# pkg_add sdl2 sdl2-{image,net,mixer,ttf} sdl sdl-{image,net,mixer,ttf} openal gmake git
Fetch latest iortcw(currently its 1.51c)
$ git clone https://github.com/iortcw/iortcw; sync; cd iortcw/SP;
I have linked clang as gcc/g++ and it was fine(i know its idiotic, don't kill me):
# ln -s /usr/bin/c++ /usr/bin/g++; ln -s /usr/bin/cc /usr/bin/gcc
Change the following lines in file code/splines/util_str.cpp:
477 to idStr e( (const char *) NULL );
491 to a = c + (const char *) NULL;
494 to a = (const char *) NULL + d;
498 to a += (const char *) NULL;
Compile with:
gmake OR gmake -jX (X the number of you CPU cores)
Folder named 'build' will be present with binaries:
$ cd build/release*
Final libs are wrongly named so rename it, basically just change x84_64 with amd64:
$ mv renderer_sp_opengl1_x86_64.so renderer_sp_opengl1_amd64.so
$ mv renderer_sp_rend2_x86_64.so renderer_sp_rend2_amd64.so
$ mv main/cgame.sp.x86_64.so main/cgame.sp.amd64.so
$ mv main/qagame.sp.x86_64.so main/qagame.sp.amd64.so
$ mv main/ui.sp.x86_64.so main/ui.sp.amd64.so
Copy pak0.pk3 and all sp* pak files to appropriate location, i will go with default main folder in build/release*:
$ cp ~/Games/pak0.pk3 main/; cp ~/Games/sp*pk3 main/; sync
Download patchdata:
$ curl https://github.com/iortcw/iortcw/releases/download/1.51c/patch-data-141.zip > patch-data-141.zip
Extract patchdata in main folder:
$ unzip patch-data-141.zip
In build/release* folder there should be iowolfsp.x86_64 binary, just execute it.
That's it. Enjoy.