. "$GRIMOIRE/VDEPENDS" &&
. "$GRIMOIRE/FUNCTIONS" &&

vdepends <<!
	JPEG
	LZMA
	at-spi2-core >= 2.45.0
	babl
	cairo
	curl
	fontconfig
	freetype2
	gegl >= 0.3.0
	gexiv2
	glib-networking[TLS]
	glib2
	gtk+2
	harfbuzz
	intltool
	lcms2
	libart_lgpl
	libglade2
	libmypaint
	libpng
	mypaint-brushes
	pango
	poppler
	tiff
	xml-parser-expat
!

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 librsvg2 \
                 "--with-librsvg" \
                 "--without-librsvg" \
                 "for SVG 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"
