git: 3cb48e478564 - 2022Q3 - science/gabedit: Limit BROKEN_riscv64 to pre-13.1 systems
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Jul 2022 19:27:38 UTC
The branch 2022Q3 has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3cb48e478564abe85103a46357e7bbb007e542b2
commit 3cb48e478564abe85103a46357e7bbb007e542b2
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-16 01:03:43 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-20 19:27:08 +0000
science/gabedit: Limit BROKEN_riscv64 to pre-13.1 systems
(cherry picked from commit 7f2c0ee00df82ca1d759d35405f7904b98de8028)
---
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>