New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #12555: hrsh2csv-endian.diff

File hrsh2csv-endian.diff, 0.7 KB (added by ryandesign@…, 5 years ago)
  • Portfile

     
    1818use_configure           no 
    1919post-extract { 
    2020        reinplace "s|prefix = /usr/local|prefix = ${destroot}${prefix}|" ${worksrcpath}/Makefile 
     21         
     22        # For big-endian machines, like PowerPC, remove the endian conversion since PDBs are already big-endian. 
     23        if { [string compare ${os.endian} "little"] != 0 } { 
     24                reinplace "s|-O2 -D__MAC2PC_CONVERSION__|-O2|" ${worksrcpath}/Makefile 
     25        } 
    2126} 
    2227 
    23 # For PowerPC, remove the endian conversion since PDBs are big endian. 
    24 platform powerpc { 
    25         reinplace "s|-O2 -D__MAC2PC_CONVERSION__|-O2|" ${worksrcpath}/Makefile 
    26 } 
    27  
    2828destroot.args           mandir=${destroot}${prefix}/share/man/man1 
    2929