Mac OS/X, as I understand it, is actually a fancy-pants proprietary X/Server (designed by Apple) sitting on top of Darwin (
http://www.darwin.org). Darwin is based on FreeBSD 3.5.1. Even though OS/X encompasses both Darwin and the X/Server, Darwin is available separately and free from the Darwin website.