forked from Lainports/freebsd-ports
Better BLAS/LAPACK support.
This commit is contained in:
parent
5ed4b0e727
commit
7bbcb8511e
1 changed files with 17 additions and 7 deletions
|
|
@ -45,18 +45,28 @@ BUILD_DEPENDS+= info:${PORTSDIR}/print/texinfo
|
|||
BROKEN= Fails to install
|
||||
.endif
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
|
||||
WITH_ATLAS= yes
|
||||
USE_BLAS?= reference
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libgoto.so)
|
||||
USE_BLAS= gotoblas
|
||||
.elif exists(${LOCALBASE}/lib/libatlas_r.so)
|
||||
USE_BLAS= atlas
|
||||
.endif
|
||||
.if defined(WITH_ATLAS)
|
||||
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
|
||||
BLAS= -lf77blas -latlas
|
||||
LAPACK= -lalapack
|
||||
.else
|
||||
|
||||
. if ${USE_BLAS} == reference
|
||||
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
|
||||
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
|
||||
BLAS= -lblas
|
||||
LAPACK= -llapack
|
||||
.elif ${USE_BLAS} == gotoblas
|
||||
LIB_DEPENDS+= goto:${PORTSDIR}/math/gotoblas
|
||||
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
|
||||
BLAS= -lgotop
|
||||
LAPACK= -lgotop -llapack
|
||||
.elif ${USE_BLAS} == atlas
|
||||
LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
|
||||
BLAS= -lptf77blas -lptcblas -latlas_r
|
||||
LAPACK= -lalapack_r
|
||||
.endif
|
||||
|
||||
USE_FORTRAN= yes
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue