depends DEVICE-MANAGER     &&
depends glib2     &&
depends libbytesize &&
depends libnvme   &&
depends libyaml   &&
depends lvm       &&
depends PKG-CONFIG &&
depends util-linux &&

optional_depends gobject-introspection  --{en,dis}able-introspection 'Enable introspection?' &&
optional_depends gtk-doc  '--with-gtk-doc' '--without-gtk-doc' 'Build Devhelp files?' &&

optional_depends libatasmart '--with-smart' '--without-smart' 'support ATA S.M.A.R.T.' &&
optional_depends smartmontools '--with-smartmontools' '--without-smartmontools' 'support smartmontools' &&

optional_depends kmod    '' '' 'dynamic module loading' &&
optional_depends parted  '--with-part' '--without-part' 'partition support' &&
optional_depends python3 '--with-python3' '--without-python3' 'Python3 support' &&
optional_depends mdraid  '--with-dm' '--without-dm --without-mdraid' 'RAID support' &&
optional_depends ndctl   '--with-nvdimm' '--without-nvdimm' 'NVDIMM support' &&
optional_depends cryptsetup-luks '--with-crypto' '--without-crypto --without-escrow' 'crypto support' &&
if is_depends_enabled $SPELL cryptsetup-luks;then
  optional_depends volume_key '--with-escrow' '--without-escrow' 'escrow support' &&
  if is_depends_enabled $SPELL volume_key;then
   depends keyutils &&
   depends nss
  fi
fi
