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)