svn commit: r503317 - head/math/hmat-oss

Yuri Victorovich yuri at FreeBSD.org
Sun Jun 2 15:30:34 UTC 2019


Author: yuri
Date: Sun Jun  2 15:30:33 2019
New Revision: 503317
URL: https://svnweb.freebsd.org/changeset/ports/503317

Log:
  math/hmat-oss: Enable tests

Modified:
  head/math/hmat-oss/Makefile

Modified: head/math/hmat-oss/Makefile
==============================================================================
--- head/math/hmat-oss/Makefile	Sun Jun  2 15:29:18 2019	(r503316)
+++ head/math/hmat-oss/Makefile	Sun Jun  2 15:30:33 2019	(r503317)
@@ -27,4 +27,11 @@ CMAKE_ARGS=	-DBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/l
 post-configure: # fix the error in math/openturns: /usr/local/lib/libhmat-oss.so.1: undefined reference to `openblas_set_num_threads(int)'
 	@${REINPLACE_CMD} "s|#define OPENBLAS_DISABLE_THREADS|\/\/&|" ${BUILD_WRKSRC}/config.h # OPENBLAS_DISABLE_THREADS enables openblas_set_num_threads(int) here
 
+do-test:
+	@cd ${BUILD_WRKSRC} && \
+		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_EXAMPLES:BOOL=ON ${CMAKE_SOURCE_PATH} && \
+		${REINPLACE_CMD} "s|#define OPENBLAS_DISABLE_THREADS|\/\/&|" ${BUILD_WRKSRC}/config.h && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
+
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list