depends -sub CXX gcc  &&

depends  gtk+2 &&

depends  libx11  '--with-x'  &&
depends  libxpm  '--with-libxpm'  &&
# 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  libsm &&
depends  libxinerama &&

optional_depends  pcre \
                  '--with-regex=sys' \
                  '--with-regex=builtin' \
                  'use PCRE for RegEx (disable for advanced features)' &&

optional_depends  MESA            \
                  '--with-opengl'    \
                  '--without-opengl' \
                  'for OpenGL support'  &&
depends  glu &&

optional_depends  expat              \
                  '--with-expat'     \
                  '--without-expat'  \
                  'for XML parsing using expat library'  &&
optional_depends  libgnomeprint           \
                  '--with-gnomeprint --without-gtkprint'     \
                  '--without-gnomeprint --with-gtkprint'  \
                  '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'
