Re: Patching Conditionally for 12.3 Releases

From: Felix Palmen <zirias_at_FreeBSD.org>
Date: Tue, 23 Aug 2022 09:22:44 UTC
* Nuno Teixeira <eduardo@freebsd.org> [20220822 21:52]:
> .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100069
> EXTRA_PATCHES=	${PATCHDIR}/extra-patch-fbsd10
> .endif

Possible alternative without if:

EXTRA_PATCHES=		${EXTRA_PATCHES_${OPSYS}}
EXTRA_PATCHES_FreeBSD=	${${OSVERSION}<1300000:?${PATCHDIR}/extra-foo:}

Not sure whether that's more readable. Maybe worth considering if this
extra patch would be the only reason to introduce bsd.port.pre.mk
otherwise.

-- 
 Felix Palmen <zirias@FreeBSD.org>     {private}   felix@palmen-it.de
 -- ports committer (mentee) --            {web}  http://palmen-it.de
 {pgp public key}  http://palmen-it.de/pub.txt
 {pgp fingerprint} 6936 13D5 5BBF 4837 B212  3ACC 54AD E006 9879 F231