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 | PortGroup python26 1.0 |
---|
5 | name apbs |
---|
6 | version 1.1.0 |
---|
7 | categories science |
---|
8 | maintainers howarth@bromo.med.uc.edu |
---|
9 | description APBS |
---|
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 http://voxel.dl.sourceforge.net/project/apbs/apbs/apbs-${version}/ |
---|
17 | distfiles apbs-${version}-source.tar.gz |
---|
18 | checksums md5 ca31ba09714e4fc9acce91e7961569cd \ |
---|
19 | sha1 7274a3a896da551f2bb689bb32ea5c852cbd32bb \ |
---|
20 | rmd160 f03c5617067cc33cb43e425acc74a5df3374744f |
---|
21 | depends_lib port:gcc44 \ |
---|
22 | port:readline \ |
---|
23 | port:py26-zsi |
---|
24 | patchfiles apbs.diff |
---|
25 | worksrcdir ${name}-${version}-source |
---|
26 | use_parallel_build no |
---|
27 | use_configure yes |
---|
28 | build.cmd make |
---|
29 | build.target all |
---|
30 | configure.env py_path=${python.bin} F77=gfortran-mp-4.4 |
---|
31 | configure.args --enable-python --with-python=${python.bin} --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" |
---|
32 | |
---|
33 | post-patch { |
---|
34 | reinplace "s|@PYTHON_PKGD@|${python.pkgd}|g" ${worksrcpath}/configure |
---|
35 | reinplace "s|@INSTALL_DIR@|${destroot}|g" ${worksrcpath}/contrib/opal/ZSI/Makefile.in |
---|
36 | reinplace "s|@PYTHON_PREFIX@|${python.prefix}|g" ${worksrcpath}/contrib/opal/ZSI/Makefile.in |
---|
37 | } |
---|
38 | |
---|
39 | destroot { |
---|
40 | reinplace "s|always_built_SUBDIRS = maloc |always_built_SUBDIRS = |g" ${worksrcpath}/contrib/Makefile |
---|
41 | reinplace "s|pmgZ aqua opal|pmgZ aqua|g" ${worksrcpath}/contrib/Makefile |
---|
42 | file mkdir ${destroot}${python.pkgd}/apbs |
---|
43 | |
---|
44 | system "cd ${worksrcpath}; make install DESTDIR=${destroot} INSTALL='install -p' CPPROG='cp -p'" |
---|
45 | |
---|
46 | eval xinstall [glob ${worksrcpath}/contrib/opal/opal-py-1.9.3/wsdl/*.py] \ |
---|
47 | ${destroot}${python.pkgd}/apbs |
---|
48 | eval xinstall -m 644 [glob ${worksrcpath}/src/aaa_inc/apbs/*.h] ${destroot}${prefix}/include/apbs |
---|
49 | |
---|
50 | foreach {bin} {psize.py coulomb born} { |
---|
51 | xinstall -m 755 ${worksrcpath}/tools/manip/${bin} ${destroot}${prefix}/bin/apbs-${bin} |
---|
52 | } |
---|
53 | foreach {bin} {mgmesh dxmath mergedx2 mergedx value uhbd_asc2bin smooth dx2mol dx2uhbd similarity \ |
---|
54 | multivalue benchmark analysis} { |
---|
55 | xinstall -m 755 ${worksrcpath}/tools/mesh/${bin} ${destroot}${prefix}/bin/apbs-${bin} |
---|
56 | } |
---|
57 | |
---|
58 | xinstall -m 755 ${worksrcpath}/bin/ApbsClient.py ${destroot}${prefix}/bin |
---|
59 | |
---|
60 | } |
---|
61 | |
---|
62 | post-destroot { |
---|
63 | system "${python.bin} -O ${python.libdir}/compileall.py -d ${python.pkgd}/apbs ${destroot}${python.pkgd}/apbs" |
---|
64 | } |
---|