Changeset 98584


Ignore:
Timestamp:
Oct 9, 2012, 12:58:01 PM (12 years ago)
Author:
eborisch@…
Message:

mpich2[-devel]: update to 1.5

Location:
trunk/dports/science
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/mpich2-devel/Portfile

    r98543 r98584  
    66name                mpich2-devel
    77set pkgname         mpich2
    8 version             1.5rc3
     8version             1.5
    99revision            0
     10epoch               20121008
    1011license             BSD
    1112categories          science parallel net
     
    2930
    3031checksums   \
    31     rmd160  7a21996f3b8ab0dfa9f72335f53a4b3c120f0b84 \
    32     sha256  31beae6f6344f600ed43ad8bbcca21a04fbbfc225608e7c51e7ab2e83fd9e9fc
     32    rmd160  69572f5c435aec1ef37af197f7509cfc073ce53a \
     33    sha256  7175926fc2e4230f00201e880318c08de4f949c0dbe167fe1b2e256ac79d5f66
    3334
    3435depends_lib-append  port:libxml2
  • trunk/dports/science/mpich2/Portfile

    r97763 r98584  
    55
    66name                mpich2
    7 version             1.4.1p1
    8 revision            1
     7set pkgname         mpich2
     8version             1.5
     9revision            0
     10# Added to keep in line with mpich2-devel
     11epoch               20121008
    912license             BSD
    1013categories          science parallel net
     
    2528homepage            http://www.mcs.anl.gov/research/projects/mpich2/
    2629master_sites        ${homepage}downloads/tarballs/${version}/
     30distname            ${pkgname}-${version}
    2731
    28 checksums           md5     b470666749bcb4a0449a072a18e2c204 \
    29                     sha1    8dcc8888fb27232eb8f76c11cc890f1c3c483804 \
    30                     rmd160  1d355cc07b8675af77b1c255fd10696844447298
     32checksums   \
     33    rmd160  69572f5c435aec1ef37af197f7509cfc073ce53a \
     34    sha256  7175926fc2e4230f00201e880318c08de4f949c0dbe167fe1b2e256ac79d5f66
     35
     36depends_lib-append  port:libxml2
    3137
    3238# Don't build if lammpi is around.
    3339pre-configure {
    3440    if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
    35         ui_error "Cannot co-exist with lammpi; please deactivate lammpi before configuring."
     41        ui_error \
     42    "Cannot co-exist with lammpi; please deactivate lammpi before configuring."
    3643        return -code error
    3744    }
     
    4047pre-build {
    4148    if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
    42         ui_error "Cannot co-exist with lammpi; please deactivate lammpi before building."
     49        ui_error \
     50    "Cannot co-exist with lammpi; please deactivate lammpi before building."
    4351        return -code error
    4452    }
    4553}
    4654
    47 # Puts all entries in <prefix>/share into appropriate mpich2 subdirs
    48 destroot.args       PACKAGE=mpich2
    49 patchfiles          patch-src-util-createshlib.in
     55configure.args      --disable-dependency-tracking \
     56                    --disable-f77 \
     57                    --disable-fc \
     58                    --disable-silent-rules \
     59                    --enable-alloca \
     60                    --enable-base-cache \
     61                    --enable-cache \
     62                    --enable-cxx \
     63                    --enable-fast=O2 \
     64                    --enable-shared \
     65                    --enable-smpcoll \
     66                    --includedir=${prefix}/include/${pkgname} \
     67                    --with-device=ch3:nemesis \
     68                    --with-mpe \
     69                    --with-pm=hydra \
     70                    --with-thread-package=posix \
     71                    "F90FLAGS='' F90=''" \
     72                    MPICH2LIB_CPPFLAGS=-I${prefix}/include
    5073
    51 # the default include-dir conflicts with openmpi!
    52 configure.args      --with-thread-package=posix \
    53                     --enable-timer-type=mach_absolute_time \
    54                     --enable-cxx \
    55                     --mandir=${prefix}/share/man \
    56                     --docdir=${prefix}/share/doc/${name} \
    57                     --htmldir=${prefix}/share/doc/${name} \
    58                     --includedir=${prefix}/include/${name} \
    59                     --disable-f77 --disable-fc \
    60                     --with-mpe \
    61                     --with-device=ch3:nemesis \
    62                     "F90FLAGS='' F90=''" \
    63                     --with-pm=hydra \
    64                     --enable-shared \
    65                     --enable-cache \
    66                     --enable-smpcoll \
    67                     --enable-base-cache
     74platform darwin {
     75    configure.args-append   --enable-timer-type=mach_absolute_time
     76}
    6877
    69 build.args-append   VERBOSE=1
     78
     79# We're making compiler wrappers here... don't default to -O2 for wrappers.
     80# Actual library code is compiled with -O2 via --enable-fast=O2 configure arg
     81configure.cflags-delete     -O2
     82configure.cxxflags-delete   -O2
     83configure.fflags-delete     -O2
     84configure.fcflags-delete    -O2
     85configure.cppflags-delete   -I${prefix}/include
    7086
    7187universal_variant   no
    72 use_parallel_build  no
    7388conflicts           lammpi \
    74                     mpich2-devel
    75 
    76 # Fixes for the beta DESTDIR support in 1.4.1. Should go away in 1.5 branch.
    77 post-patch {
    78     reinplace -E "s|fix=\\\$\\\{DESTDIR\\\}|fix=|g" \
    79         ${worksrcpath}/Makefile.in
    80     reinplace -E "s|dir=\\\$\\\{DESTDIR\\\}|dir=|g" \
    81         ${worksrcpath}/Makefile.in
    82 }
     89                    mpich2
    8390
    8491post-destroot {
    85     reinplace -E "s|${destroot}||g" ${destroot}${prefix}/bin/mpicxx \
    86                                     ${destroot}${prefix}/bin/mpicc \
    87                                     ${destroot}${prefix}/etc/mpicxx.conf \
    88                                     ${destroot}${prefix}/etc/mpicc.conf
    89     if {[ variant_isset gcc43 ] ||
    90         [ variant_isset gcc44 ] ||
    91         [ variant_isset gcc45 ] ||
    92         [ variant_isset gcc46 ] ||
    93         [ variant_isset gcc47 ]} {
    94         reinplace -E "s|${destroot}||g" ${destroot}${prefix}/bin/mpif77 \
    95                                         ${destroot}${prefix}/bin/mpif90 \
    96                                         ${destroot}${prefix}/etc/mpif77.conf \
    97                                         ${destroot}${prefix}/etc/mpif90.conf
    98     }
     92    # Move examples directories to preferred location
     93    move ${destroot}${prefix}/share/examples \
     94      ${destroot}${prefix}/share/doc/${pkgname}/examples
    9995
     96    # Remove un-needed (in MacPorts) binaries
    10097    file delete ${destroot}${prefix}/sbin/mpeuninstall
     98    file delete ${destroot}${prefix}/sbin/mpecheckinstall
     99
     100    # That's what man pages are for
     101    delete ${destroot}${prefix}/share/doc/www4
    101102}
    102103
     
    105106
    106107variant gcc47 description {
    107     Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc47
    108 } conflicts gcc43 gcc44 gcc45 gcc46 llvm clang {
     108    Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc47 port
     109} conflicts gcc43 gcc44 gcc45 gcc46 llvm clang clang31 {
    109110    depends_lib-append      port:gcc47
    110111    configure.compiler      macports-gcc-4.7
     
    112113
    113114variant gcc46 description {
    114     Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc46
    115 } conflicts gcc43 gcc44 gcc45 gcc47 llvm clang {
     115    Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc46 port
     116} conflicts gcc43 gcc44 gcc45 gcc47 llvm clang clang31 {
    116117    depends_lib-append      port:gcc46
    117118    configure.compiler      macports-gcc-4.6
     
    119120
    120121variant gcc45 description {
    121     Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc45
    122 } conflicts gcc43 gcc44 gcc46 gcc47 llvm clang {
     122    Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc45 port
     123} conflicts gcc43 gcc44 gcc46 gcc47 llvm clang clang31 {
    123124    depends_lib-append      port:gcc45
    124125    configure.compiler      macports-gcc-4.5
     
    126127
    127128variant gcc44 description {
    128     Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc44
    129 } conflicts gcc43 gcc45 gcc46 gcc47 llvm clang {
     129    Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc44 port
     130} conflicts gcc43 gcc45 gcc46 gcc47 llvm clang clang31 {
    130131    depends_lib-append      port:gcc44
    131132    configure.compiler      macports-gcc-4.4
     
    133134
    134135variant gcc43 description {
    135     Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc43
    136 } conflicts gcc44 gcc45 gcc46 gcc47 llvm clang {
     136    Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc43 port
     137} conflicts gcc44 gcc45 gcc46 gcc47 llvm clang clang31 {
    137138    depends_lib-append      port:gcc43
    138139    configure.compiler      macports-gcc-4.3
     
    150151variant llvm description {
    151152    Use llvm-gcc
    152 } conflicts gcc43 gcc44 gcc45 gcc46 gcc47 clang {
     153} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 clang clang31 {
    153154    configure.compiler      llvm-gcc-4.2
    154155}
     
    156157variant clang description {
    157158    Use clang
    158 } conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm {
     159} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang31 {
    159160    configure.compiler      clang
    160     configure.cxx           clang++
    161     configure.cflags-append -w
    162     configure.cxxflags-append -w
     161}
     162
     163variant clang31 description {
     164    Use clang 3.1 from MacPorts
     165} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang {
     166    depends_lib-append      port:clang-3.1
     167    configure.compiler      clang
     168    configure.cc            ${prefix}/bin/clang-mp-3.1
     169    configure.cxx           ${prefix}/bin/clang++-mp-3.1
    163170}
    164171
     
    170177}
    171178
    172 platform darwin {
    173     configure.args-append   --enable-sharedlibs=osx-gcc
    174 }
    175 
    176 variant default_mpi description {
    177     Install as defalt MPI -- conflict with OpenMPI
    178 } {
    179     configure.args-delete   --includedir=${prefix}/include/${name}
    180     conflicts-append        openmpi
     179variant tuned description {Build with more optimizations)} {
     180    configure.args-delete       --enable-fast=O2
     181    configure.args-append       --enable-fast=all \
     182                                MPICH2LIB_CFLAGS='-fomit-frame-pointer -O2'
    181183}
    182184
    183185livecheck.type      regex
    184 livecheck.regex     ${name}-(\[0-9.p\]+)${extract.suffix}
     186livecheck.regex     ${pkgname}-(\[0-9.pbrc\]+)${extract.suffix}
     187livecheck.url       ${homepage}downloads/index.php?s=downloads
Note: See TracChangeset for help on using the changeset viewer.