Thank you for your reply.
I know that the flags (classic, egl, gallium, gles2, shared-glapi) are written in src/overlays/overlay-amd64-generic/profile/base/make.defaults .
But why Mesa is not being installed with the flags, when I do build_packages?
Could you guess what blocks the flags?