I managed to port FreeBSD's Berkeley Make with very little effort; You'd need this as the underpinning of a /usr/ports subsystem on OS X.
I don't know if NetBSD's make is in there somewhere but I did find their bsd*.mk files in /usr/share/mk
Cheers,
W Gerald Hicks
gehicks@cisco.com