Ticket #38283: Portfile.diff

File Portfile.diff, 2.7 KB (added by howarth@…, 11 years ago)

Portfile.diff for apbs-mpi-1.4.0 package

  • Portfile

    old new  
    22# $Id: Portfile 97763 2012-09-14 18:56:08Z jeremyhu@macports.org $
    33
    44PortSystem          1.0
     5PortGroup           cmake 1.0
    56
    67name                apbs-mpi
    7 version             1.3.0
    8 revision            1
     8version             1.4.0
    99set branch          [join [lrange [split ${version} .] 0 1] .]
    1010categories          science
    1111maintainers         bromo.med.uc.edu:howarth
     12
    1213description         APBS mpi version
    1314long_description    APBS is a software package for the numerical solution \
    1415                    of the Poisson-Boltzmann equation, a popular continuum \
    1516                    model for describing electrostatic interactions between \
    1617                    molecular solutes over a wide range of length scales.
     18
    1719homepage            http://apbs.sourceforge.net/
    1820platforms           darwin
    1921master_sites        sourceforge
    2022master_sites.mirror_subdir apbs
    21 distname            apbs-${branch}-source
    22 checksums           md5     f99a505365f07f6853979cfe2ef23365 \
    23                     sha1    1494f36e35f2e4b1a18d4b22516fad4948c6391f
    24 depends_lib         port:gcc45 \
     23
     24distname            APBS-${branch}-source
     25worksrcdir          apbs
     26
     27checksums           md5     e0281bd44ffecb651e40687cdaa26361 \
     28                    sha1    4f10e300ab5c98607d65de5a82e4b66ced8b78bb
     29
     30depends_lib         port:maloc \
    2531                    port:readline \
    2632                    port:openmpi
    2733depends_run         port:apbs
    28 use_parallel_build  no
    29 build.target-delete all
    30 configure.env       F77=openmpif77
     34
     35use_parallel_build  yes
     36
    3137configure.cc        openmpicc
    3238configure.cxx       openmpicxx
    33 configure.cflags    -O3
    34 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}
    35 post-patch {
    36     reinplace  "s|include/mpi.h|include/openmpi/mpi.h|g" ${worksrcpath}/configure
    37 }
     39configure.args-append -DENABLE_OPENMP:BOOL=OFF -DENABLE_MPI:BOOL=ON -DCMAKE_C_FLAGS="-Ii${prefix}/include -O3 -ffast-math -g"
     40
    3841destroot {
    3942      file mkdir ${destroot}${prefix}/bin
    4043      copy ${worksrcpath}/bin/apbs ${destroot}${prefix}/bin/apbs-mpi
     44      foreach {bin} {analysis benchmark born coulomb del2dx dx2mol dx2uhbd dxmath mergedx mergedx2 mgmesh \
     45                multivalue similarity smooth tensor2dx uhbd_asc2bin value} {
     46         move ${worksrcpath}/tools/bin/${bin} ${destroot}${prefix}/bin/apbs-mpi-${bin}
     47      }
    4148      file mkdir ${destroot}${prefix}/share/apbs-mpi
    4249      system "cd ${worksrcpath}; cp -r examples tools doc ${destroot}${prefix}/share/apbs-mpi"
    4350}