1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name petsc |
---|
6 | version 2.3.3-p10 |
---|
7 | categories math science |
---|
8 | maintainers cs.rice.edu:mmoll |
---|
9 | description Portable, Extensible Toolkit for Scientific Computation |
---|
10 | long_description PETSc, pronounced PET-see (the S is silent), is a suite \ |
---|
11 | of data structures and routines for the scalable (parallel) solution \ |
---|
12 | of scientific applications modeled by partial differential equations. \ |
---|
13 | It employs the MPI standard for all message-passing communication. |
---|
14 | platforms darwin |
---|
15 | homepage http://www-unix.mcs.anl.gov/petsc/petsc-as/ |
---|
16 | master_sites ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/ |
---|
17 | distname ${name}-${version} |
---|
18 | patchfiles patch-configure.py.diff patch-makefile.diff |
---|
19 | |
---|
20 | checksums md5 df4e5634ac0d1351755a8a50c397aa9e \ |
---|
21 | sha1 1e3968056517b01729bab66e8699a5894e7a1878 |
---|
22 | |
---|
23 | depends_lib-append port:openmpi |
---|
24 | |
---|
25 | configure.env-append PETSC_DIR=${worksrcpath} |
---|
26 | configure.cmd ${worksrcpath}/config/configure.py |
---|
27 | configure.args CC=${prefix}/lib/openmpi/bin/mpicc \ |
---|
28 | FC=${prefix}/lib/openmpi/bin/mpif90 --with-petsc-arch=darwin \ |
---|
29 | --with-python --with-debugging=0 --with-c-support=1 \ |
---|
30 | --with-c++-support=1 --prefix=${prefix}/lib/petsc\ |
---|
31 | COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 |
---|
32 | build.env PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin |
---|
33 | destroot.env PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin |
---|
34 | destroot.destdir INSTALL_DIR=${destroot}${prefix}/lib/petsc |
---|
35 | |
---|
36 | post-activate { |
---|
37 | ui_msg "********************************************************" |
---|
38 | ui_msg "* Add the following lines to your .bash_profile if you *" |
---|
39 | ui_msg "* plan to use the PETSC makefile rules in *" |
---|
40 | ui_msg "* $prefix/lib/petsc/bmake: *" |
---|
41 | ui_msg "* *" |
---|
42 | ui_msg "* export PETSC_DIR=${prefix}/lib/petsc *" |
---|
43 | ui_msg "* export PETSC_ARCH=darwin *" |
---|
44 | ui_msg "* *" |
---|
45 | ui_msg "********************************************************" |
---|
46 | } |
---|