Ticket #21153: Portfile_SparseSuite.diff

File Portfile_SparseSuite.diff, 1.1 KB (added by Veence (Vincent), 15 years ago)

Portfile patch

  • Portfile

    old new  
    2121
    2222use_parallel_build      no
    2323
     24patchfiles      MakefileCOLAMD.diff \
     25                                                MakefileCCOLAMD.diff
     26
    2427# cflags recommended for Macs in ${worksrcpath}/UFconfig/UFconfig.mk
    25 configure.cflags -O3 -fno-common -no-cpp-precomp -fexceptions
     28configure.cflags -O3 -fno-common -no-cpp-precomp -fexceptions 
    2629
    2730use_configure   no
    2831build.target
     
    6871                "s|^CPLUSPLUS = .*$|CPLUSPLUS = ${configure.cxx}|g" \
    6972                ${worksrcpath}/UFconfig/UFconfig.mk
    7073        reinplace -E \
    71                 "s|^CFLAGS = .*$|CFLAGS = ${configure.cflags}|g" \
     74                "s|^CFLAGS = .*$|CFLAGS = ${configure.cflags} ${configure.universal_cflags} -DNDEBUG|g" \
    7275                ${worksrcpath}/UFconfig/UFconfig.mk
    7376        reinplace -E \
    7477                "s|^CFLAGS = -O|CFLAGS = -O3|g" \
     
    8689        reinplace -E \
    8790                "s|^METIS = .*$|METIS = ${prefix}/lib/libmetis.a|g" \
    8891                ${worksrcpath}/UFconfig/UFconfig.mk
     92               
     93        reinplace -E \
     94                "s|^CFLAGS =|CFLAGS = ${configure.universal_cflags}|" \
     95                ${worksrcpath}/CSparse/Lib/Makefile
    8996}
    9097
    9198destroot        {