This file contains detailed instructions on how to Install libogg and libvorbis on Plan9.

There are two slightly different versions, /n/sources/contrib/cnielsen/libogg/ and http://www.cs.helsinki.fi/u/anyrhine/p9/ - I installed anyrhines', but as I have seen so far in the mkfiles, cnielsens' version is only slightly different.

By the date of this writting, mklib does not install headerfiles: Do that yourself:
@{cd libogg && tar cp ogg} | @{cd /$objtype/include && tar xT}
@{cd libvorbis && tar cp vorbis} | @{cd /$objtype/include && tar xT}

anyrhines' does not set LIBDIR, thus the libraries are kept in your homedir:
cd libogg ; cp libogg.a? /$objtype/lib/
cd libvorbis ; cp libvorbis.a? /$objtype/lib/


Finally, the headerfiles, which set #pragma lib, also have set some path to anyrhines' home dir. Edit ogg/ogg.h and vorbis/codec.h and adjust #pragma lib - you actually do not need any path if they are at the right place, so just the filename will work, so for example #pragrma lib "libogg.a$O"

