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$ |
---|
3 | PortSystem 1.0 |
---|
4 | name apbs-mpi |
---|
5 | version 1.2.0 |
---|
6 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
7 | categories science |
---|
8 | maintainers bromo.med.uc.edu:howarth |
---|
9 | description APBS mpi version |
---|
10 | long_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. |
---|
14 | homepage http://apbs.sourceforge.net/ |
---|
15 | platforms darwin |
---|
16 | master_sites sourceforge |
---|
17 | master_sites.mirror_subdir apbs |
---|
18 | distfiles apbs-${branch}-source.tar.gz |
---|
19 | checksums md5 ba32bb323b25307204436eaac1ff877b \ |
---|
20 | sha1 43e766a8c6166288c25229e0615a72dca5e8a3b5 \ |
---|
21 | rmd160 62cb82da9ca5276c3d7127a4d1f9737747dac315 |
---|
22 | depends_lib port:gcc44 \ |
---|
23 | port:readline \ |
---|
24 | port:openmpi |
---|
25 | depends_run port:apbs |
---|
26 | worksrcdir apbs-${branch}-source |
---|
27 | use_parallel_build no |
---|
28 | build.target-delete all |
---|
29 | configure.env F77=openmpif77 |
---|
30 | configure.cc openmpicc |
---|
31 | configure.cxx openmpicxx |
---|
32 | configure.cflags -O3 |
---|
33 | configure.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} |
---|
34 | post-patch { |
---|
35 | reinplace "s|include/mpi.h|include/openmpi/mpi.h|g" ${worksrcpath}/configure |
---|
36 | } |
---|
37 | destroot { |
---|
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 | } |
---|