I implemented the Powermate code a few years ago; it will “probably” work if you build Ardour with “scons POWERMATE=1”
However, be aware that the Powermate only has (IIRC) 16 steps per revolution. The resolution is so low that it doesn’t work very well as a jog/shuttle wheel. I was excited to see it work but in practice it was disappointing.