. "${GRIMOIRE}/FUNCTIONS" &&

depends cmake &&
depends libx11 &&
depends libxext &&
depends glm &&

if spell_ok gcc && is_version_less $(installed_version gcc) 4.8; then
  depends -sub REGEX boost
fi &&

optional_depends icu \
                 "-DSLOP_UNICODE=ON" \
                 "-DSLOP_UNICODE=OFF" \
                 "for Unicode support" &&

optional_depends OPENGL \
                 "-DSLOP_OPENGL=ON" \
                 "-DSLOP_OPENGL=OFF" \
                 "for OpenGL support (also requires GLEW)" &&

if is_depends_enabled ${SPELL} $(get_spell_provider ${SPELL} OPENGL); then
  depends libxrender &&
  depends glew
fi
