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 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"
