. "$GRIMOIRE/FUNCTIONS" &&

depends SSL  &&
depends intltool &&
depends curl     &&
depends libevent &&

if spell_ok libevent && is_version_less $(installed_version libevent) 2.0.10; then
  force_depends libevent
fi &&

runtime_depends zlib &&

optional_depends gtk+3 \
                 "--with-gtk" \
                 "--without-gtk" \
                 "for GTK+ client" &&

if is_depends_enabled $SPELL gtk+3; then
  depends GETTEXT '--enable-nls' &&

  optional_depends libcanberra "" "" "for sounds support" &&
  optional_depends dbus-glib "" "" "for dbus support"
else
  optional_depends GETTEXT \
                   "--enable-nls" \
                   "--disable-nls" \
                   "for native language support"
fi &&

optional_depends libnatpmp \
                 "--enable-external-natpmp" \
                 "--disable-external-natpmp" \
                 "to use system natpmp"
