git: 7f2c0ee00df8 - main - science/gabedit: Limit BROKEN_riscv64 to pre-13.1 systems

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 16 Jul 2022 01:04:21 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7f2c0ee00df82ca1d759d35405f7904b98de8028

commit 7f2c0ee00df82ca1d759d35405f7904b98de8028
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-16 01:03:43 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-16 01:04:18 +0000

    science/gabedit: Limit BROKEN_riscv64 to pre-13.1 systems
---
 science/gabedit/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/science/gabedit/Makefile b/science/gabedit/Makefile
index ac07138217d5..72ec14c27b70 100644
--- a/science/gabedit/Makefile
+++ b/science/gabedit/Makefile
@@ -14,7 +14,6 @@ LICENSE_FILE=	${WRKSRC}/License
 BROKEN_armv6=	fatal error: 'omp.h' file not found
 BROKEN_armv7=	fatal error: 'omp.h' file not found
 BROKEN_i386=	undefined reference to `__atomic_load'
-BROKEN_riscv64=	fatal error: 'omp.h' file not found
 
 LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2 \
@@ -42,6 +41,12 @@ OPTIONS_DEFINE=		OPENMP
 OPTIONS_DEFAULT=	OPENMP
 OPTIONS_EXCLUDE_powerpc=	OPENMP
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 1301000
+BROKEN_riscv64=	fatal error: 'omp.h' file not found
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} 's|/usr/|${PREFIX}/|; s| -O2| ${CFLAGS}|; s|gcc|${CC}|' ${WRKSRC}/CONFIG
 
@@ -56,4 +61,4 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/icons/Gabedit${SZ}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps/${PORTNAME}.png
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>