depends cmake &&
depends make &&
depends glib2 &&
depends libxml2 &&
depends lua54 &&

optional_depends libmicrohttpd \
                 "-DBUILD_HTTP=on" \
                 "-DBUILD_HTTP=off" \
                 "for HTTP support" &&

optional_depends libx11 \
                 "-DBUILD_X11=on" \
                 "-DBUILD_X11=off" \
                 "for X11 support" &&

if is_depends_enabled $SPELL libx11; then
  optional_depends libxdamage \
                   "-DBUILD_XDAMAGE=on" \
                   "-DBUILD_XDAMAGE=off" \
                   "for Xdamage support" &&

  optional_depends libxext \
                   "-DBUILD_XDBE=on" \
                   "-DBUILD_XDBE=off" \
                   "for Xdbe double-buffering support" &&

  optional_depends libxft \
                   "-DBUILD_XFT=on" \
                   "-DBUILD_XFT=off" \
                   "for Xft support" &&

  optional_depends libxinerama \
                   "-DBUILD_XINERAMA=on" \
                   "-DBUILD_XINERAMA=off" \
                   "for Xft support"
fi &&

optional_depends wayland \
                 "-DBUILD_WAYLAND=on" \
                 "-DBUILD_WAYLAND=off" \
                 "to build Wayland client" &&
if is_depends_enabled "${SPELL}" "wayland"; then
  depends wayland-protocols
fi &&

optional_depends cmus \
                 "-DBUILD_CMUS=on" \
                 "-DBUILD_CMUS=off" \
                 "for cmus music player support" &&

optional_depends curl \
                 "-DBUILD_CURL=on" \
                 "-DBUILD_CURL=off" \
                 "for curl support" &&

optional_depends mpd \
                 "-DBUILD_MPD=on" \
                 "-DBUILD_MPD=off" \
                 "for Music Player Daemon support" &&

optional_depends xmms2 \
                 "-DBUILD_XMMS2=on" \
                 "-DBUILD_XMMS2=off" \
                 "for XMMS2 support" &&

optional_depends bmpx \
                 "-DBUILD_BMPX=on" \
                 "-DBUILD_BMPX=off" \
                 "for BMPx support" &&

optional_depends audacious \
                 "-DBUILD_AUDACIOUS=on" \
                 "-DBUILD_AUDACIOUS=off" \
                 "for Audacious support" &&

optional_depends libical \
                 "-DBUILD_ICAL=on" \
                 "-DBUILD_ICAL=off" \
                 "for ical support" &&

optional_depends libircclient \
                 "-DBUILD_IRC=on" \
                 "-DBUILD_IRC=off" \
                 "for IRC support" &&

optional_depends imlib2 \
                 "-DBUILD_IMLIB2=on" \
                 "-DBUILD_IMLIB2=off" \
                 "for Imlib2 support" &&

optional_depends wireless_tools \
                 "-DBUILD_WLAN=on" \
                 "-DBUILD_WLAN=off" \
                 "for Wireless support" &&

optional_depends systemd \
                 "-DBUILD_JOURNAL=on" \
                 "-DBUILD_JOURNAL=off" \
                 "for support for reading from systemd journal" &&

optional_depends ncurses \
                 "-DBUILD_NCURSES=on" \
                 "-DBUILD_NCURSES=off" \
                 "for TUI support" &&

optional_depends mysql \
                 "-DBUILD_MYSQL=on" \
                 "-DBUILD_MYSQL=off" \
                 "for mysql support" &&

optional_depends moc \
                 "-DBUILD_MOC=on" \
                 "-DBUILD_MOC=off" \
                 "for moc player support" &&

optional_depends pulseaudio \
                 "-DBUILD_PULSEAUDIO=on" \
                 "-DBUILD_PULSEAUDIO=off" \
                 "for pulseaudio support"

optional_depends docbook2x \
                 "-DBUILD_DOCS=true" \
                 "-DBUILD_DOCS=false" \
                 "for building documentation"
