git: de16e756bea5 - main - math/gravity: Fix the test target

Yuri Victorovich yuri at FreeBSD.org
Thu May 13 22:24:58 UTC 2021


The branch main has been updated by yuri:

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

commit de16e756bea51dcbe3d4cdf0cb42c50973c01277
Author:     Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-05-13 22:22:35 +0000
Commit:     Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-05-13 22:24:46 +0000

    math/gravity: Fix the test target
    
    Test executable is built by the project by default. This was
    changed in the patch and made conditional on a special cmake
    variable. The test target is now updated to reflect this.
---
 math/gravity/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/math/gravity/Makefile b/math/gravity/Makefile
index 3a91bf2c94f3..340e9aa3596b 100644
--- a/math/gravity/Makefile
+++ b/math/gravity/Makefile
@@ -36,6 +36,9 @@ CMAKE_ON=	Boost Ipopt
 LDFLAGS+=	-L${LOCALBASE}/lib/gcc${GCC_DEFAULT}
 
 do-test:
-	@${WRKSRC}/bin/Release/gravity_test
+	@cd ${BUILD_WRKSRC} && \
+		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_EXAMPLES:BOOL=ON ${CMAKE_SOURCE_PATH} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
+		${WRKSRC}/bin/Release/gravity_test
 
 .include <bsd.port.mk>


More information about the dev-commits-ports-all mailing list