Ticket #14832: Portfile

File Portfile, 2.1 KB (added by mmoll@…, 17 years ago)
Line 
1# $Id: $
2
3PortSystem      1.0
4
5name            petsc
6version         2.3.3-p10
7categories      math science
8maintainers     cs.rice.edu:mmoll
9description     Portable, Extensible Toolkit for Scientific Computation
10long_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.
14platforms       darwin
15homepage        http://www-unix.mcs.anl.gov/petsc/petsc-as/
16master_sites    ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/
17distname        ${name}-${version}
18patchfiles      patch-configure.py.diff patch-makefile.diff
19
20checksums       md5 df4e5634ac0d1351755a8a50c397aa9e \
21                sha1 1e3968056517b01729bab66e8699a5894e7a1878
22
23depends_lib-append  port:openmpi
24
25configure.env-append    PETSC_DIR=${worksrcpath}
26configure.cmd   ${worksrcpath}/config/configure.py
27configure.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
32build.env       PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
33destroot.env    PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
34destroot.destdir    INSTALL_DIR=${destroot}${prefix}/lib/petsc
35
36post-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}