depends glib2 &&
depends intltool &&
depends dbus &&
depends dbus-glib &&

optional_depends GETTEXT \
                 "--enable-nls" \
                 "--disable-nls" \
                 "for Native Language Support" &&

optional_depends gtk-doc \
                 "--enable-gtk-doc" \
                 "--disable-gtk-doc" \
                 "to build documentation" &&

optional_depends freetype2 \
                 "--enable-font-thumbnailer" \
                 "--disable-font-thumbnailer" \
                 "for GNOME thumbnailer support" &&

optional_depends JPEG \
                 "--enable-jpeg-thumbnailer" \
                 "--disable-jpeg-thumbnailer" \
                 "for JPEG thumbnailer plugin with EXIF support" &&

optional_depends ffmpegthumbnailer \
                 "--enable-ffmpeg-thumbnailer" \
                 "--disable-ffmpeg-thumbnailer" \
                 "for ffmpeg video thumbnailer plugin" &&

optional_depends gstreamer-1.0 \
                 "--enable-gstreamer-thumbnailer" \
                 "--disable-gstreamer-thumbnailer" \
                 "for GStreamer video thumbnailer plugin" &&

optional_depends poppler \
                 "--enable-poppler-thumbnailer" \
                 "--disable-poppler-thumbnailer" \
                 "for poppler PDF/PS thumbnailer plugin" &&

optional_depends libgsf \
                 "--enable-odf-thumbnailer" \
                 "--disable-odf-thumbnailer" \
                 "for office thumbnailer plugin" &&

optional_depends -sub GNOME libopenraw \
                            "--enable-raw-thumbnailer" \
                            "--disable-raw-thumbnailer" \
                            "for RAW image thumbnailer plugin" &&

optional_depends libpng \
                 "--enable-xdg-cache" \
                 "--disable-xdg-cache" \
                 "for freedesktop.org cache plugin" &&

if is_depends_enabled $SPELL freetype2 || \
   is_depends_enabled $SPELL $(get_spell_provider $SPELL JPEG) || \
   is_depends_enabled $SPELL ffmpegthumbnailer || \
   is_depends_enabled $SPELL gstreamer || \
   is_depends_enabled $SPELL poppler || \
   is_depends_enabled $SPELL libgsf || \
   is_depends_enabled $SPELL libopenraw || \
   is_depends_enabled $SPELL libpng; then
  depends gdk-pixbuf2 '--enable-pixbuf-thumbnailer'
else
  optional_depends gdk-pixbuf2 \
                   "--enable-pixbuf-thumbnailer" \
                   "--disable-pixbuf-thumbnailer" \
                   "for GdkPixbuf thumbnailer plugin"
fi
