What is the right way to make OPTIONS_DEFAULT depend on

Yuri yuri at rawbw.com
Sun Sep 3 04:57:19 UTC 2017


This doesn't work:

> .include <bsd.port.options.mk>
>
> .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000
> OPTIONS_DEFAULT+= MYOPT
> .endif
MYOPT isn't picked up


I tried with a regular expressions, witout .include:
> SYSVERSION=    ${OPSYS}${OSVERSION}
> OPTIONS_DEFAULT=HELP ${SYSVERSION:C/^FreeBSD1[1-9][0-9]{5}$/MYOPT/:MMYOPT}
MYOPT isn't picked up again.


Yuri



More information about the freebsd-ports mailing list