> > > building a port tries to pkg_add any prerequisites before building them. > > > > this is already possible, see BIN_PACKAGES in bsd.port.mk(5). > > I've been trying to get BIN_PACKAGES to work by putting > "BIN_PACKAGES=Yes" in mk.conf, by exporting it to my environment and > by running "BIN_PACKAGES=Yes make install" to install a port. It's > not working.
Is the workdir still present? You'll also want BULK=Yes and TRUST_PACKAGES=Yes most likely.