Dhewm 3 running on my MacBook Air M1

Luckily, dhewm3’s devs decided to use cmake which makes things very easy for us:

git clone https://github.com/dhewm/dhewm3.git
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DOPENAL_INCLUDE_DIR=/opt/homebrew/Cellar/openal-soft/1.21.1/include
make -j8

Note that I had to explicitly specify where the openal-soft headers where but besides that nothing exciting.

This will create your standard AppBundle dhewm3.app in your build directory. I’ve come to re-sign my apps out of reflex because sometimes .app bundles are modified by scripts and they need to be signed starting with Big Sur.

codesign -s YOURSEXYIDENTITYHERE --force -vvvv --deep dhewm3.app

I then copied the required files down two levels to be in the same directory as the base directory:

cp -r dhewm3.app  ../../
cp base.dylib d3xp.dylib ../../

Install the base pk4 files as describe in: https://dhewm3.org/#how-to-install and you’re done. Enjoy!