It works fine when PORTSDIR points at the physical lcoation.
if PORTSDIR point to symlink (as on benot), the workdirs are
at a diffrent location.
You expect:
${WRKDIRPREFIX}${PORTSDIR}/news/cnews/work
===> c-nocem-3.7 depends on file: /tmp/usr/ports/news/cnews/work/conf/substitutions - not found
but the port genarted itws workfiles at:
/tmp/a/ports/news/cnews/work/conf/substitutions
The location can only be found with
${WRKDIRPREFIX}${.CURDIR}/../../news/cnews/work
For some unknown reason for the i386 ports build had failed,
workdir was searched in: "/tmp/usr/ports/news/cnews/work/"
but created files are at: "/tmp/a/ports/news/cnews/work/"
changed to use ${.CURDIR} instead of ${PORTSDIR}
old: ${WRKDIRPREFIX}${PORTSDIR}/news/cnews/work/
new: ${WRKDIRPREFIX}${.CURDIR}/../cnews/work