This results into the thing not respecting compiler/cflags/... It should be somehow possible to patch to use the eclass, it can be run on any part of the source tree and installed, then the configure needs to be patched to not rerun the cmake.
i don't think that's true. the configure script explicitly passes along the compiler and flags when building in xbmc/visualizations/XBMCProjectM/libprojectM. where exactly do you see cmake being run and it not respecting settings ?
Hmm, you are right it looks like it pass all the required cflags/ldflags. Closing as invalid then.