Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2022 19:27:33 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: 861c384a0ef3 - 2022Q3 - misc/opennn: Limit BROKEN_riscv64 to pre-13.1 systems
Message-ID:  <202207201927.26KJRXqm013890@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=861c384a0ef3f5c8ec86b9d87700a96ffd6681b9

commit 861c384a0ef3f5c8ec86b9d87700a96ffd6681b9
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-16 00:52:22 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-20 19:25:38 +0000

    misc/opennn: Limit BROKEN_riscv64 to pre-13.1 systems
    
    Reported by:    pkubaj@
    
    (cherry picked from commit aacc620c08b4ef10bb39aa845e64a4b1e4abcb1a)
---
 misc/opennn/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/misc/opennn/Makefile b/misc/opennn/Makefile
index 600ebd243910..8e3cf078492e 100644
--- a/misc/opennn/Makefile
+++ b/misc/opennn/Makefile
@@ -12,7 +12,6 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BROKEN_armv6=	fatal error: 'omp.h' file not found
 BROKEN_armv7=	fatal error: 'omp.h' file not found
-BROKEN_riscv64=	fatal error: 'omp.h' file not found
 
 USES=		cmake:testing compiler:c++11-lang dos2unix zip
 USE_LDCONFIG=	yes
@@ -25,6 +24,12 @@ 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
@@ -33,4 +38,4 @@ do-install:
 post-test:
 	@cd ${TEST_WRKSRC} && (${ECHO} suite | tests/tests)
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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