Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2022 19:27:34 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 2f29cd26e03b - 2022Q3 - misc/opennn: Improve BROKEN lines
Message-ID:  <202207201927.26KJRYZh013914@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2022Q3 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2f29cd26e03bc441f8afa45594ea71efad5a3d68

commit 2f29cd26e03bc441f8afa45594ea71efad5a3d68
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-20 19:16:47 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-20 19:25:52 +0000

    misc/opennn: Improve BROKEN lines
    
    (cherry picked from commit 4073897462649428e710c3a90b7feccc7114a69d)
---
 misc/opennn/Makefile | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/misc/opennn/Makefile b/misc/opennn/Makefile
index 8e3cf078492e..b05e31efefaf 100644
--- a/misc/opennn/Makefile
+++ b/misc/opennn/Makefile
@@ -10,8 +10,9 @@ COMMENT=	Open neural networks library
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BROKEN_armv6=	fatal error: 'omp.h' file not found
-BROKEN_armv7=	fatal error: 'omp.h' file not found
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
 
 USES=		cmake:testing compiler:c++11-lang dos2unix zip
 USE_LDCONFIG=	yes
@@ -24,12 +25,6 @@ CMAKE_TESTING_TARGET=	tests
 
 LDFLAGS+=	-lomp -pthread # https://github.com/Artelnics/opennn/issues/182
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 1301000
-BROKEN_riscv64=	fatal error: 'omp.h' file not found
-.endif
-
 do-install:
 	${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME} && ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/*.h ${STAGEDIR}${PREFIX}/include/${PORTNAME}
 	${INSTALL_DATA} ${BUILD_WRKSRC}/${PORTNAME}/libopennn.so ${STAGEDIR}${PREFIX}/lib
@@ -38,4 +33,4 @@ do-install:
 post-test:
 	@cd ${TEST_WRKSRC} && (${ECHO} suite | tests/tests)
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207201927.26KJRYZh013914>