git: cab93d2304d3 - main - Mk/bsd.options.mk: add possibility set default options for other (not defined in port) arches
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 22 Mar 2024 18:43:50 UTC
The branch main has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cab93d2304d3214c4578ea5726dd519a3acd83d0
commit cab93d2304d3214c4578ea5726dd519a3acd83d0
Author: Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-03-22 18:35:37 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-03-22 18:43:25 +0000
Mk/bsd.options.mk: add possibility set default options for other (not defined in port) arches
New port option OPTIONS_DEFAULT_OTHER_ARCHS.
Examples are at review.
Approved by: arrowd (portmgr, mentor)
Differential Revision: https://reviews.freebsd.org/D44228
---
Mk/bsd.options.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk
index 83a03c885ff0..964b817ff706 100644
--- a/Mk/bsd.options.mk
+++ b/Mk/bsd.options.mk
@@ -219,7 +219,11 @@ OPTIONS_DEFINE+= ${opt}
. endfor
# Add per arch defaults
+. if defined(OPTIONS_DEFAULT_${ARCH})
OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${ARCH}}
+. else
+OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_OTHER_ARCHS}
+. endif
_ALL_EXCLUDE= ${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE} \
${OPTIONS_SLAVE} ${OPTIONS_EXCLUDE_${OPSYS}} \