1. download an unpack the archive
2. modify sys/unix/Makefile.src (or src/Makefile after running
sys/unix/setup.sh):
223c223,224
< WINTTYLIB = -ltermlib
---
> # WINTTYLIB = -ltermlib
> WINTTYLIB = -framework System
3. modify include/unixconf.h:
48a49
> #define DARWIN
50c51
< #define TERMINFO /* uses terminfo rather than termcap */
---
> /* #define TERMINFO */ /* uses terminfo rather than termcap */
300c301
< #if defined(BSD) || defined(ULTRIX) || defined(CYGWIN32) || defined(RANDOM)
---
> #if defined(BSD) || defined(ULTRIX) || defined(CYGWIN32) ||
>defined(RANDOM) || defined(DARWIN)
4. modify include/system.h:
80c80
< # if !defined(SUNOS4) || defined(RANDOM)
---
> # if !defined(SUNOS4) || defined(RANDOM) || defined(DARWIN)
5. modify src/hacklib.c:
446c446
< # if defined(BSD) || defined(ULTRIX) || defined(CYGWIN32) /* system
srandom() */
---
> # if defined(BSD) || defined(ULTRIX) || defined(CYGWIN32) ||
>defined(DARWIN) /* system srandom() */
448c448
< # if defined(SUNOS4)
---
> # if defined(SUNOS4) || defined(DARWIN)
6. That's all... make and install as usual.