optional_depends -sub ADA gcc \
    "-DENABLE_ada=ON" \
    "-DENABLE_ada=OFF" \
    "Ada bindings" &&
depends cairo &&
depends cmake &&
optional_depends -sub FORTRAN gcc \
    "-DENABLE_f77=ON -DENABLE_f95=ON" \
    "-DENABLE_f77=OFF -DENABLE_f95=OFF" \
    "Fortran bindings" &&
optional_depends -sub CXX gcc \
    "-DENABLE_cxx=ON" \
    "-DENABLE_cxx=OFF" \
    "C++ bindings" &&
depends gd &&
optional_depends JDK \
    "-DENABLE_java=ON" \
    "-DENABLE_java=OFF" \
    "java bindings" &&
depends libharu &&
depends libx11 &&
depends libxext &&
depends libxi &&
depends lua51 &&
depends m4 &&
optional_depends octave \
    "-DENABLE_octave=ON" \
    "-DENABLE_octave=OFF" \
    "octave bindings" &&
depends pango &&
depends lasi  &&
optional_depends qhull \
    "-DHAVE_QHULL=ON" \
    "-DHAVE_QHULL=OFF" \
    "build internal csironn library for nearest neighbor interpolation" &&
optional_depends numpy \
    "-DENABLE_python=ON" \
    "-DENABLE_python=OFF" \
    "python bindings" &&
optional_depends qt4 \
    "-DENABLE_qt=ON" \
    "-DENABLE_qt=OFF" \
    "Qt4 bindings" &&
if is_depends_enabled $SPELL qt4; then
  depends -sub CXX gcc
fi &&
depends swig &&
depends tcl "-DENABLE_tcl=ON" &&
depends tk "-DENABLE_tk=ON"   &&
optional_depends wxgtk \
    "-DENABLE_wxwidgets=ON" \
    "-DENABLE_wxwidgets=OFF" \
    "wxwidgets bindings" &&
if is_depends_enabled $SPELL wxgtk; then
  depends -sub CXX gcc
fi &&
depends xml-dom &&
optional_depends pdl \
    "-DENABLE_pdl=ON" \
    "-DENABLE_pdl=OFF" \
    "build perl data language bindings examples"
