. "$GRIMOIRE/FUNCTIONS" &&

depends -sub TLS glib-networking &&

depends atk &&
depends babl &&
depends cairo &&
depends curl &&
depends fontconfig &&
depends freetype2 &&
depends gegl &&
depends gexiv2 &&
depends glib2 &&
depends gtk+2 &&
depends harfbuzz &&
depends intltool &&
depends JPEG &&
depends lcms2 &&
depends libart_lgpl &&
depends libglade2 &&
depends libmypaint &&
depends libpng &&
depends librsvg2 &&
depends LZMA &&
depends mypaint-brushes &&
depends gegl &&
depends pango &&
depends poppler &&
depends tiff &&
depends xml-parser-expat &&


if spell_ok gegl && is_version_less $(installed_version gegl) 0.3.0; then
  force_depends gegl
fi &&

optional_depends openexr \
                 "--with-openexr" \
                 "--without-openexr" \
                 "for OpenEXR support" &&

optional_depends libwmf \
                 "--with-wmf" \
                 "--without-wmf" \
                 "for Windows Metafile Format support" &&

optional_depends pygtk2 \
                 "--enable-python" \
                 "--disable-python" \
                 "for python support" &&
if is_depends_enabled $SPELL pygtk2; then
  depends pycairo
fi &&

optional_depends hal \
                 "--with-hal" \
                 "--without-hal" \
                 "for HAL support" &&

optional_depends gnome-vfs2 \
                 "--with-gnomevfs" \
                 "--without-gnomevfs" \
                 "for gnomevfs support" &&

optional_depends openjpeg \
                 "--with-jpeg2000" \
                 "--without-jpeg2000" \
                 "for JPEG 2000 support" &&

optional_depends libexif \
                 "--with-libexif" \
                 "--without-libexif" \
                 "for EXIF jpeg tag support" &&

optional_depends webkitgtk \
                 "--with-webkit" \
                 "--without-webkit" \
                 "for WebKit-based help browser plugin" &&

#optional_depends libheif \
#                 "--with-libheif" \
#                 "--without-libheif" \
#                 "for libheif support" &&

optional_depends libmng \
                 "--with-libmng" \
                 "--without-libmng" \
                 "for MNG animations support" &&

optional_depends libwebp \
                 "--with-webp" \
                 "--without-webp" \
                 "for webp support" &&

optional_depends aalib \
                 "--with-aa" \
                 "--without-aa" \
                 "for ASCII Art Plugin" &&

optional_depends alsa-lib \
                 "--with-alsa" \
                 "--without-alsa" \
                 "for alsa support in midi input controller" &&

optional_depends MAIL-TRANSPORT-AGENT \
                 "--with-sendmail=$INSTALL_ROOT/usr/lib" \
                 "--without-sendmail" \
                 "for MTA used by mail plug-in" &&

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

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