#svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk;

cd ./grass_trunk/;
make distclean;
svn update;
CFLAGS="-O0" CXXFLAGS="-O0" ./configure --prefix=/opt/grass7 --enable-shared --enable-64bit --with-cxx --with-jpeg --with-tiff --without-png --with-tcltk --with-postgres --without-mysql --with-sqlite --without-ffmpeg --with-opengl --with-odbc --with-fftw --with-lapack --with-cairo --without-freetype --with-nls --with-readline --without-opendwg --with-regex --with-pthread --with-includes=/usr/include/ --with-libs=/usr/lib64/ --with-gdal=/usr/bin/gdal-config --with-python=/usr/bin/python-config --with-wxwidgets=/usr/bin/wx-config --with-geos=/usr/bin/geos-config --with-x --enable-largefile  --with-proj-includes=/usr/include/ --with-proj-libs=/usr/lib64/ --with-proj-share=/usr/share/proj/  --with-postgres-includes=/usr/include/postgresql/ ;
make -j3 ;
sudo rm -rf /opt/grass7/*;
sudo make install;

