diff options
author | thierry <thierry@FreeBSD.org> | 2006-07-23 16:38:59 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2006-07-23 16:38:59 +0800 |
commit | af8c3a9217cb307c99642955c474da121d666708 (patch) | |
tree | 5e160c7fba9540d940ccd88c8e58772e7c4fa398 /math | |
parent | f815325c3e7fc1f1fe43e5b33450a92d9b121e2b (diff) | |
download | freebsd-ports-gnome-af8c3a9217cb307c99642955c474da121d666708.tar.gz freebsd-ports-gnome-af8c3a9217cb307c99642955c474da121d666708.tar.zst freebsd-ports-gnome-af8c3a9217cb307c99642955c474da121d666708.zip |
- Upgrade to patchlevel 16;
- Remove BROKEN;
- Switch to MPICH2.
Diffstat (limited to 'math')
-rw-r--r-- | math/petsc/Makefile | 32 | ||||
-rw-r--r-- | math/petsc/distinfo | 6 | ||||
-rw-r--r-- | math/petsc/files/patch-python_PETSc_packages_BlasLapack.py | 23 |
3 files changed, 45 insertions, 16 deletions
diff --git a/math/petsc/Makefile b/math/petsc/Makefile index f3170e8802ae..da382471f617 100644 --- a/math/petsc/Makefile +++ b/math/petsc/Makefile @@ -6,21 +6,16 @@ # PORTNAME= petsc -PORTVERSION= 2.3.1 -PORTREVISION= 1 +DISTVERSION= 2.3.1-p16 +PORTEPOCH= 1 CATEGORIES= math parallel MASTER_SITES= ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/ -DISTNAME= ${PORTNAME}-${PORTVERSION}-p${PATCHLEVEL} MAINTAINER= ports@FreeBSD.org COMMENT= Portable, Extensible Toolkit for Scientific computation -BROKEN= fails to configure - RUN_DEPENDS= ksh93:${PORTSDIR}/shells/ksh93 -PATCHLEVEL= 14 - HAS_CONFIGURE= yes USE_PYTHON= yes CONFIGURE_SCRIPT= config/configure.py @@ -64,7 +59,7 @@ PORTDOCS= * LIBSCALAPACK= ${LOCALBASE}/lib/libscalapack.a LIBBLACS= ${LOCALBASE}/lib/libblacs.a -MPIDIR= ${LOCALBASE}/mpich +MPIDIR= ${LOCALBASE}/mpich2 .include <bsd.port.pre.mk> @@ -72,7 +67,7 @@ MPIDIR= ${LOCALBASE}/mpich WITHOUT_SUPERLU= yes .endif -.if exists(${MPIDIR}/bin/mpiCC) && !defined(WITHOUT_MPI) +.if exists(${MPIDIR}/bin/mpicc) && !defined(WITHOUT_MPI) WITH_MPI= yes .endif .if defined(WITH_MPI) @@ -80,9 +75,9 @@ WITH_MPI= yes BROKEN= Cannot build with mpich when lam7 is installed - set WITHOUT_MPI or deinstall lam7 . endif PKGNAMESUFFIX+= -mpich -BUILD_DEPENDS+= ${MPIDIR}/bin/mpiCC:${PORTSDIR}/net/mpich -RUN_DEPENDS+= ${MPIDIR}/bin/mpirun:${PORTSDIR}/net/mpich -CONFIGURE_ARGS+= --with-mpi-dir=${LOCALBASE}/mpich +BUILD_DEPENDS+= ${MPIDIR}/bin/mpicc:${PORTSDIR}/net/mpich2 +RUN_DEPENDS+= ${MPIDIR}/bin/mpirun:${PORTSDIR}/net/mpich2 +CONFIGURE_ARGS+= --with-mpi-dir=${LOCALBASE}/mpich2 CONFLICTS= petsc-2* PLIST_SUB+= MPIUNI="@comment " .else @@ -249,9 +244,20 @@ post-install: @${ECHO_MSG} .if defined(MAINTAINER_MODE) -regression-test: build +regression-test: +. if defined (WITH_MPI) +. if !exists(${HOME}/.mpd.conf) + @${ECHO_CMD} "MPD_SECRETWORD=change_on_install" > ${HOME}/.mpd.conf + ${CHMOD} go-r ${HOME}/.mpd.conf + @${ECHO_MSG} "${HOME}/.mpd.conf has been generated - please change the secret word!" +. endif + ${LOCALBASE}/mpich2/bin/mpd & +. endif @(cd ${BUILD_WRKSRC}; \ ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test) +. if defined (WITH_MPI) + ${LOCALBASE}/mpich2/bin/mpdallexit +. endif .endif .include <bsd.port.post.mk> diff --git a/math/petsc/distinfo b/math/petsc/distinfo index e38e9fb1a79f..47481c1039b8 100644 --- a/math/petsc/distinfo +++ b/math/petsc/distinfo @@ -1,3 +1,3 @@ -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 +MD5 (petsc-2.3.1-p16.tar.gz) = 643d8f429a074e19156f00d7f0e4e5dc +SHA256 (petsc-2.3.1-p16.tar.gz) = 98dd93df32788e33d2cee381fb3af4dc20f90dc84308c0d3c84e2eb57093c6ee +SIZE (petsc-2.3.1-p16.tar.gz) = 10266456 diff --git a/math/petsc/files/patch-python_PETSc_packages_BlasLapack.py b/math/petsc/files/patch-python_PETSc_packages_BlasLapack.py new file mode 100644 index 000000000000..0f18156cfebe --- /dev/null +++ b/math/petsc/files/patch-python_PETSc_packages_BlasLapack.py @@ -0,0 +1,23 @@ +--- python/PETSc/packages/BlasLapack.py.orig Fri Jul 21 04:44:48 2006 ++++ python/PETSc/packages/BlasLapack.py Sat Jul 22 13:57:25 2006 +@@ -117,14 +117,13 @@ + foundBlas = self.checkBlas(blasLibrary, self.getOtherLibs(foundBlas, blasLibrary), mangleFunc) + if foundBlas: + foundLapack = self.checkLapack(lapackLibrary, self.getOtherLibs(foundBlas, blasLibrary), mangleFunc) +- elif not hasattr(self.compilers, 'FC'): +- self.framework.logPrint('Checking cblaslapack') +- foundcBlasLapack = self.checkBlas(blasLibrary, self.getOtherLibs(foundBlas, blasLibrary), 0, 'f2cblaslapack_id_') +- if foundcBlasLapack: +- foundBlas = self.checkBlas(blasLibrary, self.getOtherLibs(foundBlas, blasLibrary), 0, 'ddot_') ++ else: ++ self.framework.logPrint('Checking cblaslapack name-mangling') ++ foundBlas = self.checkBlas(blasLibrary, self.getOtherLibs(foundBlas, blasLibrary), 0, 'ddot_') ++ if foundBlas: ++ self.framework.logPrint('Found cblaslapack') + foundLapack = self.checkLapack(lapackLibrary, self.getOtherLibs(foundBlas, blasLibrary), 0, ['dgetrs_', 'dgeev_']) +- if foundBlas and foundLapack: +- self.framework.logPrint('Found cblaslapack') ++ if foundLapack: + self.f2c = 1 + return (foundBlas, foundLapack) + |