The most straightforward way is to write a post-install script that removes stuff you don't need.
You can also change the build system (Makefiles) to install things into desired locations, this is harder and will require additional work when updating FreeBSD source to newer version.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…