#! /bin/bash

# Markus Neteler 2003
# script o compile GRASS 5.1 under MS-Windows/Cygwin

# Procedure:
#  1. compile PROJ4 (get tar.gz, extract, compile, install)
#  2. get GRASS 5.0
#  3. get GRASS 5.1
#  4. modify path to 5.0 below
#  5. read INSTALL of GRASS 5.1
#  6. run this script conf_grass51_cygwin.sh;
      make mix;
      make ;
      make install

GRASS50="/home/menegon/grass50cvs"

CFLAGS="-O2 -D__W98__" LDFLAGS="-s -I/usr/local/include -L/usr/local/lib" ./configure --prefix=/usr/local/grass51 \
    --with-grass50=$GRASS50 \
    --with-includes=/usr/X11R6/include \
    --with-postgres=yes --with-postgres-includes=/usr/include/postgresql/internal --with-postgres-libs=/lib \
    --with-tcltk=yes --with-gdal=yes --with-opengl=yes --with-odbc=no --with-blas=no --with-lapack=no --with-fftw=no \
    --with-freetype=no --with-motif=no --with-gd=no --with-gdal=no --with-png=no
