PORTNAME= flexiblas PORTVERSION= 3.3.1 PORTREVISION= 2 CATEGORIES= math MASTER_SITES= https://csc.mpi-magdeburg.mpg.de/mpcsc/software/flexiblas/ MAINTAINER= thierry@FreeBSD.org COMMENT= BLAS and LAPACK wrapper library with runtime exchangable backends WWW= https://www.mpi-magdeburg.mpg.de/projects/flexiblas LICENSE= GPLv3 LIB_DEPENDS= libblas.so:math/blas \ libblis.so:math/blis \ liblapack.so:math/lapack USES= cmake:testing fortran python tar:xz CONFIGURE_ENV= PYTHON_EXECUTABLE=${PYTHON_CMD} USE_LDCONFIG= yes .if defined(WITH_DEBUG) CMAKE_ARGS+= -DFIND_DEBUG:BOOL=ON .endif OPTIONS_DEFINE= DOCS EXAMPLES EXAMPLES_CMAKE_ON= -DEXAMPLES:BOOL=ON EXAMPLES_CMAKE_OFF= -DEXAMPLES:BOOL=OFF .include .if exists(${LOCALBASE}/lib/libatlas.so) LIB_DEPENDS+= libatlas.so:math/atlas PLIST_SUB+= OPENBLAS="@comment " ATLAS="" .else LIB_DEPENDS+= libcblas.so:math/cblas \ libopenblas.so:math/openblas PLIST_SUB+= OPENBLAS="" ATLAS="@comment " .endif post-install: ${MV} ${STAGEDIR}${PREFIX}/etc/flexiblasrc \ ${STAGEDIR}${PREFIX}/etc/flexiblasrc.sample .include