Date: Sat, 11 May 2019 14:12:05 +0200 From: <driesm.michiels@gmail.com> To: "'Jonathan Chen'" <jonc@chen.org.nz> Cc: <freebsd-ports@freebsd.org> Subject: RE: Conditionally install the correct binary Message-ID: <000d01d507f2$bfe95e40$3fbc1ac0$@gmail.com> In-Reply-To: <CAJuc1zOjG-Xqbee4HiWwzX2_=4jm=gvLsPAAs3kJw8SMpfRHsw@mail.gmail.com> References: <004401d5069f$bfd769f0$3f863dd0$@gmail.com> <CAJuc1zOjG-Xqbee4HiWwzX2_=4jm=gvLsPAAs3kJw8SMpfRHsw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: Jonathan Chen <jonc@chen.org.nz> > Sent: donderdag 9 mei 2019 21:56 > To: driesm.michiels@gmail.com > Cc: freebsd-ports@freebsd.org > Subject: Re: Conditionally install the correct binary >=20 > On Fri, 10 May 2019 at 07:47, <driesm.michiels@gmail.com> wrote: > [...] > > What is the easiest way to conditionally fetch and install a binary > > depending on FreeBSD OS version. >=20 > 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. >=20 > You can adapt this strategy to depend on OSVERSION. >=20 > Cheers. > -- > Jonathan Chen <jonc@chen.org.nz>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000d01d507f2$bfe95e40$3fbc1ac0$>