D'oh, forgot usr :P
Now all cross builds automatically build qfcc and pak, bail on error, and use pkg-config correctly.
mips-linux is little endian (missed edit from the copy from ps3)
These are based on the ps3dev scripts, so native qfcc and pak are built automatically. Note that there may be a need to replace or even just nuke bison in the toolchain as it is too old and can't build qfcc.