Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2024 18:43:50 GMT
From:      Vladimir Druzenko <vvd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: cab93d2304d3 - main - Mk/bsd.options.mk: add possibility set default options for other (not defined in port) arches
Message-ID:  <202403221843.42MIhoWN029580@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}} \



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