depends  X11-LIBS  &&
depends  perl      &&
depends  tetex     &&
depends  g++       &&

if  [  "$LYX_GUI"  =  "xforms"  ];  then
  depends  xforms
elif  [  "$LYX_GUI"  =  "qt-x11"  ];  then
  depends  qt-x11  
fi  &&

optional_depends  python                                      \
                  "--with-python"                             \
                  ""                                          \
                  "for importing old LyX files with lyx2lyx"  &&

optional_depends  ispell                                      \
                  "--with-ispell"                             \
                  ""                                          \
                  "for spell checker support through ispell"  &&

optional_depends  aspell                                      \
                  "--with-pspell"                             \
                  ""                                          \
                  "for spell checker support through aspell"  &&
                  
optional_depends  aiksaurus                      \
                  "--with-aiksaurus"             \
                  "--without-aiksaurus"          \
                  "for the Aiksaurus thesaurus"  &&


#
# The following dependencies are all runtime dependencies.
#                  
optional_depends  cvs "" ""                                               \
                  "for CVS revision control of files"                    &&
optional_depends  rcs "" ""                                               \
                  "for RCS revision control of files"                    &&
optional_depends  latex-xft-fonts "" ""                                   \
                  "ttf fonts with math symbols - used at least by the QT frontend" &&
optional_depends  POSTSCRIPT-INTERPRETER "" ""                            \
                  "for Postscript and pdf formats support."              &&
optional_depends  acroread "" ""                                          \
                  "for Acrobat Reader integration."                      &&
optional_depends  docbook-utils "" ""                                     \
                  "for tools using DocBook format."                      &&
optional_depends  grace "" ""                                             \
                  "for grace plotting tool integration."                 &&
optional_depends  groff "" ""                                             \
                  "for groff document formatting system support."        &&
optional_depends  gv "" ""                                                \
                  "for gv .ps and .pdf viewer."                          &&
optional_depends  imagemagick "" ""                                       \
                  "for integrated image manipulation with Image Magick." &&
optional_depends  latex2html "" ""                                        \
                  "for latex to html conversion support."                &&
optional_depends  linuxdoc-tools "" ""                                    \
                  "for LinuxDoc sgml format support."                    &&
optional_depends  octave "" ""                                            \
                  "for octave numerical computations support."           &&
optional_depends  sgmltools-lite "" ""                                    \
                  "for sgmltools integration."                           &&
optional_depends  tgif "" ""                                              \
                  "for figure drawing using tgif."                       &&
optional_depends  tiff "" ""                                              \
                  "for Tagg Image File Format support."                  &&
optional_depends  transfig "" ""                                          \
                  "for portable TeX graphics."                           &&
optional_depends  wv "" ""                                                \
                  "for Microsoft Word file format support."              &&
optional_depends  xdvi "" ""                                              \
                  "for dvi viewer integration."                          &&
optional_depends  xpdf "" ""                                              \
                  "for xpdf .pdf viewer integration."                    &&
optional_depends  GECKO "" ""                                             \
                  "for html previewing."
