3a. Building OXCE from source on Mac (tested on macOS 10.15 Catalina)Install brew, see:
https://brew.sh/3.1 Install tools and dependencies via brew:
For recent versions (macOS 10.13+)
brew install git cmake zip yaml-cpp --with-static-lib sdl sdl_gfx sdl_image sdl_mixer --with-flac --with-libmikmod --with-libvorbis --with-static-lib
For older versions (e.g. macOS 10.9), you may need a simpler command:
brew install git cmake zip sdl sdl_gfx sdl_image sdl_mixer yaml-cpp
3.2 Now OXCE itself
On macOS 10.13 or earlier:
git clone https://github.com/MeridianOXC/OpenXcom.git
cd OpenXcom
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE="Release"
make -j4
Starting with macOS 10.14 (Mojave), there are issues with OpenGL, which is not supported by Apple anymore.
The compilation works, but the game doesn't.
Therefore, you will need an earlier version of the SDK and instruct cmake to lower the deployment target.
You can download SDK for macOS 10.9 here:
MacOSX10.9.sdk.zipI recommend placing it into /Developer/SDKs/MacOSX10.9.sdk
EDIT: macOS 10.15 (Catalina) will probably not allow you to place the SDK there... just put it anywhere it allows you and change the cmake command accordingly
Updated cmake command:
cmake .. -DCMAKE_BUILD_TYPE="Release" -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.9.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9
You will end up with build/openxcom.app bundle.
A .dmg is made out of it using:
make package