[52048] trunk/dports/devel/dbus-glib/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Mon Jun 8 17:20:54 PDT 2009


Revision: 52048
          http://trac.macports.org/changeset/52048
Author:   jeremyhu at macports.org
Date:     2009-06-08 17:20:54 -0700 (Mon, 08 Jun 2009)
Log Message:
-----------
dbus-glib: Don't assume cross_archs are in universal_archs

Modified Paths:
--------------
    trunk/dports/devel/dbus-glib/Portfile

Modified: trunk/dports/devel/dbus-glib/Portfile
===================================================================
--- trunk/dports/devel/dbus-glib/Portfile	2009-06-09 00:09:25 UTC (rev 52047)
+++ trunk/dports/devel/dbus-glib/Portfile	2009-06-09 00:20:54 UTC (rev 52048)
@@ -71,19 +71,23 @@
     }
 
     foreach arch ${cross_archs} {
-        lappend merger_configure_env(${arch}) \
-            ac_cv_func_posix_getpwnam_r=yes \
-            ac_cv_have_abstract_sockets=no
+        if {[lsearch ${universal_archs} ${arch}] >= 0} {
+            lappend merger_configure_env(${arch}) \
+                ac_cv_func_posix_getpwnam_r=yes \
+                ac_cv_have_abstract_sockets=no
+        }
     }
 
     post-configure {
         foreach arch ${cross_archs} {
-            reinplace "s|--mode=execute \$(top_builddir)/dbus/dbus-binding-tool|--mode=execute ${worksrcpath}-${run_arch}/dbus/dbus-binding-tool|" \
-                ${worksrcpath}-${arch}/dbus/examples/Makefile \
-                ${worksrcpath}-${arch}/dbus/examples/statemachine/Makefile
+            if {[lsearch ${universal_archs} ${arch}] >= 0} {
+                reinplace "s|--mode=execute \$(top_builddir)/dbus/dbus-binding-tool|--mode=execute ${worksrcpath}-${run_arch}/dbus/dbus-binding-tool|" \
+                    ${worksrcpath}-${arch}/dbus/examples/Makefile \
+                    ${worksrcpath}-${arch}/dbus/examples/statemachine/Makefile
 
-            reinplace "s|\$(top_builddir)/dbus/dbus-binding-tool --mode=glib-client|${worksrcpath}-${run_arch}/dbus/dbus-binding-tool --mode=glib-client|" \
-                ${worksrcpath}-${arch}/tools/Makefile
+                reinplace "s|\$(top_builddir)/dbus/dbus-binding-tool --mode=glib-client|${worksrcpath}-${run_arch}/dbus/dbus-binding-tool --mode=glib-client|" \
+                    ${worksrcpath}-${arch}/tools/Makefile
+            }
         }
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090608/cb2e8648/attachment.html>


More information about the macports-changes mailing list