I'm sometimes finding that I want to rebuild a port to enable a single option, like DEBUG, for example. Otherwise I generally use standard packages for everything else. For some ports with a lot of dependencies, I want to avoid having to build all those dependencies from source. The last time I had to to do this I crafted a one-liner to take the result of
I wound up doing something like this from that port's directory:
which cuts off the /usr/ports/ from the beginning of each line. Alternately you can use build-depends-list or run-depends-list.
This all seems a bit janky. Is there an established way of doing this that I am missing?
# make all-dependencies-list
and modify that to make the packages arguments to # pkg install -y
.I wound up doing something like this from that port's directory:
# make all-depends-list | cut -c 12- | xargs pkg install -y
which cuts off the /usr/ports/ from the beginning of each line. Alternately you can use build-depends-list or run-depends-list.
This all seems a bit janky. Is there an established way of doing this that I am missing?