. "$GRIMOIRE"/MESON_DEPENDS &&

depends glib2 &&
depends cairo &&
depends libarchive &&
depends freetype2 &&

if [[ $LIBGXPS_BRANCH == scm ]]; then
  depends git &&
  depends gnome-common2 &&
  depends gtk-doc &&
  depends gobject-introspection
else
  optional_depends gtk-doc \
                   "enable-gtk-doc=true" \
                   "enable-gtk-doc=false" \
                   "to build documentation" &&

  optional_depends gobject-introspection \
                   "disable-introspection=false" \
                   "disable-introspection=true" \
                    "to enable introspection"

fi &&

optional_depends libpng "" "" "to build xpstopng tool" &&
optional_depends -sub PDF cairo "" "" "to build xpstopdf tool" &&
optional_depends -sub PS cairo "" "" "to build xpstops tool" &&
optional_depends -sub SVG cairo "" "" "to build xpstosvg tool" &&

optional_depends MAN \
                 "enable-man=true" \
                 "enable-man=false" \
                 "to install tools man pages" &&

optional_depends JPEG \
                 "with-libjpeg=true" \
                 "-with-libjpeg=false" \
                 "for JPEG support" &&

optional_depends tiff \
                 "with-libtiff=true" \
                 "with-libtiff=false" \
                 "for Tiff support" &&

optional_depends lcms2 \
                 "with-liblcms2=true" \
                 "without-liblcms2=false" \
                 "for Little CMS 2 support"
