Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Apr 2021 20:18:08 GMT
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c0e41dff700c - main - ports.7: Add an example of setting variables for selected ports
Message-ID:  <202104172018.13HKI8px035077@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by 0mp (doc, ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=c0e41dff700cf8a4a06000f19bd2342cd6fe284d

commit c0e41dff700cf8a4a06000f19bd2342cd6fe284d
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2021-01-16 23:10:44 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2021-04-17 20:17:38 +0000

    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
---
 share/man/man7/ports.7 | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/share/man/man7/ports.7 b/share/man/man7/ports.7
index c3dbbc680050..64db0e669b1d 100644
--- a/share/man/man7/ports.7
+++ b/share/man/man7/ports.7
@@ -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 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104172018.13HKI8px035077>