Each port is extracted in to a working directory, which must be
writable. The ports system defaults to having the
DISTFILES
unpack in to a directory called
${DISTNAME}
. In other words, if you have
set:
PORTNAME= foo PORTVERSION= 1.0
then the port's distribution files contain a top-level directory,
foo-1.0
, and the rest of the files are located
under that directory.
There are a number of variables you can override if that is not the case.
The variable lists the name of the directory that is created when
the application's distfiles are extracted. If our previous example
extracted into a directory called foo
(and not
foo-1.0
) you would write:
WRKSRC= ${WRKDIR}/foo
or possibly
WRKSRC= ${WRKDIR}/${PORTNAME}
All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/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>.