diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2006-06-21 21:36:29 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2006-06-21 21:36:29 +0000 |
commit | d7844cdb060bd97ef1226afef19968d0c4f2afc2 (patch) | |
tree | 9f7cd8ad31e5ef0aad3f5a940079094a5f57bc85 /math/blocksolve95/Makefile | |
parent | fdd1d5501348ac1c1be04b13adbe4652ff11a68d (diff) | |
download | ports-d7844cdb060bd97ef1226afef19968d0c4f2afc2.tar.gz ports-d7844cdb060bd97ef1226afef19968d0c4f2afc2.zip |
Notes
Diffstat (limited to 'math/blocksolve95/Makefile')
-rw-r--r-- | math/blocksolve95/Makefile | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/math/blocksolve95/Makefile b/math/blocksolve95/Makefile index 513db1960492..20f18b6ffb5b 100644 --- a/math/blocksolve95/Makefile +++ b/math/blocksolve95/Makefile @@ -17,14 +17,14 @@ DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Sofware for the efficient solution of large, sparse linear systems -LIB_DEPENDS= f77blas.1:${PORTSDIR}/math/atlas BUILD_DEPENDS= ${MPIDIR}/lib/libmpich.a:${PORTSDIR}/net/mpich RUN_DEPENDS= ${MPIDIR}/bin/mpirun:${PORTSDIR}/net/mpich USE_XLIB= yes USE_GMAKE= yes MAKEFILE= makefile -MAKE_ARGS= GMAKE=${GMAKE} PETSC_ARCH=${PETSC_ARCH} BOPT=${BOPT} +MAKE_ARGS= GMAKE=${GMAKE} PETSC_ARCH=${PETSC_ARCH} BOPT=${BOPT} \ + BLAS_LIB=${BLAS_LIB} LAPACK_LIB=${LAPACK_LIB} MPIDIR= ${LOCALBASE}/mpich PETSC_ARCH= freebsd @@ -37,6 +37,19 @@ PORTDOCS= manual.ps .include <bsd.port.pre.mk> +.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS) +WITH_ATLAS= yes +.endif +.if defined(WITH_ATLAS) +LIB_DEPENDS+= f77blas.1:${PORTSDIR}/math/atlas +BLAS_LIB= "-lf77blas -lcblas -latlas -lg2c -lm" +LAPACK_LIB= "-L${LOCALBASE}/lib -lalapack" +.else +LIB_DEPENDS+= lapack.3:${PORTSDIR}/math/lapack +BLAS_LIB= "-lblas -lm" +LAPACK_LIB= "-L${LOCALBASE}/lib -llapack" +.endif + do-install: ${INSTALL_DATA} ${WRKSRC}/lib/lib${BOPT}/${PETSC_ARCH}/libBS95.a \ ${PREFIX}/lib @@ -51,7 +64,7 @@ do-install: .endif .if defined(MAINTAINER_MODE) -test: build +regression-test: build @(cd ${BUILD_WRKSRC}/examples; \ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} bsrunexamples clean) .endif |