depends libpng &&
depends zlib &&
depends pango &&
depends -sub "PDF PS SVG" cairo &&
depends gtk+2 &&
depends fribidi &&
depends freetype2 &&
depends libgsf &&
depends wv &&
depends libxml2 &&
depends -sub FONT fontconfig &&
depends librsvg2 &&

if list_find "$ABIWORD_OPTS" "--enable-plugins"; then
  depends boost "--with-boost"
else
  optional_depends boost \
                   "--with-boost" \
                   "--without-boost" \
                   "for Boost library support"
fi &&

optional_depends goffice \
                 "--with-goffice" \
                 "--without-goffice" \
                 "for goffice library support" &&

optional_depends gnome-vfs2 \
                 "--with-gnomevfs" \
                 "--without-gnomevfs" \
                 "for gnome-vfs library support" &&

optional_depends enchant \
                 "--enable-spell" \
                 "--disable-spell" \
                 "for spell checking support" &&
optional_depends asio '--enable-collab-backend-tcp' \
                      '--disable-collab-backend-tcp' \
                      'for the tcp collaboration plugin' &&
optional_depends empathy '--enable-collab-backend-telepathy' \
                         '--disable-collab-backend-telepathy' \
                         'for the telepathy collaboration plugin' &&
optional_depends loudmouth '--enable-collab-backend-xmpp' \
                           '--disable-collab-backend-xmpp' \
                           'for the XMPP/Jabber collaboration plugin' &&
optional_depends dbus-glib '--enable-collab-backend-sugar' \
                           '--disable-collab-backend-sugar' \
                           'for the Sugar collaboration plugin' &&
optional_depends libsoup '--enable-collab-backend-service' \
                         '--disable-collab-backend-service' \
                         'for the service collaboration plugin' &&
if is_depends_enabled $SPELL libsoup; then
  depends asio
fi &&
optional_depends libwmf '' '' 'for the Windows Metafile Format plugin' &&
optional_depends libgda4 '' '' 'for gda database access plugin' &&
optional_depends gtkmathview '' '' 'for mathview MathML plugin' &&
optional_depends libwpd '' '' 'for the WordPerfect plugin' &&
optional_depends libwpg '' '' 'for the WordPerfect graphics plugin' &&
optional_depends aiksaurus '' '' 'for the aiksaurus (thesaurus) plugin' &&
optional_depends psiconv '' '' 'for the psiconv (psion conversion) plugin' &&
optional_depends gimp '' '' 'for the gimp plugin' &&
optional_depends tidy '' '' 'for HTML cleaning using tidy'
