depends gtk+3                                                     &&
depends -sub 2.4 gmime                                            &&
depends glib2                                                     &&
depends libesmtp                                                  &&
depends rarian                                                    &&

if [[ $HTML_WIDGET == "webkit" ]]; then
  depends webkitgtk3 "--with-html-widget=webkit" 
elif [[ $HTML_WIDGET == "gtkhtml" ]]; then
  depends gtkhtml2 "--with-html-widget=gtkhtml4"
fi &&

optional_depends pcre                                             \
                 "--enable-pcre"                                  \
                 "--disable-pcre"                                 \
                 "to enable perl compatible regular expressions"  &&

optional_depends SSL                                          \
                 "--with-ssl"                                     \
                 "--without-ssl"                                  \
                 "to enable opensasl authentication for POP/IMAP" &&

optional_depends openldap                                         \
                 "--with-ldap"                                    \
                 "--without-ldap"                                 \
                 "to enable ldap use"                             &&

optional_depends krb5                                             \
                 "--with-gss"                                     \
                 "--without-gss"                                  \
                 "to enable gssapi kerberos based authentication" &&

optional_depends gpgme                                            \
                 "--with-gpgme"                                   \
                 "--without-gpgme"                                \
                 "for message signing and encryption"             &&

optional_depends libcanberra                                      \
                 "--with-canberra"                                \
                 "--without-canberra"                             \
                 "for filter sounds"                              &&

optional_depends gtksourceview3                                   \
                 "--with-gtksourceview"                           \
                 "--without-gtksourceview"                        \
                 "for a more powerful compositor"                 &&

optional_depends gtkspell3                                        \
                 "--with-gtkspell"                                \
                 "--without-gtkspell"                             \
                 "for spelling checking"                          &&

optional_depends libnotify                                        \
                 "--with-libnotify"                               \
                 "--without-libnotify"                            \
                 "for notification support"                       &&

optional_depends network-manager                                  \
                 "--with-nm"                                      \
                 "--without-nm"                                   \
                 "for network-manager support"                    &&

optional_depends sqlite                                           \
                 "--with-sqlite"                                  \
                 "--without-sqlite"                               \
                 "to use SQLite for SPE address books"            &&

optional_depends libsecret                                        \
                 "--with-libsecret"                               \
                 "--without-libsecret"                            \
                 "to use gnome-keyring"                           &&

optional_depends rubrica                                          \
                 "--with-rubrica"                                 \
                 "--without-rubrica"                              \
                 "for Rubrica address book support"               &&

if is_depends_enabled $SPELL rubrica; then
  depends libxml2
fi
