Ticket #20675: suitesparse.diff
File suitesparse.diff, 1.5 KB (added by tenomoto (Takeshi Enomoto), 14 years ago) |
---|
-
Portfile
31 31 sha1 6de027d48a573659b40ddf57c10e32b39ab034c6 \ 32 32 rmd160 77ff7376691d2bc8581de6ae89f246cb289b2708 33 33 34 variant universal {} 35 if {[variant_isset universal]} { 36 append configure.cflags " " ${configure.universal_cflags} 37 } else { 38 append configure.cflags " " ${configure.cc_archflags} 39 } 34 40 post-patch { 35 41 # Metis is included with SuiteSparse, but we want to use 36 42 # the MacPorts version … … 52 58 reinplace -E \ 53 59 "s|(\[^a-zA-Z\])Imag(\[^a-zA-Z\])|\\1ImagPart\\2|g" \ 54 60 ${worksrcpath}/KLU/Include/klu_version.h 61 # ranlib after ar 62 reinplace "s|ccolamd_global\.o|ccolamd_global.o\\ 63 - \$(RANLIB) libccolamd.a|" ${worksrcpath}/CCOLAMD/Lib/Makefile 64 reinplace "s|colamd_global\.o|colamd_global.o\\ 65 - \$(RANLIB) libcolamd.a|" ${worksrcpath}/COLAMD/Lib/Makefile 55 66 } 56 67 57 68 post-configure { … … 71 82 "s|^CFLAGS = .*$|CFLAGS = ${configure.cflags}|g" \ 72 83 ${worksrcpath}/UFconfig/UFconfig.mk 73 84 reinplace -E \ 74 "s|^CFLAGS = -O|CFLAGS = -O3|g" \85 "s|^CFLAGS = -O|CFLAGS = ${configure.cflags}|g" \ 75 86 ${worksrcpath}/CSparse/Demo/Makefile \ 76 87 ${worksrcpath}/CSparse/Lib/Makefile 77 88 reinplace -E \ … … 86 97 reinplace -E \ 87 98 "s|^METIS = .*$|METIS = ${prefix}/lib/libmetis.a|g" \ 88 99 ${worksrcpath}/UFconfig/UFconfig.mk 100 reinplace "s|(CC)|(CC) \$(CFLAGS)|" ${worksrcpath}/CXSparse/Demo/Makefile 89 101 } 90 102 91 103 destroot {