case "$HOST" in
  (*-musl)
    depends libexecinfo ;;
esac &&
depends -sub CXX gcc &&
depends which        &&
depends  perl        &&
depends  zlib        &&
depends  libxcursor  &&
depends  libxfixes   &&
depends  libxi       &&
depends  libxrender  &&
depends  libxrandr   &&
depends  libxext     &&
depends  libxkbcommon  &&
depends  icu '-icu'  &&
depends  sqlite '-system-sqlite' &&
depends  -sub PCRE16 pcre2  '-system-pcre'   &&
depends  ca-certificates &&
depends  md4c &&
depends  zstd &&
depends  shared-mime-info '-no-mimetype-database' &&

optional_depends  PKG-CONFIG     \
                  '-force-pkg-config' \
                  '' \
                  'use pkg-config to find things' &&

optional_depends  boost  \
                  '-make tests' \
                  '-nomake tests' \
                  'to build tests' &&

optional_depends  ccache    '-ccache' '-no-ccache' 'speed compilation' &&
optional_depends  libxcb    '-xcb' '-no-xcb' 'Xcb support' &&

if is_depends_enabled $SPELL libxcb; then
  depends xcb-util-keysyms &&
  depends xcb-util-image   &&
  depends xcb-util         &&
  depends xcb-util-wm      &&
  depends xcb-util-renderutil
fi &&

optional_depends  fontconfig             \
                  '-fontconfig'          \
                  '-no-fontconfig'       \
                  'for FontConfig anti-aliased font support'  &&

optional_depends  SSL                    \
                  '-openssl-linked'      \
                  '-no-openssl'          \
                  'for SSL support (needed for kde)' &&
#graphics
optional_depends  OPENGL                 \
                  '-opengl'              \
                  '-no-opengl'           \
                  'OpenGL support'       &&

optional_depends  JPEG                   \
                  '-system-libjpeg'      \
                  '-qt-libjpeg'          \
                  'to use the system jpeg library'  &&

optional_depends  libpng                 \
                  '-system-libpng'       \
                  '-no-libpng'           \
                  'PNG graphics support' &&

optional_depends  harfbuzz \
                  '-system-harfbuzz' \
                  '-no-harfbuzz' \
                  'OpenType text shaping engine' &&

optional_depends  glib2  '-glib' '-no-glib' 'glib support'

#database plugins
if [[ $QT_SQL == y ]];then
optional_depends  FIREBIRD              \
                  "-plugin-sql-ibase"    \
                  '-no-sql-ibase'        \
                  'Firebird database support'  &&

optional_depends  MYSQL                  \
                  "-plugin-sql-mysql"    \
                  '-no-sql-mysql'        \
                  'MySql database support'     &&

optional_depends  postgresql           \
                  "-plugin-sql-psql"   \
                  '-no-sql-psql'       \
                  'Postgresql database support'  &&

optional_depends  unixodbc             \
                  "-plugin-sql-odbc"   \
                  '-no-sql-odbc'       \
                  'ODBC database support'
fi &&
optional_depends  cups                 \
                  '-cups'              \
                  '-no-cups'           \
                  'Printing support'  &&

optional_depends dbus                  \
                  '-dbus'              \
                  '-no-dbus'           \
                  'for dbus support - builds QtDBus module'  &&

optional_depends  DEVICE-MANAGER '' '' 'generic evdev keyboard support' &&

if [[  $QT_ACCESS == "-accessibility" ]]; then
  depends at-spi2-core
fi &&

optional_depends freetype2  '-system-freetype' '-no-freetype' 'Freetype2 support' &&

#qt5.5
optional_depends libinput   '-libinput' '-no-libinput' 'LibInput support' &&
optional_depends libproxy   '-libproxy' '-no-libproxy' 'Network Proxy support' &&
optional_depends mtdev      '-mtdev' '-no-mtdev' 'Enable multitouch support' &&
optional_depends double-conversion '-system-doubleconversion' '' 'binary<->decimal conversion'
optional_depends vulkan-loader '' '' 'Vulkan support' &&
#qt5.11
optional_depends wayland    '' '' 'Wayland support'   
#optional_depends v4l-utils  '' '' 'V4L support'
optional_depends giflib5   '-gif' '-no-gif' 'GIF support'
