Index: Portfile
===================================================================
--- Portfile	(revision 28260)
+++ Portfile	(working copy)
@@ -20,9 +20,11 @@
 	reinplace "s|prefix = /usr/local|prefix = ${destroot}${prefix}|" ${worksrcpath}/Makefile
 }
 
-# For PowerPC, remove the endian conversion since PDBs are big endian.
 platform powerpc {
-	reinplace "s|-O2 -D__MAC2PC_CONVERSION__|-O2|" ${worksrcpath}/Makefile
+	# For PowerPC, remove the endian conversion since PDBs are big endian.
+	pre-configure {
+		reinplace "s|-O2 -D__MAC2PC_CONVERSION__|-O2|" ${worksrcpath}/Makefile
+	}
 }
 
 destroot.args		mandir=${destroot}${prefix}/share/man/man1

