svn commit: r525704 - head/math/hmat-oss
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Feb 10 13:23:57 UTC 2020
Author: pkubaj
Date: Mon Feb 10 13:23:56 2020
New Revision: 525704
URL: https://svnweb.freebsd.org/changeset/ports/525704
Log:
math/hmat-oss: fix build on GCC architectures
After OpenBLAS update, new GCC is required:
CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find CBLAS (missing: CBLAS_LIBRARIES)
Modified:
head/math/hmat-oss/Makefile
Modified: head/math/hmat-oss/Makefile
==============================================================================
--- head/math/hmat-oss/Makefile Mon Feb 10 12:48:50 2020 (r525703)
+++ head/math/hmat-oss/Makefile Mon Feb 10 13:23:56 2020 (r525704)
@@ -22,6 +22,12 @@ USE_LDCONFIG= yes
CMAKE_ARGS= -DBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so \
-DLAPACK_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc
+USE_GCC= yes
+.endif
+
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_EXAMPLES:BOOL=ON ${CMAKE_SOURCE_PATH} && \
@@ -29,4 +35,4 @@ do-test:
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list