aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2015-01-06 05:35:33 +0800
committerthierry <thierry@FreeBSD.org>2015-01-06 05:35:33 +0800
commitc23e294331187d5e3eeaf59bd8b450b10aa90263 (patch)
tree14adf50049aeb303127b53ed830d9193cfe0ca33 /math
parent62254c264cf184e35a8275bdf77a60e8e9809a96 (diff)
downloadfreebsd-ports-gnome-c23e294331187d5e3eeaf59bd8b450b10aa90263.tar.gz
freebsd-ports-gnome-c23e294331187d5e3eeaf59bd8b450b10aa90263.tar.zst
freebsd-ports-gnome-c23e294331187d5e3eeaf59bd8b450b10aa90263.zip
Uses blaslapack.mk.
Diffstat (limited to 'math')
-rw-r--r--math/blocksolve95/Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/math/blocksolve95/Makefile b/math/blocksolve95/Makefile
index f62a5c27a8b2..96e6af63a0e5 100644
--- a/math/blocksolve95/Makefile
+++ b/math/blocksolve95/Makefile
@@ -22,9 +22,14 @@ LIB_DEPENDS= libf2c.so:${PORTSDIR}/lang/f2c \
libmpich.so:${PORTSDIR}/net/mpich2
USES= fortran gmake tar:Z
+.if defined(WITH_ATLAS)
+USES+= blaslapack:atlas
+.else
+USES+= blaslapack
+.endif
MAKEFILE= makefile
MAKE_ARGS= GMAKE=${MAKE_CMD} PETSC_ARCH=${PETSC_ARCH} BOPT=${BOPT} \
- BLAS_LIB="${BLAS_LIB}" LAPACK_LIB="${LAPACK_LIB}"
+ BLAS_LIB="${BLASLIB}" LAPACK_LIB="-L${LOCALBASE}/lib ${LAPACKLIB}"
MPIDIR= ${LOCALBASE}
PETSC_ARCH= freebsd
@@ -40,16 +45,6 @@ PORTDOCS= manual.ps
.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
WITH_ATLAS= yes
.endif
-.if defined(WITH_ATLAS)
-LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
-BLAS_LIB= -lf77blas
-LAPACK_LIB= -L${LOCALBASE}/lib -lalapack -lcblas
-.else
-LIB_DEPENDS+= liblapack.so:${PORTSDIR}/math/lapack
-LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas
-BLAS_LIB= -lblas
-LAPACK_LIB= -L${LOCALBASE}/lib -llapack
-.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/lib/lib${BOPT}/${PETSC_ARCH}/libBS95.a \