Conditionally install the correct binary

Jonathan Chen jonc at chen.org.nz
Thu May 9 19:55:58 UTC 2019


On Fri, 10 May 2019 at 07:47, <driesm.michiels at gmail.com> wrote:
[...]
> What is the easiest way to conditionally fetch and install a binary
> depending on FreeBSD OS version.

x11-fonts/fantasque-sans-mono uses conditional fetching depending on
OPTIONS. The distinfo contains checksums for all the tarballs, but the
port only fetches tarballs matching the selection options.

You can adapt this strategy to depend on OSVERSION.

Cheers.
-- 
Jonathan Chen <jonc at chen.org.nz>


More information about the freebsd-ports mailing list