Conditionally install the correct binary

driesm.michiels at gmail.com driesm.michiels at gmail.com
Sat May 11 12:12:07 UTC 2019


> -----Original Message-----
> From: Jonathan Chen <jonc at chen.org.nz>
> Sent: donderdag 9 mei 2019 21:56
> To: driesm.michiels at gmail.com
> Cc: freebsd-ports at freebsd.org
> Subject: Re: Conditionally install the correct binary
> 
> 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.


So I have to make the FreeBSD version an option in the port and get it toggled based on OS_VERSION.


> 
> 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