Getting the source
From Apache OpenOffice Wiki
Vanilla up-stream
FIXME - need some links here to where up-stream source packages are etc.
ooo-build
There are loads of versions of OO.o, and several choices of branch, with multiple outstanding patch sets. I recommend you build from up-stream CVS HEAD milestones (SRC680 milestones), with patch sets to make them easier to build from [1]
The very latest ooo-build (a small ~1.5Mb build wrapper) can be got from CVS thus:
export CVSROOT=':pserver:anonymous@anoncvs.gnome.org:/cvs/gnome'
cvs login
cvs -z3 checkout -P ooo-build
Note: You are going to need to download an additional ~150Mb of compressed source, and have ~3Gb of space space to unpack and build it in.