depends -sub CXX gcc &&
depends autoconf &&
depends automake &&
depends libtool &&
depends gtk+2 &&
depends icu &&
depends gperf &&
depends libpng &&
depends JPEG &&
depends bison &&
depends flex &&
depends sqlite &&
depends libsoup &&
depends enchant &&
depends libxt &&
depends RUBY &&

optional_depends cairo '--enable-svg' \
                       '--disable-svg' \
                       'Enable SVG support?'

optional_depends libxslt '--enable-xslt' \
                         '--disable-xslt' \
                         'for XSLT support' &&

optional_depends gtk-doc '--enable-gtk-doc' \
                         '--disable-gtk-doc' \
                         'for documentation generation' &&

if [[ ! $WEBKIT_FONT_BE == freetype2 ]]; then
  depends pango "--with-font-backend=pango"
fi &&
depends freetype2 &&

optional_depends gst-plugins-base  \
                 "--enable-video" \
                 "--disable-video" \
                 "for HTML5 streaming video support" &&

#optional_depends gobject-introspection             \
#                 "--enable-introspection"          \
#                 "--disable-introspection"         \
#                 "to enable introspection"         &&

optional_depends geoclue                             \
                 "--enable-geolocation"              \
                 "--disable-geolocation"             \
                 "to enable geolocation support"     &&

case $WEBKIT_ACC in
  opengl)
    depends OPENGL "--with-acceleration-backend=opengl"
  ;;
  clutter)
    depends clutter "--with-acceleration-backend=clutter"
  ;;
  *)
    OPTS+=" --with-acceleration-backend=none"
  ;;
esac

#if is_depends_enabled $SPELL gobject-introspection; \
#  then depends gir-repository; fi

depends atk &&
depends fontconfig &&
depends gdk-pixbuf2 &&
depends glib2 &&
depends libx11 &&
depends libxml2
