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

# 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  pkgconfig &&
optional_depends  pcre \
                  '--with-regex=sys' \
                  '--with-regex=builtin' \
                  'use PCRE for RegEx (disable for advanced features)' &&
optional_depends  cairo \
                  '' \
                  '' \
                  'graphics support' &&
optional_depends  gstreamer \
                  '--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'  &&
optional_depends  expat              \
                  '--with-expat'     \
                  '--without-expat'  \
                  'for XML parsing using expat library'  &&
optional_depends  libgnomeprint           \
                  '--with-gnomeprint'     \
                  '--without-gnomeprint'  \
                  'for GNOME print system support'  &&
optional_depends  libiodbc          \
                  '--with-odbc'     \
                  '--without-odbc'  \
                  'for ODBC support'  &&
optional_depends  sdl                          \
                  '--with-sdl --enable-sound'  \
                  '--without-sdl'              \
                  'for sound system support'   &&
optional_depends  libxpm '--with-libxpm'    \
                         '--without-libxpm' \
                         'support XPM file format'
