Many thanks Hans-Bernhard :-) I have not done much patching, and was probably thinking too hard. With your help, I could focus better on the patch man page, and it all worked nicely.
I still had a problem with the pascal builds not linking X11. Not sure why they did not inherit the right things, so I adjusted the 2 makefiles to make it compile. I think there may be a more correct way of doing this (perhaps in config), however FWIW, attached is a diff.
For other first timers, below is what I did to get it going. The result is the graphics from the old Turbo 5.0 code ported nicely [Just had to replace some constants with egacolor()] The next big problem is going to be finding a ReadKey (wait for key & return ch without echo, and maybe a second char for function keys etc) that does not use the crt unit. Like with turbo pascal, grx crt clears and messes with the terminal too much.
Once again, many thanks, hope others find this report helpful. Michael
download & unzip grx229s.zip download macosx.diff perhaps rename (I already had another copy) and change to ./contrib/grx249.macosx/ patch -p1 < ../../macosx.diff chmod +x configure ./configure --target=osx --disable-bmp --disable-print --enable-pascal make -f makefile.osx
Could not find X11 libs:- pascal/makefile.osx pascal/bgi/makefile.osx