MacPorts, formerly called DarwinPorts, is a free/open source software project to simplify installation of other free/open source software on the Mac OS X and Darwin operating systems.
It allows the installation of a number of packages by simply entering the command port install packagename in the Terminal, which will then download, compile and install the requested software, while also installing any required dependencies automatically.