Allan, my idol (when you'll get that Nethack thing working)
I'm willing to help you in everything I can, but I'm afraid my C is poor. You have chosen Newt to port, and I think it's a better option than AllegroHack, since the /win/sdl interface is included in /sys/unix. It`s true that a ton of work is "makefile surgery". If I had to do this port, I think I'll:
1) Try to compile Nethack in a PC in Linux or other Unix. (Better a Mac
) This means start using makefiles on /sys/unix.
2) Remove all the dependencies for interfaces that aren't SDL pure (tty, ncurses, etc). Try to compile, look where these functions are called and remove them or make workarounds.
3)When you have pure SDL-dependent nethack makefiles, then try to cross-compile it for GP2X.
I've also downloaded
PSP Nethack Sources I think it's worth giving it a try, as a basis or an example. The interesting files seems to be /sys/psp/psp_event.c (the main file), /include/winSDL.h (SDL definitions) and the two root makefiles.
And you have also a PM
Greetings, keep up the good work!!