Prior to installation, you may want to examine these Makefiles to make sure they accurately reflect your local setup. If you're happy with the setup, proceed to installation. While I have access to a large number of machines, it's impossible for me to test everything. The Mac directory contains information about building SWIG on the Macintosh. At this time, the Macintosh version is distributed separately as a binary release.
Source is also available, but is non-trivial to build due to dependencies on other packages.