Ticket #22106: Portfile

File Portfile, 2.0 KB (added by howarth@…, 14 years ago)

update Portfile to 1.2.0 release and add fixes.

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3PortSystem          1.0
4name                apbs-mpi
5version             1.2.0
6set branch          [join [lrange [split ${version} .] 0 1] .]
7categories          science
8maintainers         bromo.med.uc.edu:howarth
9description         APBS mpi version
10long_description    APBS is a software package for the numerical solution \
11                    of the Poisson-Boltzmann equation, a popular continuum \
12                    model for describing electrostatic interactions between \
13                    molecular solutes over a wide range of length scales.
14homepage            http://apbs.sourceforge.net/
15platforms           darwin
16master_sites        sourceforge
17master_sites.mirror_subdir apbs
18distfiles           apbs-${branch}-source.tar.gz
19checksums           md5     ba32bb323b25307204436eaac1ff877b \
20                    sha1    43e766a8c6166288c25229e0615a72dca5e8a3b5 \
21                    rmd160  62cb82da9ca5276c3d7127a4d1f9737747dac315
22depends_lib         port:gcc44 \
23                    port:readline \
24                    port:openmpi
25depends_run         port:apbs
26worksrcdir          apbs-${branch}-source
27use_parallel_build  no
28build.target-delete all
29configure.env       F77=openmpif77
30configure.cc        openmpicc
31configure.cxx       openmpicxx
32configure.cflags    -O3
33configure.args      --with-blas="-L/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A -lblas -Wl,-framework -Wl,vecLib -Wl,-undefined -Wl,dynamic_lookup" FFLAGS="-O3" -with-openmpi=${prefix}
34post-patch {
35    reinplace  "s|include/mpi.h|include/openmpi/mpi.h|g" ${worksrcpath}/configure
36}
37destroot {
38      file mkdir ${destroot}${prefix}/bin
39      copy ${worksrcpath}/bin/apbs ${destroot}${prefix}/bin/apbs-mpi
40      file mkdir ${destroot}${prefix}/share/apbs-mpi
41      system "cd ${worksrcpath}; cp -r examples tools doc ${destroot}${prefix}/share/apbs-mpi"
42}