depends -sub CXX gcc  &&
depends  gtk+${WX_GTK} "--with-gtk=$WX_GTK" &&
depends  libx11 '--with-x' &&
depends  libnotify '--with-libnotify' &&
depends  libsm &&
depends  libxinerama &&

# all of the "depends" below strictly speaking are not required, e.g. we can
# use included library by specifying --with-*=builtin, but we want to use the
# system libraries, so we're saying --with-*[=sys] here.
depends  zlib    '--with-zlib'     &&
depends  libpng  '--with-libpng'   &&
depends  JPEG    '--with-libjpeg'  &&
depends  tiff    '--with-libtiff'  &&
depends  libxpm  '--with-libxpm'  &&

optional_depends  pcre \
                  '--with-regex=sys' \
                  '--with-regex=builtin' \
                  'use PCRE for RegEx (disable for advanced features)' &&
optional_depends  cairo \
                  '' \
                  '' \
                  'graphics support' &&
optional_depends  gst-plugins-base-1.0 \
                  '--enable-mediactrl' \
                  '--disable-mediactrl' \
                  'streaming video support' &&
optional_depends   stlport \
                  '--enable-stl' \
                  '--disable-stl' \
                  'use STL for containers' &&
optional_depends  OPENGL             \
                  '--with-opengl'    \
                  '--without-opengl' \
                  'for OpenGL support'  &&
if is_depends_enabled $SPELL OPENGL; then
  depends glu
fi &&
optional_depends  expat              \
                  '--with-expat'     \
                  '--without-expat'  \
                  'for XML parsing using expat library'  &&
optional_depends  libgnomeprint           \
                  '--without-gtkprint'     \
                  '--with-gtkprint'  \
                  'for GNOME print system support instead of GTK print'  &&
optional_depends  sdl                          \
                  '--with-sdl --enable-sound'  \
                  '--without-sdl'              \
                  'for sound system support'
