Ticket #38283: Portfile.diff
File Portfile.diff, 2.7 KB (added by howarth@…, 12 years ago) |
---|
-
Portfile
old new 2 2 # $Id: Portfile 97763 2012-09-14 18:56:08Z jeremyhu@macports.org $ 3 3 4 4 PortSystem 1.0 5 PortGroup cmake 1.0 5 6 6 7 name apbs-mpi 7 version 1.3.0 8 revision 1 8 version 1.4.0 9 9 set branch [join [lrange [split ${version} .] 0 1] .] 10 10 categories science 11 11 maintainers bromo.med.uc.edu:howarth 12 12 13 description APBS mpi version 13 14 long_description APBS is a software package for the numerical solution \ 14 15 of the Poisson-Boltzmann equation, a popular continuum \ 15 16 model for describing electrostatic interactions between \ 16 17 molecular solutes over a wide range of length scales. 18 17 19 homepage http://apbs.sourceforge.net/ 18 20 platforms darwin 19 21 master_sites sourceforge 20 22 master_sites.mirror_subdir apbs 21 distname apbs-${branch}-source 22 checksums md5 f99a505365f07f6853979cfe2ef23365 \ 23 sha1 1494f36e35f2e4b1a18d4b22516fad4948c6391f 24 depends_lib port:gcc45 \ 23 24 distname APBS-${branch}-source 25 worksrcdir apbs 26 27 checksums md5 e0281bd44ffecb651e40687cdaa26361 \ 28 sha1 4f10e300ab5c98607d65de5a82e4b66ced8b78bb 29 30 depends_lib port:maloc \ 25 31 port:readline \ 26 32 port:openmpi 27 33 depends_run port:apbs 28 use_parallel_build no 29 build.target-delete all 30 configure.env F77=openmpif77 34 35 use_parallel_build yes 36 31 37 configure.cc openmpicc 32 38 configure.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 } 39 configure.args-append -DENABLE_OPENMP:BOOL=OFF -DENABLE_MPI:BOOL=ON -DCMAKE_C_FLAGS="-Ii${prefix}/include -O3 -ffast-math -g" 40 38 41 destroot { 39 42 file mkdir ${destroot}${prefix}/bin 40 43 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 } 41 48 file mkdir ${destroot}${prefix}/share/apbs-mpi 42 49 system "cd ${worksrcpath}; cp -r examples tools doc ${destroot}${prefix}/share/apbs-mpi" 43 50 }