This document should help point you at various useful bits of information.
Read the Quick Start document for instructions.
NB: For plan9, refer to the README in the nsport repository.
Look at the existing front ends for example implementations. The framebuffer front end is simplest and most self-contained. Also, you can contact the developers for help.