4.5.2.1 Overriding the Default Ports Directories

- Replace PORTSDIR with WRKDIRPREFIX to make a bit more sense

PR:			docs/92699
Complained on by:	Matthias Reinhold <reinhold.matthias@web.de>
This commit is contained in:
Pav Lucistnik 2006-03-01 20:37:11 +00:00
parent 9f7a4ee9ad
commit 6afaf6f691
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=27251

View file

@ -1034,12 +1034,12 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch</userinput></screen>
<title>Overriding the Default Ports Directories</title>
<para>Sometimes it is useful (or mandatory) to use a different
distfiles and ports directory. The
<makevar>PORTSDIR</makevar> and <makevar>PREFIX</makevar>
working and target directory. The
<makevar>WRKDIRPREFIX</makevar> and <makevar>PREFIX</makevar>
variables can override the default directories. For
example:</para>
<screen>&prompt.root; <userinput>make PORTSDIR=/usr/home/example/ports install</userinput></screen>
<screen>&prompt.root; <userinput>make WRKDIRPREFIX=/usr/home/example/ports install</userinput></screen>
<para>will compile the port in
<filename>/usr/home/example/ports</filename> and install
@ -1053,7 +1053,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch</userinput></screen>
<para>And of course,</para>
<screen>&prompt.root; <userinput>make PORTSDIR=../ports PREFIX=../local install</userinput></screen>
<screen>&prompt.root; <userinput>make WRKDIRPREFIX=../ports PREFIX=../local install</userinput></screen>
<para>will combine the two (it is too long to completely write
on this page, but it should give you the general