# Note: depends on cmake
# Note: depends on pkg-config
# Note: depends on mesa
# Note: depends on glu
# Note: depends on gtk+2
wget -c https://github.com/dolphin-emu/dolphin/archive/4.0.2/dolphin-4.0.2.tar.gz
tar -xzf dolphin-4.0.2.tar.gz
cd dolphin-4.0.2
sed -i -e 's/.*check for X11.*/include(FindX11)/' CMakeLists.txt
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr" -DENCODE_FRAMEDUMPS=OFF ..
make # Doesn't mind -j#
make install