if [[ ! -e /usr/include/GL/glut.h ]]; then
  # mesa-lib previously installed part of glut,
  # so install freeglut so it is complete
  lin -c freeglut
fi

# Handle cyclic depends
for mod in cairo libglvnd libva; do
  if module_installed $mod; then
    lin -c $mod
  fi
done

# Take care of the missing epoxy/glx.h in xorg-server
if [[ ! -e /usr/include/epoxy/glx.h ]]; then
  lin -c libepoxy
fi

lin -c mesa-demos
