How to compile OpenPHT on Raspbian?

I know we have Rasplex (it’s very good indeed), but how to compile OpenPHT on Raspbian?