Bear/Roar Macro

Hi there,

I would like a macro that casts Incapacitating Roar, or shifts into bear form if roar is on cooldown. Would this be possible?

Thanks in advance!

Pins are your friend.