MacPorts is a free/open source software project to simplify installation of other free/open source software on macOS.
With MacPorts you can install any of thousands of software packages by simply running sudo port install packagename in the Terminal, which will then download and install that software and its dependencies.