Compiling sgf2misc 2.7.5 for Mac OS X
You must have Mac OS X and the developer libraries
installed. You must also have the X11 SDK installed.
1. Download source from
2. CD to the source folder
3. Change the dependencies at the top of the makefile to read:
SHELL = /bin/sh
SED = /usr/bin/sed
CP = /bin/cp
RM = /bin/rm
CAT = /bin/cat
MKDIR = /bin/mkdir
TAR = /usr/bin/tar
GZIP = /usr/bin/gzip
GUNZIP = /usr/bin/gunzip
DEPEND = /usr/X11R6/bin/makedepend
4. Add a blank file called malloc.h to the source directory
(e.g. touch malloc.h from the command line)
5. Delete line 65 of sfread.c (the declaration for isascii)
5. Begin following the instructions in the README file.
When you run "make depend" the computer will complain
that it can't find malloc.h ignore that.
The build should proceed without incident afterward.
If you want to find netpbm for Mac OS X you can use Fink
which can be found at