. "$GRIMOIRE/FUNCTIONS" &&

if [[ "$GTK_VER" == "devel" ]]; then
  depends -sub GLIB_DEVEL glib2 &&
  depends -sub "CAIRO_DEVEL PDF PS SVG X GOBJ" cairo &&
  optional_depends -sub GOBJ_DEVEL gobject-introspection \
                                 "--enable-introspection=yes" \
                                 "--enable-introspection=no" \
                                 "to enable introspection support"
else
  depends glib2 &&
  depends -sub "PDF PS SVG X GOBJ" cairo &&
  optional_depends gobject-introspection \
                                 "--enable-introspection=yes" \
                                 "--enable-introspection=no" \
                                 "to enable introspection support"
fi

depends gdk-pixbuf2 &&
simple_version_check_force_depends gdk-pixbuf2 226 3 &&
depends atk &&
simple_version_check_force_depends atk 253 3 &&
depends pango &&
simple_version_check_force_depends pango 130 3 &&

depends at-spi2-atk &&
depends libsm &&
depends libxext &&
depends libxcursor &&
depends libxrender &&

optional_depends gtk+2 \
                 "--enable-gtk2-dependency" \
                 "--disable-gtk2-dependency" \
                 "to rely on an existing gtk-update-icon-cache utility instead of building our own" &&

optional_depends libxinerama \
                 "--enable-xinerama" \
                 "--disable-xinerama" \
                 "for X11 Xinerama extension support" &&

optional_depends libxrandr                            \
                 ""                                   \
                 ""                                   \
                 "for X11 Resize and Rotate support"  &&

optional_depends libxcomposite                  \
                 ""                             \
                 ""                             \
                 "for X11 Compositing support"  &&

optional_depends libxdamage                                  \
                 ""                                          \
                 ""                                          \
                 "for X11 Damaged region extension support"  &&

optional_depends libxfixes                                      \
                 ""                                             \
                 ""                                             \
                 "for X11 workarounds for various limitations"  &&

optional_depends gtk-doc \
                 "--enable-gtk-doc" \
                 "--disable-gtk-doc" \
                 "Build documentation with gtk-doc" &&

optional_depends cups \
                 "--enable-cups" \
                 "--disable-cups" \
                 "Enable CUPS print backend support?"
