[GRASS5] [PATCH] Compile grass 5.7.0 on Mac OS X (Fink)

Hello,

I'm working on getting grass 5.7.0 into the Fink tree for Mac OS X and had to apply this one minor patch to get grass to compile. On Fink, the readline include files are normally in /sw/include.

This patch fixes this compile error:

Makefile:96: warning: overriding commands for target `htmlcmd'
../../include/Make/Rules.make:37: warning: ignoring old commands for target `htmlcmd'
mkdir -p OBJ.powerpc-apple-darwin7.4.0
bison -y -b y -d mapcalc.y
gcc -L/sw/lib -L/sw/src/grass-5.7.0-1/grass-5.7.0/dist.powerpc-apple-darwin7.4.0/lib -I/sw/src/grass-5.7.0-1/grass-5.7.0/include -I/sw/src/grass-5.7.0-1/grass-5.7.0/dist.powerpc-apple-darwin7.4.0
/include -o OBJ.powerpc-apple-darwin7.4.0/y.tab.o -c y.tab.c
rm -f lex.yy.c y.output lex.backup
flex -t mapcalc.l > lex.yy.c
gcc -L/sw/lib -L/sw/src/grass-5.7.0-1/grass-5.7.0/dist.powerpc-apple-darwin7.4.0/lib -I/sw/src/grass-5.7.0-1/grass-5.7.0/include -I/sw/src/grass-5.7.0-1/grass-5.7.0/dist.powerpc-apple-darwin7.4.0
/include -o OBJ.powerpc-apple-darwin7.4.0/lex.yy.o -c lex.yy.c
mapcalc.l:10:31: readline/readline.h: No such file or directory
mapcalc.l:11:30: readline/history.h: No such file or directory
mapcalc.l: In function `get_input_stream':
mapcalc.l:51: warning: assignment makes pointer from integer without a cast
make[2]: *** [lex.yy.c] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1
### execution of (export failed, exit code 2
Failed: compiling grass-5.7.0-1 failed

Regards,
Blair

--
Blair Zajac <blair@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/

(attachments)

grass-5.7.0.patch.txt (492 Bytes)