From f319c80fd6f884cc5a7127bc1efed14181e4a97c Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Tue, 20 May 2003 19:20:57 +0000 Subject: [PATCH] Merge 'overriding default port directories' and 'ports with build options' into the main chapter. --- .../books/handbook/ports/chapter.sgml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/en_US.ISO8859-1/books/handbook/ports/chapter.sgml b/en_US.ISO8859-1/books/handbook/ports/chapter.sgml index 198f0735bc..b73ccb7a80 100644 --- a/en_US.ISO8859-1/books/handbook/ports/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/ports/chapter.sgml @@ -904,6 +904,41 @@ Receiving lsof_4.57D.freebsd.tar.gz (439860 bytes): 100% In this example we change the MASTER_SITES option to ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. + + Some ports require you to provide build options which can enable/disable + parts of the application which are unneeded, certain security options, + and other customizations. A few which come to mind are + net/mozilla, + security/gpgme, and + mail/sylpheed-claws. A message will be + displayed when options such as these are available. + + + + Overriding the Default Ports Directories + + Sometimes it is useful (or mandatory) to use a different distfiles + and ports directory. The PORTSDIR and + PREFIX variables can override the default + directories. For example: + + &prompt.root; make PORTSDIR=/usr/home/example/ports install + + will compile the port in /usr/home/example/ports and + install everything under /usr/local. + + &prompt.root; make PREFIX=/usr/home/example/local install + + will compile it in /usr/ports and install it in + /usr/home/example/local. + + And of course, + + &prompt.root; make PORTSDIR=../ports PREFIX=../local install + + will combine the two (it is too long to completely write on + this page, but it should give you the general idea). +