Index: Portfile
===================================================================
--- Portfile	(revision 28219)
+++ Portfile	(working copy)
@@ -18,12 +18,12 @@
 use_configure		no
 post-extract {
 	reinplace "s|prefix = /usr/local|prefix = ${destroot}${prefix}|" ${worksrcpath}/Makefile
+	
+	# For big-endian machines, like PowerPC, remove the endian conversion since PDBs are already big-endian.
+	if { [string compare ${os.endian} "little"] != 0 } {
+		reinplace "s|-O2 -D__MAC2PC_CONVERSION__|-O2|" ${worksrcpath}/Makefile
+	}
 }
 
-# For PowerPC, remove the endian conversion since PDBs are big endian.
-platform powerpc {
-	reinplace "s|-O2 -D__MAC2PC_CONVERSION__|-O2|" ${worksrcpath}/Makefile
-}
-
 destroot.args		mandir=${destroot}${prefix}/share/man/man1
 

