# Note: depends on ogre
# Note: depends on cmake
# Note: depends on ois
# Note: depends on freetype
wget -c https://github.com/MyGUI/mygui/archive/MyGUI3.2.2.tar.gz
tar -xzf MyGUI3.2.2.tar.gz
cd mygui-MyGUI3.2.2
mkdir -p build
cd build
# Disable unittests, demos and tools because they use boost's API but forget to link to it
cmake -DCMAKE_INSTALL_PREFIX="/usr" -DMYGUI_BUILD_UNITTESTS=FALSE -DMYGUI_BUILD_DEMOS=FALSE -DMYGUI_BUILD_TOOLS=FALSE -DCMAKE_CXX_FLAGS="`pkg-config --cflags OGRE`" ..
make # Doesn't mind -j#
make install