Write the speech first and practice it quite a bit. When practicing notice the emotions and maybe write breaks into your speech to allow you to feel.
The last funeral I spoke at I put a joke in and the idea was while the audience had a little laugh I could compose myself and get ready for the emotional close.
By rehearsing it you make it a bit easier but allow yourself to feel and grieve without restraint at some point.