Return to Castle Wolfenstein (RtCW) on FreeBSD

Last modified: 10/02/2018


Return to Castle Wolfenstein (RtCW) on FreeBSD
Fig.: Return to Castle Wolfenstein on FreeBSD 9.2 (64 bit) with Nvidia BLOB driver and Nvidia Distance Fog enabled

Several first-person shooter games are available through the FreeBSD ports collection. One of them is Return to Castle Wolfenstein (RtCW), the successor of Wolfenstein 3D. The port is based on the Linux version and requires the Linux binary compatibility layer for FreeBSD to run.

Instead of the Linux port, you can compile a native FreeBSD client for RtCW. The source code is hosted on Gitorious (mirror). Clone the repository with:

$ git clone


You will need GCC and gmake to compile the source code. In the main directory, simply run:

$ gmake

The game binaries can be found in the directory build afterwards. The game data has to be copied to the directory main. Unfortunately, the game data can’t be taken from the CD directly. You either have to use Wine or VirtualBox to install RtCW and then copy the following files to the directory main:

The game can be started by running wolfsp.amd64 (on FreeBSD x86-64).

Wide Screen

Like other games with Quake engine, RtCW can be played in wide screen mode by altering the aspect ratio of the screen in the configuration file. To play the game in 1920×1200, change the following lines in ~/.wolf/main/wolfconfig.cfg:

seta cg_fov "106.27"
seta r_customheight "1200"
seta r_customwidth "1920"
seta r_mode "-1"

The field of view variable cg_fov should be set to 106.27 at 16:9 and 100.39 at 16:10. If the game crashes at some scenes, for instance, at the ropeway sequence, the aspect ratio must be set to 4:3 temporary as a work around.

Valid XHTML 1.0 Valid CSS