How to change compile options of a selected package before building a distro?

I am choosing what packages to be included into the distro - that’s fine.
However, I need ffmpeg to be compiled with -hwaccel option. How do I do that?

Thanks,
//Agron

Build it with that option in the build service and add your own repo to the project.