mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Update to patchlevel 14;
- Don't link with Atlas, but with Blas + Lapack, unless WITH_ATLAS is set or Atlas libraries have already been installed.
This commit is contained in:
parent
e76b945cd6
commit
ea22d6eb25
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=165980
3 changed files with 22 additions and 13 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= petsc
|
||||
PORTVERSION= 2.3.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= math parallel
|
||||
MASTER_SITES= ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-p${PATCHLEVEL}
|
||||
|
@ -16,7 +17,7 @@ COMMENT= Portable, Extensible Toolkit for Scientific computation
|
|||
|
||||
RUN_DEPENDS= ksh93:${PORTSDIR}/shells/ksh93
|
||||
|
||||
PATCHLEVEL= 7
|
||||
PATCHLEVEL= 14
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
USE_PYTHON= yes
|
||||
|
@ -46,12 +47,6 @@ PFX= ${PORTNAME}
|
|||
TARGET= ${OPSYS:L}
|
||||
PLIST_SUB= PFX=${PFX} TARGET=${TARGET}
|
||||
|
||||
.if !defined(WITHOUT_BLASLAPACK)
|
||||
LIB_DEPENDS+= f77blas.1:${PORTSDIR}/math/atlas
|
||||
LIBBLASLAPACK= "-L${LOCALBASE}/lib -lalapack -lf77blas -lcblas -latlas -lg2c -lm"
|
||||
CONFIGURE_ARGS+= --with-blas-lapack-lib=${LIBBLASLAPACK}
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_UMFPACK)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/libumfpack.a:${PORTSDIR}/math/umfpack
|
||||
CONFIGURE_ARGS+= --with-umfpack-include="${LOCALBASE}/include/UMFPACK" \
|
||||
|
@ -98,6 +93,19 @@ WITHOUT_SUPERLU= yes
|
|||
PLIST_SUB+= MPIUNI=""
|
||||
.endif
|
||||
|
||||
.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
|
||||
LIBBLASLAPACK= "-L${LOCALBASE}/lib -lalapack -lf77blas -lcblas -latlas -lg2c -lm"
|
||||
CONFIGURE_ARGS+= --with-blas-lapack-lib=${LIBBLASLAPACK}
|
||||
.else
|
||||
LIB_DEPENDS+= lapack.3:${PORTSDIR}/math/lapack
|
||||
LIBBLASLAPACK= "-L${LOCALBASE}/lib -llapack -lblas -lm"
|
||||
CONFIGURE_ARGS+= --with-blas-lapack-lib=${LIBBLASLAPACK}
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_SUPERLU) && !defined(WITHOUT_BLASLAPACK)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsuperlu.a:${PORTSDIR}/math/superlu
|
||||
CONFIGURE_ARGS+= --with-superlu-include=${LOCALBASE}/include/superlu \
|
||||
|
@ -196,8 +204,8 @@ pre-everything::
|
|||
.if !defined (WITHOUT_X11)
|
||||
@${ECHO_MSG} "Define WITHOUT_X11 to remove X11 support."
|
||||
.endif
|
||||
.if !defined (WITHOUT_BLASLAPACK)
|
||||
@${ECHO_MSG} "Define WITHOUT_BLASLAPACK to remove Blas / Lapack support."
|
||||
.if !defined (WITH_ATLAS)
|
||||
@${ECHO_MSG} "Define WITH_ATLAS to replace Blas / Lapack support by Atlas."
|
||||
.endif
|
||||
.if !defined (WITHOUT_BS95)
|
||||
@${ECHO_MSG} "Define WITHOUT_BS95 to remove BlockSolve95 support."
|
||||
|
@ -239,7 +247,7 @@ post-install:
|
|||
@${ECHO_MSG}
|
||||
|
||||
.if defined(MAINTAINER_MODE)
|
||||
test: build
|
||||
regression-test: build
|
||||
@(cd ${BUILD_WRKSRC}; \
|
||||
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
|
||||
.endif
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (petsc-2.3.1-p7.tar.gz) = 2d2a15d0ad066a48e14ac11d6f082b3f
|
||||
SHA256 (petsc-2.3.1-p7.tar.gz) = 80e429fbcd5564b5086aecb559a0618f7551ea2891fce5f413bb1368194dca3d
|
||||
SIZE (petsc-2.3.1-p7.tar.gz) = 10278608
|
||||
MD5 (petsc-2.3.1-p14.tar.gz) = 4fe53540e6321c8866e5dd91b506728a
|
||||
SHA256 (petsc-2.3.1-p14.tar.gz) = 3e20543b5f7accbab1f1351ac1e0a346db4dd57a466dacadb18556a7f197f2d3
|
||||
SIZE (petsc-2.3.1-p14.tar.gz) = 10282297
|
||||
|
|
|
@ -115,6 +115,7 @@
|
|||
%%PFX%%/include/finclude/petscdef.h.html
|
||||
%%PFX%%/include/finclude/petscdraw.h
|
||||
%%PFX%%/include/finclude/petscdraw.h.html
|
||||
%%PFX%%/include/finclude/petscerror.h
|
||||
%%PFX%%/include/finclude/petscis.h
|
||||
%%PFX%%/include/finclude/petscis.h.html
|
||||
%%PFX%%/include/finclude/petscis.h90
|
||||
|
|
Loading…
Add table
Reference in a new issue