After I did updates on the test FreeBSD machine, it caused uninstalling virtually all TDE packages (this occasionally happens on this system 😦). When building tdegraphics I came across FTBFS because of OpenGL. After the GLU/OpenGL detection is changed, the problem is resolved.
I did a test of patch on Debian Wheezy and Ubuntu Impish – both successfully built. Please, you can do a test on other systems?