Is there a way to build only the port from source, and install dependencies from packages with the make command?

Adam amvandemore at gmail.com
Tue Apr 30 21:15:25 UTC 2019


On Tue, Apr 30, 2019 at 12:36 PM Yuri <yuri at rawbw.com> wrote:

> Sometimes instructions to build some port from source are needed. "cd
> /usr/ports/{caregory}/{port-name} && make" rebuilds everything from
> source, including dependencies.
>
> Is there an easy way to make it install missing dependencies with pkg,
> without listing them? I couldn't find such feature.
>
>
> This can be useful:
>
> 1. When some software's README describes how to install it on FreeBSD
> from source.
>
> 2. When developers need to compile from source only a specific port
> without waiting for dependencies to build.
>

I usually do this with portmaster and -P.  Although generally speaking, you
will get more installed from pkg with an older ports tree all else being
equal.

-- 
Adam


More information about the freebsd-ports mailing list