depends cmake &&
depends python3 &&
depends WXWIDGET -Daudacity_use_wxwidgets=system &&
# Dunno what for, but is checked explicitly.
depends gtk+3 &&
depends glib2 &&
depends expat -Daudacity_use_expat=system &&

optional_depends ffmpeg \
  -Daudacity_use_ffmpeg={loaded,off} \
  "for conversions" &&

optional_depends flac \
  -Daudacity_use_flac={system,off} \
  "for FLAC support" &&

optional_depends libmad \
  -Daudacity_use_mad={system,off} \
  "as mp3 decoder" &&

optional_depends libid3tag \
  -Daudacity_use_id3tag={system,off} \
  "for ID3 tagging" &&

depends libsndfile -Daudacity_use_sndfile=system &&

optional_depends libvorbis \
  -Daudacity_use_vorbis={system,off} &&

# Not strictly necessary, as the API is a shipped
# header, but it helps to have the basic set of
# example plugins present, and it's cheap.

depends ladspa -Daudacity_use_ladspa=ON &&

# insists on using shipped copy of lame, strange
# so no depends here

optional_depends lv2 \
  -Daudacity_use_lv2={system,off} \
  "for LV2 plugins (triggers some more related deps)" &&

if is_depends_enabled "$SPELL" lv2; then
  depends serd     &&
  depends sord     &&
  depends sratom-0 &&
  depends lilv-0   &&
  depends suil-0
fi &&

# dunno about smbms, keep it local

optional_depends soundtouch \
  -Daudacity_use_soundtouch={system,off} \
  "for effects" &&

depends soxr \
  -Daudacity_use_soxr=system &&

optional_depends vamp-plugin-sdk \
  -Daudacity_use_vamp={system,off} &&

optional_depends twolame \
  -Daudacity_use_twolame={system,off} \
  "for MP2 creation" &&

# Not trying to force portaudio stuff,
# that can be sensitive and is core to audacity.

optional_depends alsa-lib \
  -Daudacity_use_pa_alsa={YES,NO} \
  "for audio I/O" &&

optional_depends JACK-DRIVER \
  -Daudacity_use_pa_jack={loaded,off} \
  "for audio I/O" &&

true
