Re: Patching Conditionally for 12.3 Releases
- In reply to: Felix Palmen : "Re: Patching Conditionally for 12.3 Releases"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
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)