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
This commit is contained in:
Mateusz Piotrowski 2021-01-17 00:10:44 +01:00
parent 8403170b3d
commit c0e41dff70

View File

@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd April 6, 2021
.Dd April 17, 2021
.Dt PORTS 7
.Os
.Sh NAME
@ -645,6 +645,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 ,