* Nuno Teixeira <edua...@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 <zir...@freebsd.org>     {private}   fe...@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

Attachment: signature.asc
Description: PGP signature

Reply via email to