PORTNAME= hmat-oss DISTVERSION= 1.10.0 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Hierarchical matrix C/C++ library WWW= https://github.com/jeromerobert/hmat-oss LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE.md LIB_DEPENDS= liblapacke.so:math/lapacke \ libblas.so:math/blas \ liblapack.so:math/lapack \ libopenblas.so:math/openblas USES= cmake USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= jeromerobert CMAKE_ARGS= -DBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so \ -DLAPACK_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so CMAKE_OFF= HMAT_GIT_VERSION LDFLAGS+= -lexecinfo 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