[96223] trunk/dports/math/petsc/Portfile
mmoll at macports.org
mmoll at macports.org
Sat Aug 4 21:07:20 PDT 2012
Revision: 96223
https://trac.macports.org/changeset/96223
Author: mmoll at macports.org
Date: 2012-08-04 21:07:18 -0700 (Sat, 04 Aug 2012)
Log Message:
-----------
math/petsc: partial cleanup of petsc Portfile, following Sean Farley's example (https://bitbucket.org/seanfarley/scienceports), update to 3.3-p2
Modified Paths:
--------------
trunk/dports/math/petsc/Portfile
Modified: trunk/dports/math/petsc/Portfile
===================================================================
--- trunk/dports/math/petsc/Portfile 2012-08-05 03:27:58 UTC (rev 96222)
+++ trunk/dports/math/petsc/Portfile 2012-08-05 04:07:18 UTC (rev 96223)
@@ -3,7 +3,7 @@
PortSystem 1.0
name petsc
-version 3.3-p0
+version 3.3-p2
categories math science
maintainers mmoll
description Portable, Extensible Toolkit for Scientific Computation
@@ -24,65 +24,58 @@
worksrcdir ${name}-${version}
universal_variant no
-checksums md5 bcd3fbc5b4cd88b78ec9ca18bb166b4e \
- sha1 ad1977c56e7b34c444b8063501cdbe70ddf3f4d0 \
- rmd160 f4245cabc6db8b0efcf6255202dc9e91d862267a
+checksums rmd160 200d049d691bce307d576aec27a4af6799e19802 \
+ sha256 75c0b127f1ba5077ae9d87d39331fb7cf1258c98ca7fd1dcf0f29f6d29ad3ff5
depends_build-append port:cmake
-depends_lib-append port:openmpi
+depends_lib-append port:hdf5-18 \
+ port:libyaml
-configure.args --with-python --with-debugging=0 \
- --with-c-support=1 --with-c++-support=1 --with-pic=fPIC \
- --with-shared-libraries=0 --with-mpi=1 --PETSC_ARCH=darwin \
- --prefix=${destroot}${prefix}/lib/petsc \
- --with-cc=${prefix}/bin/openmpicc \
- --with-cxx=${prefix}/bin/openmpicxx \
- --with-mpiexec=${prefix}/bin/openmpiexec \
- --with-lapack-lib=/usr/lib/liblapack.dylib \
- --with-blas-lib=/usr/lib/libblas.dylib \
- --download-umfpack=1 \
- --download-ml \
- --download-metis \
- --download-parmetis \
- --download-blacs \
- --download-scalapack \
- --download-mumps \
- --download-ptscotch \
- --with-fc=${prefix}/bin/openmpif90 \
- --LIBS=-lstdc++
+configure.args --prefix=${prefix}/lib/petsc \
+ --with-mpi=1 \
+ --with-clanguage=C++ \
+ --download-ml \
+ --download-metis \
+ --download-parmetis \
+ --download-blacs \
+ --download-scalapack \
+ --download-mumps \
+ --download-ptscotch \
+ --with-hdf5-dir=${prefix} \
+ --with-yaml-dir=${prefix}
-destroot.destdir DESTDIR=${destroot}${prefix}/lib/petsc
-post-destroot {
- reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/RDict.db \
- ${destroot}${prefix}/lib/petsc/conf/petscrules \
- ${destroot}${prefix}/lib/petsc/conf/petscvariables \
- ${destroot}${prefix}/lib/petsc/conf/reconfigure-darwin.py \
- ${destroot}${prefix}/lib/petsc/conf/rules \
- ${destroot}${prefix}/lib/petsc/conf/test \
- ${destroot}${prefix}/lib/petsc/conf/variables \
- ${destroot}${prefix}/lib/petsc/include/petscconf.h
- reinplace "s|${worksrcpath}|${prefix}/petsc|g" ${destroot}${prefix}/lib/petsc/include/petscconf.h \
- ${destroot}${prefix}/lib/petsc/include/petscmachineinfo.h \
- ${destroot}${prefix}/lib/petsc/conf/petscvariables \
- ${destroot}${prefix}/lib/petsc/conf/RDict.db
+pre-configure {
+ configure.args-append \
+ --COPTFLAGS="${configure.optflags}" \
+ --CXXOPTFLAGS="${configure.optflags}" \
+ --FOPTFLAGS="${configure.optflags}" \
+ --LDFLAGS="${configure.ldflags}" \
+ --CFLAGS="${configure.cflags}" \
+ --CXXFLAGS="${configure.cxxflags}" \
}
-# disabled for now; no mpi support in fftw port yet
-# variant fftw description {build with fftw support} {
-# configure.args-append --with-fftw=1 --with-fftw-dir=${prefix}
-# depends_lib-append port:fftw-3
-# }
-
-variant hdf5 description {build with support for HDF5 file format} {
- configure.args-append --with-hdf5=1 --with-hdf5-dir=${prefix}
- depends_lib-append port:hdf5-18
+variant openmpi description {Build using the OpenMPI compiler} conflicts mpich2 {
+ depends_lib-append port:openmpi
+ configure.args-append \
+ --with-cc=${prefix}/bin/openmpicc \
+ --with-cxx=${prefix}/bin/openmpicxx \
+ --with-fc=${prefix}/bin/openmpif90 \
+ --with-mpiexec=${prefix}/bin/openmpiexec
}
-variant debug description {build with debug support} {
- configure.args-delete --with-debugging=0
- configure.args-append --with-debugging=1
+variant mpich2 description {Build using the MPICH2 compiler} conflicts openmpi {
+ depends_lib-append port:mpich2
+ configure.args-append \
+ --with-cc=${prefix}/bin/mpicc \
+ --with-cxx=${prefix}/bin/picxx \
+ --with-fc=${prefix}/bin/mpif90 \
+ --with-mpiexec=${prefix}/bin/mpiexec
}
+default_variants +openmpi
+
+destroot.destdir DESTDIR=${destroot}${prefix}/lib/petsc
+
livecheck.type regex
livecheck.url http://www.mcs.anl.gov/petsc/petsc-2/download/index.html
livecheck.regex petsc-lite-(\[0-9.\]+(-p\[0-9\]+))\\.tar\\.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120804/cf1d0c4e/attachment-0001.html>
More information about the macports-changes
mailing list