Ticket #35543: Portfile.diff

File Portfile.diff, 2.2 KB (added by zan@…, 12 years ago)
  • Portfile

    old new  
    55
    66name                SuiteSparse
    77epoch               20120107
    8 version             4.0.0
     8version             4.0.2
    99categories          math science
    1010platforms           darwin
    1111maintainers         nomaintainer
     
    2121distname            SuiteSparse-${version}
    2222worksrcdir          ${name}
    2323
    24 checksums           rmd160  395d9cfa86785db17e30ce02ba55984b2c896b00 \
    25                     sha256  b26cf214bf981d735a2f517aee1975cee0034c865b288d2629c6280e026f6bdb
     24checksums           rmd160  69b7becaba2cd26edc13d182bf59a8d6ac38b90b \
     25                    sha256  93b5928987fe010808b3fdff3e7edef42fb2d8cfd65b09dd6d4c41756acb0050
    2626
    2727global makefile
    2828set makefile ${worksrcpath}/SuiteSparse_config/SuiteSparse_config.mk
     
    138138             libcholmod.a libcolamd.a libcxsparse.a libklu.a \
    139139             libldl.a librbio.a libspqr.a libsuitesparseconfig.a libumfpack.a]
    140140
     141    file mkdir ${destroot}${prefix}/lib/tmp
     142    system -W ${destroot}${prefix}/lib/tmp "for l in ${libs}; do ar -x ../\$l; done"
    141143    system -W ${destroot}${prefix}/lib "\
    142         ${configure.cxx} -Wall ${configure.cflags} [get_canonical_archflags cxx] -dynamiclib -Wl,-all_load \
    143         -L${prefix}/lib ${atlas} ${metis} ${libs} -o lib${name}.${version}.dylib \
     144        ${configure.cxx} -Wall ${configure.cflags} [get_canonical_archflags cxx] -dynamiclib \
     145        tmp/*.o -L${prefix}/lib ${atlas} ${metis} -o lib${name}.${version}.dylib \
    144146        -compatibility_version ${major} -current_version ${version} \
    145147        -install_name ${prefix}/lib/lib${name}.${version}.dylib"
     148    file delete -force ${destroot}${prefix}/lib/tmp
    146149
    147150    ln -s lib${name}.${version}.dylib ${destroot}${prefix}/lib/lib${name}.dylib
    148151    ln -s lib${name}.${version}.dylib ${destroot}${prefix}/lib/lib${name}.${major}.dylib
     
    154157}
    155158
    156159variant metis description {Use METIS for graph partitioning and sparse matrix ordering} {
    157     depends_build-append port:metis
     160    depends_lib-append port:metis
    158161}
    159162
    160163variant atlas description {Use MacPorts' ATLAS instead of Accelerate Framework} {