Ignore:
Timestamp:
Oct 24, 2013, 9:36:43 AM (6 years ago)
Author:
ryandesign@…
Message:

colorer: ensure we're UsingTheRightCompiler and -arch flags, even when not building universal; blacklist clang for now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/colorer/Portfile

    r95899 r112479  
    3434}
    3535
     36variant universal {}
     37
    3638patchfiles      patch-Makefile.in.diff
    3739
     
    5961    # Install documentation in an unversioned directory
    6062    reinplace s:doc/colorer-take5:doc/colorer: ${worksrcpath}/Makefile.in
     63
     64    reinplace "/^CPPFLAGS/s:\$: [get_canonical_archflags cc]:" \
     65        ${worksrcpath}/src/shared/makefile.colorer.gcc
     66    reinplace -E "/^(LIB)?FLAGS/s:\$: [get_canonical_archflags ld]:" \
     67        ${worksrcpath}/src/colorer/makefile.macos \
     68        ${worksrcpath}/src/libcolorer/makefile.gcc
    6169}
     70
     71# error: taking the address of a temporary object of type 'DString'
     72compiler.blacklist *clang*
    6273
    6374configure.cmd   sh src/libcolorer/linux/configure
     
    6576
    6677build.target colorer
     78# Yes, this build system uses "CPP" for the C compiler and "LINK" for the C++ compiler.
     79build.args          CPP=${configure.cc} \
     80                    LINK=${configure.cxx}
    6781use_parallel_build yes
    6882
     
    7084destroot.args       -B
    7185
    72 if {[variant_isset universal]} {
    73     post-patch {
    74         # Use MacPorts universal flags
    75         reinplace "/^CPPFLAGS/s:\$: ${configure.universal_cflags}:" \
    76             ${worksrcpath}/src/shared/makefile.colorer.gcc
    77         reinplace -E "/^(LIB)?FLAGS/s:\$: ${configure.universal_ldflags}:" \
    78             ${worksrcpath}/src/colorer/makefile.macos \
    79             ${worksrcpath}/src/libcolorer/makefile.gcc
    80     }
    81 }
    82 
    8386livecheck.type  regex
    8487livecheck.url   ${homepage}whatsnew/history.html
Note: See TracChangeset for help on using the changeset viewer.