With these patches netsurf can be built on Mac OS X 10.6 (maybe earlier - not checked). It should be either built without libpng and libmng or those should be installed to /user/local before, so the build system finds them. The makefiles don’t find the versions provided by OS X.
I also attached a makefile to build libmng on OS X, since they don’t provide one.
0001-defining-_DARWIN_C_SOURCE-for-Mac-OS-X-sys-time.h-so.patch
Description: Binary data
0002-OS-X-linker-doesn-t-support-whole-archive.-Also-requ.patch
Description: Binary data
0003-Compile-link-fixes-for-OS-X-standard-library-functio.patch
Description: Binary data
0004-renaming-main-to-SDL_main.patch
Description: Binary data
libmng-makefile.osx
Description: Binary data
libnsfb-importing-sys-select.h-for-x.c-required-for-Mac-OS-X.patch
Description: Binary data
