Ticket #23453: memtester.diff

File memtester.diff, 730 bytes (added by scott@…, 15 years ago)

Diff file adds universal variant, configure.cc_archflags, and configure.universal_cflags

  • Portfile

     
    2424
    2525use_configure       no
    2626
     27variant universal {}
     28
    2729pre-patch {
     30     if {[variant_isset universal]} {
     31          set archflags ${configure.universal_cflags}
     32     } else {
     33          set archflags ${configure.cc_archflags}
     34     }
    2835     reinplace "s|/usr/local|${destroot}${prefix}|" ${worksrcpath}/Makefile
    2936     reinplace "s|man/man|share/man/man|" ${worksrcpath}/Makefile
    30      reinplace "s|^cc|${configure.cc}|g" ${worksrcpath}/conf-cc ${worksrcpath}/conf-ld
     37     reinplace "s|^cc|${configure.cc} ${archflags}|g" ${worksrcpath}/conf-cc ${worksrcpath}/conf-ld
    3138}