PORTNAME= ALPSCore DISTVERSIONPREFIX= v DISTVERSION= 2.3.3 CATEGORIES= science MAINTAINER= alven@FreeBSD.org COMMENT= Generic algorithms and utilities for condensed matter physics WWW= https://alpscore.org/ \ https://github.com/ALPSCore/ALPSCore/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.TXT BUILD_DEPENDS= boost-libs>=0:devel/boost-libs LIB_DEPENDS= libhdf5.so:science/hdf5 USES= cmake compiler:c++14-lang eigen:3 USE_CXXSTD= c++14 USE_GITHUB= yes USE_LDCONFIG= yes CMAKE_ARGS= -DTesting:BOOL=OFF # enable only for the 'test' target CMAKE_TESTING_ON= ExtensiveTesting Testing TEST_TARGET= test # 2 to 3 tests fail: https://github.com/ALPSCore/ALPSCore/issues/388 PORTDOCS= * OPTIONS_DEFINE= DOCS DOXYGEN OPENMPI OPTIONS_DEFAULT= OPENMPI DOXYGEN_IMPLIES= DOCS DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen DOXYGEN_CMAKE_BOOL= Documentation OPENMPI_USES= mpi:openmpi OPENMPI_CMAKE_BOOL= ENABLE_MPI .include # Fix build with current HDF5 versions instead of hardcoded one post-patch: ${REINPLACE_CMD} -e '/find_package/s,HDF5 1.10.2 REQUIRED,HDF5 CONFIG REQUIRED,g' \ ${WRKSRC}/common/cmake/ALPSCommonModuleDefinitions.cmake post-install-DOXYGEN-on: ${RM} ${STAGEDIR}${DOCSDIR}/.tag pre-test: @cd ${CONFIGURE_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \ ${CMAKE_ARGS_TEST} ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} .include