svn commit: r376364 - head/math/blocksolve95
Thierry Thomas
thierry at FreeBSD.org
Mon Jan 5 21:35:34 UTC 2015
Author: thierry
Date: Mon Jan 5 21:35:33 2015
New Revision: 376364
URL: https://svnweb.freebsd.org/changeset/ports/376364
QAT: https://qat.redports.org/buildarchive/r376364/
Log:
Uses blaslapack.mk.
Modified:
head/math/blocksolve95/Makefile
Modified: head/math/blocksolve95/Makefile
==============================================================================
--- head/math/blocksolve95/Makefile Mon Jan 5 21:26:31 2015 (r376363)
+++ head/math/blocksolve95/Makefile Mon Jan 5 21:35:33 2015 (r376364)
@@ -22,9 +22,14 @@ LIB_DEPENDS= libf2c.so:${PORTSDIR}/lang/
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 \
More information about the svn-ports-head
mailing list