On 03/09/2017 05:57, Yuri wrote:
> 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.
> 

If you're referring to $OPSYS or $OSVERSION then you'll want to
put that section of code after

.include <bsd.port.pre.mk>

and obviously change the last line in your Makefile to

.include <bsd.port.post.mk>

        Cheers,

        Matthew


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to