Ticket #12555: powerpc-preconfigure.diff

File powerpc-preconfigure.diff, 655 bytes (added by cssdev, 17 years ago)

What about this approach of using pre-configure to keep the modification within a platform variant?

  • Portfile

     
    2020        reinplace "s|prefix = /usr/local|prefix = ${destroot}${prefix}|" ${worksrcpath}/Makefile
    2121}
    2222
    23 # For PowerPC, remove the endian conversion since PDBs are big endian.
    2423platform powerpc {
    25         reinplace "s|-O2 -D__MAC2PC_CONVERSION__|-O2|" ${worksrcpath}/Makefile
     24        # For PowerPC, remove the endian conversion since PDBs are big endian.
     25        pre-configure {
     26                reinplace "s|-O2 -D__MAC2PC_CONVERSION__|-O2|" ${worksrcpath}/Makefile
     27        }
    2628}
    2729
    2830destroot.args           mandir=${destroot}${prefix}/share/man/man1