git: 704f77e78a95 - main - science/gabedit: Improve BROKEN lines and options

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 20 Jul 2022 19:21:50 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=704f77e78a9532b153a8863b7d96e30c81e88bcc

commit 704f77e78a9532b153a8863b7d96e30c81e88bcc
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-20 19:10:38 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-20 19:21:45 +0000

    science/gabedit: Improve BROKEN lines and options
    
    OPENMP option doesn't appear where it is not supported.
---
 science/gabedit/Makefile | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/science/gabedit/Makefile b/science/gabedit/Makefile
index 72ec14c27b70..b75fc5200449 100644
--- a/science/gabedit/Makefile
+++ b/science/gabedit/Makefile
@@ -11,9 +11,10 @@ COMMENT=	Graphical user interface for several chemistry software packages
 LICENSE=	MIT
 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'
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
 
 LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2 \
@@ -37,14 +38,9 @@ ICON_SIZES=	16 24 32 48
 PLIST_FILES+=	share/icons/hicolor/${SZ}x${SZ}/apps/${PORTNAME}.png
 .endfor
 
+.if exists(/usr/include/omp.h)
 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:
@@ -61,4 +57,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.post.mk>
+.include <bsd.port.mk>