git: aacc620c08b4 - main - misc/opennn: Limit BROKEN_riscv64 to pre-13.1 systems
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 16 Jul 2022 01:04:20 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=aacc620c08b4ef10bb39aa845e64a4b1e4abcb1a commit aacc620c08b4ef10bb39aa845e64a4b1e4abcb1a Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-07-16 00:52:22 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-07-16 01:04:17 +0000 misc/opennn: Limit BROKEN_riscv64 to pre-13.1 systems Reported by: pkubaj@ --- 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>