[33091] trunk/dports/devel/glib2/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Jan 17 11:54:53 PST 2008


Revision: 33091
          http://trac.macosforge.org/projects/macports/changeset/33091
Author:   ryandesign at macports.org
Date:     2008-01-17 11:54:52 -0800 (Thu, 17 Jan 2008)

Log Message:
-----------
glib2: allow universal building on powerpc Macs; closes #13973

Modified Paths:
--------------
    trunk/dports/devel/glib2/Portfile

Modified: trunk/dports/devel/glib2/Portfile
===================================================================
--- trunk/dports/devel/glib2/Portfile	2008-01-17 19:52:42 UTC (rev 33090)
+++ trunk/dports/devel/glib2/Portfile	2008-01-17 19:54:52 UTC (rev 33091)
@@ -62,6 +62,14 @@
 	reinplace "s|path = \"/bin|path = \"${prefix}/bin:/bin|g" ${worksrcpath}/glib/gutils.c ${worksrcpath}/glib/gspawn.c
 }
 
+platform powerpc {
+	if {[variant_isset universal]} {
+		post-configure {
+			reinplace {s|^#define G_ATOMIC_POWERPC 1$|#undef G_ATOMIC_POWERPC|} ${worksrcpath}/config.h
+		}
+	}
+}
+
 post-destroot {
 	file delete ${destroot}${prefix}/lib/charset.alias
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080117/bb07e040/attachment.html


More information about the macports-changes mailing list