depends proj "--with-proj-share=$INSTALL_ROOT/usr/share/proj" &&
depends gdal  "--with-gdal" &&
depends zlib  &&
depends flex  &&
depends bison &&
depends ncurses "--with-curses" &&
depends readline "--with-readline" &&
depends libx11 "--with-x" &&
depends OPENGL "--with-opengl" &&
depends libxmu &&
runtime_depends gdal-grass &&
optional_depends geos \
                 "" \
                 "" \
                 "For the geometry engine support" &&
optional_depends sqlite \
                 "--with-sqlite" \
                 "--without-sqlite" \
                 "Fol SQLite database interface (used by eg. QGIS)" &&
optional_depends postgresql \
                 "--with-postgres" \
                 "--without-postgres" \
                 "For PostgreSQL database interface" &&
optional_depends mysql \
                 "--with-mysql --with-mysql-includes=$INSTALL_ROOT/usr/include/mysql" \
                 "--without-mysql" \
                 "For MySQL database interface" &&
optional_depends unixodbc \
                 "--with-odbc" \
                 "--without-odbc" \
                 "For ODBC database interface" &&
optional_depends tk \
                 "--with-tcltk" \
                 "--without-tcltk" \
                 "To use the GRASS GUI menu system and the NVIZ visualization suite" &&
optional_depends -sub CXX gcc \
                 "--with-cxx" \
                 "--without-cxx" \
                 "Required for r.terraflow module" &&
optional_depends fftw \
                 "--with-fftw" \
                 "--without-fftw" \
                 "Required by i.fft and i.ifft and other modules" &&
#optional_depends lapack \
#                 "--with-lapack" \
#                 "" \
#                 "Future use for now" &&
optional_depends libpng \
                 "--with-png" \
                 "--without-png" \
                 "For r.out.png and PNG driver" &&
optional_depends jpeg \
                 "--with-jpeg" \
                 "--without-jpeg" \
                 "For r.out.jpeg" &&
optional_depends tiff \
                 "--with-tiff" \
                 "--without-tiff" \
                 "For r.out.tiff" &&
optional_depends motif \
                 "--with-motif" \
                 "--without-motif" \
                 "For the xganim module" &&
optional_depends r \
                 "" \
                 "" \
                 "For R statistical language interface" &&
optional_depends freetype2 \
                 "--with-freetype --with-freetype-includes=$INSTALL_ROOT/usr/include/freetype2" \
                 "--without-freetype" \
                 "For TrueType font support and d.text.freetype" &&
optional_depends python \
                 "--with-python" \
                 "--without-python" \
                 "For python bindings and GUI support" &&
if is_depends_enabled python ; then
optional_depends wxpython \
                 "--with-wxwidgets" \
                 "--without-wxwidgets" \
                 "For wxPython GUI" &&
if is_depends_enabled wxpython ; then
depends numpy
fi
fi &&
optional_depends LIBAVCODEC \
                 "--with-ffmpeg" \
                 "--without-ffmpeg" \
                 "For direct rendering of animations from NVIZ" &&
optional_depends cairo \
                 "--with-cairo" \
                 "--without-cairo"\
                 "Cairo support" &&
optional_depends avce00 \
                 "" \
                 "" \
                 "To read Arc/Info vector coverages" &&
if is_depends_enabled avce00 ; then
  depends e00compr
fi

