You don't need any version of GLUT to satisfy a dependency on OpenGL. What you need is OpenGL headers and libraries. In Ubuntu they are installed with the libgl1-mesa-dev package.
To get the EGL build dependencies, replace the gl1 part of package name with egl1.