depends  flex     &&
depends  bison    &&
depends  kdebase  &&
depends  perl     &&

source  $SECTION_DIRECTORY/KDE_DEPENDS  &&

optional_depends  openssl                         \
                  '--with-ssl'                    \
                  '--without-ssl'                 \
                  'to use encrypted connections'  &&

optional_depends  cyrus-sasl                                                                                                         \
                  '--with-sasl'                                                                                                                 \
                  '--without-sasl'                                                                                                                 \
                  'for SASL authentication support (which may be needed for working with e-mail with SMTP and IMAP -- RECOMMENDED)'  &&

# bug #13483
if is_depends_enabled  $SPELL  cyrus-sasl
then
  sub_depends  kdebase  SASL
fi  &&

config_query ENCRYPTION  \
             'Would you like to enable encryption support in KMail?' y
if  [  "$ENCRYPTION"  ==  "y"  ];  then
optional_depends  gnupg                                             \
                  '--with-gpg'                                      \
                  '--without-gpg'                                   \
                  'for basic encryption functionality in KMail'     &&

# needed for the funopen call in the internal gpgme tree
depends gnupg-exp &&

optional_depends  gpgme                                             \
                  ''                                                \
                  ''                                                \
                  'for GPGME support in KMail'                      &&

optional_depends  pinentry                                          \
                  ''                                                \
                  ''                                                \
                  'for PGP/MIME support in KMail'
fi  &&


config_query SPAM_FILTER  \
             'Would you like to enable spam filtering in KMail?' y
if  [  "$SPAM_FILTER"  ==  "y"  ];  then
  optional_depends  bogofilter                              \
                    ''                                      \
                    ''                                      \
                    'to use bogofilter as a spam filter'    &&
  
  optional_depends  spamassassin                            \
                    ''                                      \
                    ''                                      \
                    'to use spamassassin as a spam filter'  &&
  
  optional_depends  spambayes                               \
                    ''                                      \
                    ''                                      \
                    'to use spambayes as a spam filter'
fi  &&


config_query ANTI_VIRUS  \
             'Would you like to enable virus scanning in KMail?' y
if  [  "$ANTI_VIRUS"  ==  "y"  ];  then
  optional_depends  clamav                              \
                    ''                                  \
                    ''                                  \
                    'to use ClamAV as a virus scanner'
fi  &&


config_query  PALM_PILOT                                                    \
    'Would you like to enable Palm compatible PDAs support in KDE-PIM?'  y  &&

if  [  "$PALM_PILOT"  ==  "y"  ];  then
  optional_depends  pilot-link                        \
                    ''                                \
                    ''                                \
                    'To have kpilot built'            &&
  
  optional_depends  libmal                            \
                    '--with-mal'                      \
                    '--without-mal'                   \
                    'for malsync support'
fi  &&

optional_depends  libopensync                       \
                  ''                                \
                  ''                                \
                  'to sync with other devices'      &&

optional_depends  kdetoys                           \
                  ''                                \
                  ''                                \
                  'for weather reports in Kontact'  &&

optional_depends  fontconfig                    \
                  ''                            \
                  ''                            \
                  'to configure font access'    &&

optional_depends  libxml2                       \
                  ''                            \
                  ''                            \
                  'for a C++ XML interface'     &&

optional_depends  libxslt                       \
                  ''                            \
                  ''                            \
                  'for XSLT support'            &&

optional_depends  freetype2                     \
                  ''                            \
                  ''                            \
                  'for freetype support'        &&

optional_depends  POSTSCRIPT-INTERPRETER               \
                  ''                                   \
                  ''                                   \
                  'for a PostScript(R) interpreter'    &&

optional_depends  mysql                          \
                  ''                             \
                  ''                             \
                  'for MySQL database support'   &&

optional_depends  postgresql                        \
                  ''                                \
                  ''                                \
                  'for PostgreSQL database support' &&

optional_depends  unixodbc                       \
                  ''                             \
                  ''                             \
                  'for ODBC database support'    &&

optional_depends  openldap                       \
                  ''                             \
                  ''                             \
                  'for LDAP support'             &&

optional_depends  gnokii                         \
                  '--with-gnokii'                \
                  '--without-gnokii'             \
                  'for mobile phone support'

