depends  perl  &&
depends -sub CXX gcc &&
depends  zlib        &&
depends  libx11      &&
depends  libxcursor  &&
depends  libxfixes   &&
depends  libxi       &&
depends  libxrender  &&
depends  libxrandr   &&
depends  libxext     &&
depends  icu '-icu'  &&
depends  sqlite '-system-sqlite' &&
depends  -sub PCRE16 pcre  '-system-pcre'   &&
depends  ca-certificates &&

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

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

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'             \
                  '-no-openssl'          \
                  'ssl support(needed for kde4)'    &&
#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  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'  &&

message choose libiodbc if you want to use soprano+virtuoso+kde4 &&
optional_depends  ODBC-MGR             \
                  "-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  'gtk+2'              \
                  '-gtkstyle'          \
                  '-no-gtkstyle'       \
                  'for GTK+ theme integration'  &&

optional_depends  DEVICE-MANAGER '' '' 'generic evdev keyboard support' &&
optional_depends  libxkbcommon '' '' 'XKB keyboard/input handling' &&

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