Ticket #35543: Portfile.diff
File Portfile.diff, 2.2 KB (added by zan@…, 12 years ago) |
---|
-
Portfile
old new 5 5 6 6 name SuiteSparse 7 7 epoch 20120107 8 version 4.0. 08 version 4.0.2 9 9 categories math science 10 10 platforms darwin 11 11 maintainers nomaintainer … … 21 21 distname SuiteSparse-${version} 22 22 worksrcdir ${name} 23 23 24 checksums rmd160 395d9cfa86785db17e30ce02ba55984b2c896b00\25 sha256 b26cf214bf981d735a2f517aee1975cee0034c865b288d2629c6280e026f6bdb24 checksums rmd160 69b7becaba2cd26edc13d182bf59a8d6ac38b90b \ 25 sha256 93b5928987fe010808b3fdff3e7edef42fb2d8cfd65b09dd6d4c41756acb0050 26 26 27 27 global makefile 28 28 set makefile ${worksrcpath}/SuiteSparse_config/SuiteSparse_config.mk … … 138 138 libcholmod.a libcolamd.a libcxsparse.a libklu.a \ 139 139 libldl.a librbio.a libspqr.a libsuitesparseconfig.a libumfpack.a] 140 140 141 file mkdir ${destroot}${prefix}/lib/tmp 142 system -W ${destroot}${prefix}/lib/tmp "for l in ${libs}; do ar -x ../\$l; done" 141 143 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 \ 144 146 -compatibility_version ${major} -current_version ${version} \ 145 147 -install_name ${prefix}/lib/lib${name}.${version}.dylib" 148 file delete -force ${destroot}${prefix}/lib/tmp 146 149 147 150 ln -s lib${name}.${version}.dylib ${destroot}${prefix}/lib/lib${name}.dylib 148 151 ln -s lib${name}.${version}.dylib ${destroot}${prefix}/lib/lib${name}.${major}.dylib … … 154 157 } 155 158 156 159 variant metis description {Use METIS for graph partitioning and sparse matrix ordering} { 157 depends_ build-appendport:metis160 depends_lib-append port:metis 158 161 } 159 162 160 163 variant atlas description {Use MacPorts' ATLAS instead of Accelerate Framework} {