The default MacPorts installation downloads each dependency, builds and installs it, then downloads, builds and installs the next dependency, and so on. This means that a c
Use port fetch <packagename>
.
While connected to the network, use:
port fetch rdepof:<packagename> <packagename>
Then, with no network connection required, use:
port clean rdepof:<packagename> <packagename>
port install <packagename>
rdepof: is a recursive list of all of the package's dependencies. The clean command removes any previous builds of the package or its dependencies.