git: 10034f05db1d - main - flavors: Allow ignoring for specific OSREL

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Mon, 16 May 2022 08:54:27 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=10034f05db1d90eff004a08581c7639652d0ea98

commit 10034f05db1d90eff004a08581c7639652d0ea98
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-05-16 08:50:19 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-05-16 08:54:17 +0000

    flavors: Allow ignoring for specific OSREL
    
    This change allow a ports to have
    <flavor>_IGNORE_<OPSYS>_{OSREL,OSREL:R} in their makefile so we
    can ignore on specific FreeBSD version.
    
    Approved by:    bapt
    Reviewed by:    bapt
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
---
 Mk/bsd.port.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 9a5b47ebe4dc..0cf7c93e2c3a 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -2800,6 +2800,13 @@ IGNORE+=	(reason: ${NOT_FOR_ARCHS_REASON})
 
 # Check the user interaction and legal issues
 .    if !defined(NO_IGNORE)
+.for v in ${OSREL} ${OSREL:R}
+.for f in ${FLAVOR}
+.if defined($f_IGNORE_${OPSYS}_${v})
+IGNORE+= "${${f}_IGNORE_${OPSYS}_${v}}"
+.endif
+.endfor
+.endfor
 .      if (defined(IS_INTERACTIVE) && defined(BATCH))
 IGNORE=		is an interactive port
 .      elif (!defined(IS_INTERACTIVE) && defined(INTERACTIVE))