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
This commit is contained in:
Vladimir Druzenko 2024-03-22 21:35:37 +03:00
parent 1c9739605b
commit cab93d2304
1 changed files with 4 additions and 0 deletions

View File

@ -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}} \