diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2021-01-16 23:10:44 +0000 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2021-04-26 13:48:11 +0000 |
commit | 134172279b2e88179fa8be4f35b4e4445d266297 (patch) | |
tree | 976cb9bdc4e3a596ddd349bab9acc805bf4ed90e | |
parent | 061be8f939129fd5029efe832d1ad3b381edc3b3 (diff) | |
download | src-134172279b2e88179fa8be4f35b4e4445d266297.tar.gz src-134172279b2e88179fa8be4f35b4e4445d266297.zip |
ports.7: Add an example of setting variables for selected ports
Reviewed by: crees
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28202
(cherry picked from commit c0e41dff700cf8a4a06000f19bd2342cd6fe284d)
-rw-r--r-- | share/man/man7/ports.7 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/share/man/man7/ports.7 b/share/man/man7/ports.7 index 0ee6ae7ee714..d90a91630e77 100644 --- a/share/man/man7/ports.7 +++ b/share/man/man7/ports.7 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 10, 2020 +.Dd April 17, 2021 .Dt PORTS 7 .Os .Sh NAME @@ -631,6 +631,18 @@ shells_zsh_UNSET= DOCS EXAMPLES .Pp These and other options-related variables are documented in .Pa /usr/ports/Mk/bsd.options.mk . +.It Sy Example 5\&: No Setting Xr make 1 Variables for Specific Ports via Xr make.conf 5 +.Pp +The following example shows how to set arbitrary +.Xr make 1 +variables only specific ports: +.Bd -literal -offset 2n +# Set DISABLE_MAKE_JOBS for the lang/rust port: +\&.if ${.CURDIR:M*/lang/rust} +DISABLE_MAKE_JOBS= yes +TRYBROKEN= yes +\&.endif +.Ed .El .Sh SEE ALSO .Xr make 1 , |