--- Makefile 2020-12-13 19:36:43.843710000 -0500 +++ Makefile 2020-12-14 13:39:17.831125000 -0500 @@ -19,11 +19,18 @@ NO_ARCH= yes OPTIONS_DEFINE= FULL -OPTIONS_DEFAULT=FULL +OPTIONS_SINGLE= BLAS +OPTIONS_SINGLE_BLAS= ATLAS GOTOBLAS OPENBLAS REFERENCE +OPTIONS_DEFAULT= OPENBLAS FULL +ATLAS_DESC= ATLAS blas implementation +GOTOBLAS_DESC= GotoBLAS blas implementation +OPENBLAS_DESC= OpenBLAS blas implementation +REFERENCE_DESC= Reference blas implementation + FULL_DESC= Add the support for math dependencies FULL_CMAKE_ON= -DBLAS_DIR:PATH="${LOCALBASE}" -FULL_USES= blaslapack:openblas gl pkgconfig +FULL_USES= gl pkgconfig FULL_USE= GL=gl glew glut FULL_LIB_DEPENDS= libcholmod.so:math/suitesparse \ libsuperlu.so:math/superlu \ @@ -34,3 +41,16 @@ libboost_thread.so:devel/boost-libs .include + +.if ${PORT_OPTIONS:MFULL} +ATLAS_USES= blaslapack:atlas +ATLAS_CMAKE_ON= -DBLA_VENDOR:STRING="ATLAS" +GOTOBLAS_USES= blaslapack:gotoblas +GOTOBLAS_CMAKE_ON= -DBLA_VENDOR:STRING="Goto" +OPENBLAS_USES= blaslapack:openblas +OPENBLAS_CMAKE_ON= -DBLA_VENDOR:STRING="Open" +REFERENCE_USES= blaslapack +REFERENCE_CMAKE_ON= -DBLA_VENDOR:STRING="Generic" +.endif + +