Make sure the port honors WRKDIRPREFIX.
      Most ports do not have to worry about this.  In particular, when
      referring to a WRKDIR of another
      port, note that the correct location is
      WRKDIRPREFIXPORTSDIR/
      not
      subdir/name/workPORTSDIR/
      or
      subdir/name/work.CURDIR/../../
      or some such.subdir/name/work
Also, if defining WRKDIR,
      make sure to prepend
      ${WRKDIRPREFIX}${.CURDIR} in
      the front.
All FreeBSD documents are available for download at https://download.freebsd.org/ftp/doc/
Questions that are not answered by the
    documentation may be
    sent to <freebsd-questions@FreeBSD.org>.
    Send questions about this document to <freebsd-doc@FreeBSD.org>.