http://forums.freebsd.org/showthread.php?t=1923
To summary the problem:
The cause of the problem is that the system needs OpenGL to be installed before installing xorg-server.
If you want to compile from source (other than using package management system). You need to install OpenGL.
Question: Where can I find OpenGL ?
Answer:
OpenGL is just a standard, there is no one library called "OpenGL".
However, you can find some OpenGL implementation (e.g. Mesa 3D -- an open source implementation). After installing "Mesa3D", you will find a "gl.h" header file in your {prefix}/include directory. And that is the OpenGL library. There are other libraries together too. And that will solve the problem.
** Be careful of the version of MesaLib you use. Make sure it is compatible with your xorg-server's version !!!