Changeset 143723 for trunk/dports/math


Ignore:
Timestamp:
Dec 18, 2015, 11:39:53 PM (4 years ago)
Author:
mmoll@…
Message:

math/arpack: update to version 3.3.0, clean up portfile, remove unnecessary patches, remove openblas variant because arpack doesn't compile with openblas currently. closes #50073

Location:
trunk/dports/math/arpack
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/arpack/Portfile

    r142132 r143723  
    55PortGroup           muniversal 1.0
    66PortGroup           mpi 1.0
     7PortGroup           github 1.0
    78
     9github.setup        opencollab arpack-ng 3.3.0
    810name                arpack
    9 version             3.1.5
    10 revision            1
     11revision            0
    1112categories          math
    1213license             BSD
     
    1718                    solve large scale eigenvalue problems. Parallel ARPACK (PARPACK) \
    1819                    is included if built with an MPI variant.
    19 homepage            http://forge.scilab.org/index.php/p/arpack-ng
    20 master_sites        ${homepage}/downloads/get
    21 distfiles           arpack-ng_${version}.tar.gz
    2220worksrcdir          ${name}-ng-${version}
    2321
    24 checksums           rmd160  ef27775099bb5aecc99ccf8190c1136eaa907982 \
    25                     sha256  a269ce7806bc77ced31ef794d23c3e3aff8543b65550fd7e3e24660f2a79d515
     22checksums           rmd160  76f87a65f9c6e6a2a8d5e31acc2e404fd755b473 \
     23                    sha256  2d3d0d802fb60a26502c7cace31ef0066ede2b00c193fb2bca437ee54185b617
    2624
    2725mpi.setup           require_fortran
    2826
     27use_autoreconf      yes
    2928configure.args      home=${worksrcpath} --disable-mpi
    30 
    31 configure.optflags-replace -Os -O2
    3229
    3330if {![variant_isset universal]} {
     
    6461}
    6562
    66 variant accelerate conflicts atlas openblas description {build with Accelerate framework} {
     63variant accelerate conflicts atlas description {build with Accelerate framework} {
    6764    # the change of LDFLAGS is required to avoid linking against the ATLAS ones
    6865    # if they are present; if we specify /usr/lib/libblas.dylib directly, the
     
    7067    configure.args-delete  LDFLAGS=''
    7168    configure.args-append  LDFLAGS='/usr/lib/libblas.dylib /usr/lib/liblapack.dylib' --with-blas="-lblas -llapack"
    72     patchfiles-append      patch-ARPACK-cdot-and-zdot.diff
    73     if {[mpi_variant_isset]} {
    74         patchfiles-append patch-PARPACK-cdot-and-zdot.diff
    75     }
    7669}
    7770
    78 variant atlas conflicts accelerate openblas description {build with atlas} {
     71variant atlas conflicts accelerate description {build with atlas} {
    7972    depends_lib-append port:atlas
    8073    configure.args-append --with-blas="-L${prefix}/lib -lsatlas"
    8174}
    8275
    83 variant openblas conflicts accelerate atlas description {build with openblas} {
    84     depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
    85     configure.args-append --with-blas="-L${prefix}/lib -lopenblas"
    86 }
     76# OpenBlas doesn't appear to have the cheev function.
     77# Renable variant when it does, add variant conflicts, and update default_variant logic below
     78# variant openblas conflicts accelerate atlas description {build with openblas} {
     79#     depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
     80#     configure.args-append --with-blas="-L${prefix}/lib -lopenblas"
     81# }
    8782
    88 if {![variant_isset atlas] && ![variant_isset openblas]} {
     83if {![variant_isset atlas]}
    8984    default_variants +accelerate
    9085}
     
    9287post-destroot {
    9388    reinplace "s|/usr|${prefix}|g" ${destroot}${prefix}/lib/pkgconfig/arpack.pc
    94 
    95     if {[variant_isset openmpi] || [variant_isset mpich]} {
    96        delete ${destroot}${prefix}/bin/pcndrv1
    97        delete ${destroot}${prefix}/bin/pdndrv1
    98        delete ${destroot}${prefix}/bin/pdndrv3
    99        delete ${destroot}${prefix}/bin/pdsdrv1
    100        delete ${destroot}${prefix}/bin/psndrv3
    101        delete ${destroot}${prefix}/bin/pssdrv1
    102        delete ${destroot}${prefix}/bin/pzndrv1
    103     }
    10489}
    105 
    106 livecheck.type  regex
    107 livecheck.url   http://forge.scilab.org/index.php/p/arpack-ng/downloads/
    108 livecheck.regex ${name}-ng (\[0-9.\]+\[0-9\])
Note: See TracChangeset for help on using the changeset viewer.