Index: Makefile =================================================================== --- Makefile +++ Makefile @@ -24,9 +24,14 @@ USE_PYTHON= concurrent distutils py3kplist LDFLAGS+= -shared -OPTIONS_DEFINE= ATLAS SUITESPARSE DOCS -OPTIONS_DEFAULT= SUITESPARSE +OPTIONS_DEFINE= SUITESPARSE DOCS +OPTIONS_RADIO= BLASLIB +OPTIONS_RADIO_BLASLIB= ATLAS OPENBLAS BLAS +OPTIONS_DEFAULT= SUITESPARSE BLAS ATLAS_DESC= Use optimized blas library +BLAS_DESC= Use blas+lapack libraries +OPENBLAS_DESC= Use openblas ibrary + SUITESPARSE_DESC= Use AMD and UMFPACK in SuiteSparse PYDISTUTILS_CONFIGUREARGS+= --fcompiler=gnu95 @@ -37,8 +42,9 @@ DOCVERSION= 1.9.1 ATLAS_LIB_DEPENDS= libatlas.so:${PORTSDIR}/math/atlas -ATLAS_LIB_DEPENDS_OFF= libblas.so:${PORTSDIR}/math/blas \ +BLAS_LIB_DEPENDS= libblas.so:${PORTSDIR}/math/blas \ liblapack.so:${PORTSDIR}/math/lapack +OPENBLAS_LIB_DEPENDS= libopenblas.so:${PORTSDIR}/math/openblas SUITESPARSE_LIB_DEPENDS=libumfpack.so:${PORTSDIR}/math/suitesparse .include @@ -55,10 +61,12 @@ GCCLIBDIR_CMDS= ${FC} -print-file-name=libgfortran.so|${SED} -e s/libgfortran.so// pre-configure: -.if ${PORT_OPTIONS:MATLAS} - @${REINPLACE_CMD} -e "s+%%ATLASLIBS%%+alapack, f77blas, cblas, atlas+" ${WRKSRC}/site.cfg +.if ${PORT_OPTIONS:MOPENBLAS} + @${REINPLACE_CMD} -e "s+%%BLASNAME%%+openblas+" ${WRKSRC}/site.cfg +.elif ${PORT_OPTIONS:MATLAS} + @${REINPLACE_CMD} -e "s+%%BLASNAME%%+atlas+" ${WRKSRC}/site.cfg .else - @${REINPLACE_CMD} -e "s+%%ATLASLIBS%%+lapack, blas+" ${WRKSRC}/site.cfg + @${REINPLACE_CMD} -e "s+%%BLASNAME%%+reference+" ${WRKSRC}/site.cfg .endif .if !${PORT_OPTIONS:MSUITESPARSE} @${REINPLACE_CMD} -e "s+:%%LOCALBASE%%/include/suitesparse++" ${WRKSRC}/site.cfg Index: files/site.cfg =================================================================== --- files/site.cfg +++ files/site.cfg @@ -1,10 +1,18 @@ [DEFAULT] -lapack_type=atlas +lapack_type=%%BLASNAME%% library_dirs = /usr/lib:%%LOCALBASE%%/lib:%%GCCLIBDIR%% include_dirs = /usr/include:%%LOCALBASE%%/include:%%LOCALBASE%%/include/suitesparse src_dirs = %%LOCALBASE%%/src # search static libraries (.a) in preference to shared ones (.so) search_static_first = 0 +[reference] +library_dirs = %%LOCALBASE%%/lib:%%GCCLIBDIR%% +atlas_libs = lapack, blas, gfortran + [atlas] library_dirs = %%LOCALBASE%%/lib:%%GCCLIBDIR%% -atlas_libs = %%ATLASLIBS%% +atlas_libs = alapack, f77blas, cblas, atlas, gfortran + +[openblas] +library_dirs = %%LOCALBASE%%/lib:%%GCCLIBDIR%% +libraries = openblasp, gfortran \ No newline at end of file