Re: Patching Conditionally for 12.3 Releases

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Tue, 23 Aug 2022 14:24:09 UTC
Hi Felix,

Possible alternative without if:
>
> EXTRA_PATCHES=          ${EXTRA_PATCHES_${OPSYS}}
> EXTRA_PATCHES_FreeBSD=  ${${OSVERSION}<1300000:?${PATCHDIR}/extra-foo:}
>

It is nice without showing if condition but it becomes way more cryptic and
complex. It will be very nice if ports include OPSYS, OSVERSION, etc:

OPTIONS_DEFINE=  FOO BAR
FOO_OSVERSION= > 1300000
BAR_OSVERSION= > 1200000 && < 1300000
FOO_EXTRA_PATCHES=  ${PATCHDIR}/extra-patch-foo
BAR_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-bar.c

 It's solved this way :)

Cheers,

-- 
>
Nuno Teixeira
FreeBSD Committer (ports)