source: trunk/dports/math/petsc/Portfile @ 37202

Last change on this file since 37202 was 37202, checked in by mmoll@…, 12 years ago

math/petsc: new port

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 37202 2008-05-29 18:23:35Z mmoll@macports.org $
2
3PortSystem      1.0
4
5name            petsc
6version         2.3.3-p13
7categories      math science
8maintainers     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}-lite-${version}
18worksrcdir      ${name}-${version}
19patchfiles      patch-configure.py.diff patch-makefile.diff
20
21checksums       md5 86073f3340cac5949a4fa4b2d338d30b \
22                sha1 914c2b355ef9bf06b6ba15ca3b8a4c852ec296e8
23
24depends_lib-append  port:openmpi
25
26configure.env-append    PETSC_DIR=${worksrcpath}
27configure.cmd   ${worksrcpath}/config/configure.py
28configure.args  --with-petsc-arch=darwin --with-python --with-debugging=0 \
29                --with-c-support=1 --with-c++-support=1 \
30                --prefix=${prefix}/lib/petsc \
31                --with-cc=${prefix}/bin/openmpicc \
32                --with-cxx=${prefix}/bin/openmpicxx \
33                COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3
34build.env       PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
35destroot.env    PETSC_DIR=${worksrcpath} PETSC_ARCH=darwin
36destroot.destdir    INSTALL_DIR=${destroot}${prefix}/lib/petsc
37
38variant fftw description {build with fftw support} {
39        configure.args-append   --with-fftw=1 --with-fftw-dir=${prefix}
40        depends_lib-append      port:fftw-3
41}
42
43post-activate {
44    ui_msg "********************************************************"
45    ui_msg "* Add the following lines to your .bash_profile if you *"
46    ui_msg "* plan to use the PETSC makefile rules in              *"
47    ui_msg "* $prefix/lib/petsc/bmake:                             *"
48    ui_msg "*                                                      *"
49    ui_msg "*   export PETSC_DIR=${prefix}/lib/petsc               *"
50    ui_msg "*   export PETSC_ARCH=darwin                           *"
51    ui_msg "*                                                      *"
52    ui_msg "********************************************************"
53}
Note: See TracBrowser for help on using the repository browser.