[49721] trunk/dports/math/petsc

mmoll at macports.org mmoll at macports.org
Thu Apr 16 09:24:00 PDT 2009


Revision: 49721
          http://trac.macports.org/changeset/49721
Author:   mmoll at macports.org
Date:     2009-04-16 09:24:00 -0700 (Thu, 16 Apr 2009)
Log Message:
-----------
petsc: upgrade to major new version

Modified Paths:
--------------
    trunk/dports/math/petsc/Portfile

Removed Paths:
-------------
    trunk/dports/math/petsc/files/

Modified: trunk/dports/math/petsc/Portfile
===================================================================
--- trunk/dports/math/petsc/Portfile	2009-04-16 09:52:44 UTC (rev 49720)
+++ trunk/dports/math/petsc/Portfile	2009-04-16 16:24:00 UTC (rev 49721)
@@ -3,8 +3,8 @@
 PortSystem	1.0
 
 name		petsc
-version		2.3.3-p13
-categories      math science
+version	    3.0.0-p5
+categories  math science
 maintainers	mmoll
 description	Portable, Extensible Toolkit for Scientific Computation
 long_description	PETSc, pronounced PET-see (the S is silent), is a suite \
@@ -16,39 +16,56 @@
 master_sites	ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/
 distname	${name}-lite-${version}
 worksrcdir	${name}-${version}
-patchfiles      patch-configure.py.diff patch-makefile.diff
 
-checksums	md5 86073f3340cac5949a4fa4b2d338d30b \
-                sha1 914c2b355ef9bf06b6ba15ca3b8a4c852ec296e8
+checksums   md5     c3329c2b7eb6c33da7f31bc357c626b3 \
+            sha1    0a94ed0a8110a5ec5bb0cb4eb18978a1e05517a1 \
+            rmd160  38c81ad3d73447d0074a053e857f2abdb23bce46
 
 depends_lib-append  port:openmpi
 
-configure.env-append	PETSC_DIR=${worksrcpath}
+configure.env-append	PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
 configure.cmd   ${worksrcpath}/config/configure.py
-configure.args  --with-petsc-arch=darwin --with-python --with-debugging=0 \
- 		--with-c-support=1 --with-c++-support=1 \
+configure.args  --with-python --with-debugging=0 \
+ 		--with-c-support=1 --with-c++-support=1 --with-pic=fPIC \
 		--prefix=${prefix}/lib/petsc \
 		--with-cc=${prefix}/bin/openmpicc \
 		--with-cxx=${prefix}/bin/openmpicxx \
-		--without-fortran \
-                COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3
+		--with-fc=${prefix}/bin/openmpif90 \
+        COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3
 build.env       PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
-destroot.env    PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
-destroot.destdir    INSTALL_DIR=${destroot}${prefix}/lib/petsc
+destroot.destdir    INSTALL_DIR=${destroot}${prefix}/lib/petsc \
+        PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
+post-destroot {
+    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/base
+    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/rules
+    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/petscvariables
+    reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/petsc/conf/variables
+}
 
-variant fftw description {build with fftw support} {
-	configure.args-append	--with-fftw=1 --with-fftw-dir=${prefix}
-	depends_lib-append	port:fftw-3
+# 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} \
+                            --LIBS=-lsz
+    depends_lib-append	port:hdf5-18
 }
 
+variant triangle description {build with support for Triangle library} {
+    configure.args-append   --with-triangle=1 --with-triangle-dir=${prefix}
+    depends_lib-append	port:triangle
+}
+
 post-activate {
-    ui_msg "********************************************************"
-    ui_msg "* Add the following lines to your .bash_profile if you *"
-    ui_msg "* plan to use the PETSC makefile rules in              *"
-    ui_msg "* $prefix/lib/petsc/bmake:                             *"
-    ui_msg "*                                                      *"
-    ui_msg "*   export PETSC_DIR=${prefix}/lib/petsc               *"
-    ui_msg "*   export PETSC_ARCH=darwin                           *"
-    ui_msg "*                                                      *"
-    ui_msg "********************************************************"
+    ui_msg "******************************************************"
+    ui_msg "* Add the following line to your .bash_profile if you "
+    ui_msg "* plan to use the PETSC makefile rules in             "
+    ui_msg "* $prefix/lib/petsc/conf:                             "
+    ui_msg "*                                                     "
+    ui_msg "*   export PETSC_DIR=${prefix}/lib/petsc              "
+    ui_msg "*                                                     "
+    ui_msg "******************************************************"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090416/3c72fa32/attachment.html>


More information about the macports-changes mailing list