1. Install the FreeBSD DocBook support
2. Increase the limits for tex so that it has enough
   memory.  See the installjadtex.pdf file
  #> kpsewhich --expand-var '$TEXMFMAIN'
   /usr/local/share/texmf
  #> cd /usr/local/share/texmf
  #> ls
ChangeLog       dvips           makeindex       pdfetex         updates.dat
aliases         etex            metafont        pdftex          web2c
bibtex          fontname        metapost        source          xdvi
context         fonts           mft             tex
doc             ls-R            omega           texconfig
  #> web2c
amiga-pl.tcx                    mktex.opt
cp1250cs.tcx                    mktexdir
...
  #> find . -name '*.cnf'
./web2c/texmf.cnf
./web2c/fmtutil.cnf
./web2c/mktex.cnf
  #> cd web2c
  #> cp texmf.cnf texmf.cnf.orig
  check to see if texmf.cnf has the following as the
  first lines

% original texmf.cnf -- runtime path configuration file for kpathsea.
% (If you change or delete `original' on the previous line, the
% distribution won't install its version over yours.)
% Public domain.

  remove or change original

  Look for hugelatex settings:

% hugelatex settings
% added by hugelatex package

main_memory.hugelatex = 1100000
param_size.hugelatex = 1500
stack_size.hugelatex = 1500
hash_extra.hugelatex = 15000
string_vacancies.hugelatex = 45000
pool_free.hugelatex = 47500
nest_size.hugelatex = 500
save_size.hugelatex = 5000
pool_size.hugelatex = 500000
max_strings.hugelatex = 55000
font_mem_size.hugelatex= 400000

Set the tex defaults to these values (remove the .hugelatex suffix)
  
#> texconfig init
