depends -sub DBUS qt4 &&
depends qjson         &&
optional_depends kdelibs4 \
                 "-DENABLE_KDE=on" \
                 "-DENABLE_KDE=off" \
                 "support for KDE 4" &&
optional_depends taglib \
                 "-DENABLE_TAGLIB=on" \
                 "-DENABLE_TAGLIB=off" \
                 "for tag editing and replay gain calculation" &&
if is_depends_enabled $SPELL taglib; then
  depends LIBAVCODEC "-DENABLE_FFMPEG=on" &&
  depends mpg123     "-DENABLE_MPG123=on" &&
  depends speex      "-DENABLE_SPEEXDSP=on" &&
  depends taglib-extras "-DENABLE_TAGLIB_EXTRAS=on"
fi &&
optional_depends phonon \
                 "-DENABLE_PHONON=on" \
                 "-DENABLE_PHONON=off" \
                 "required to playback MPD HTTP streams" &&
optional_depends libmtp \
                 "-DENABLE_MTP=on" \
                 "-DENABLE_MTP=off" \
                 "required to support MTP devices" &&
optional_depends cdparanoia \
                 "-DENABLE_CDPARANOIA=on" \
                 "-DENABLE_CDPARANOIA=off" \
                 "for audio cd support" &&
if is_depends_enabled $SPELL cdparanoia; then
  optional_depends libcddb \
                 "-DENABLE_CDDB=on" \
                 "-DENABLE_CDDB=off" \
                 "you need either this or musicbrainz for audio cd support" &&
  optional_depends musicbrainz \
                 "-DENABLE_MUSICBRAINZ=on" \
                 "-DENABLE_MUSICBRAINZ=off" \
                 "you need either this or libcddb for audio cd support"
fi
