# Note: depends on cmake
# Note: depends on freeimage
# Note: depends on ogre (with freeimage support)
# Note: depends on SDL2
# Note: depends on enet
# Note: depends on mygui
# Note: depends on stuntrally-tracks
# Note: depends on libogg
# Note: depends on libvorbis
# Note: depends on boost
wget -c https://github.com/stuntrally/stuntrally/archive/2.2/stuntrally-2.2.tar.gz
tar -xzf stuntrally-2.2.tar.gz
cd stuntrally-2.2
sed -i -e '1i#include <stdexcept>' source/sdl4ogre/sdlwindowhelper.cpp
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
make # Doesn't mind -j#
make install