[41472] trunk/dports/devel/pth/Portfile

illogic-al at macports.org illogic-al at macports.org
Mon Nov 3 19:56:43 PST 2008


Revision: 41472
          http://trac.macports.org/changeset/41472
Author:   illogic-al at macports.org
Date:     2008-11-03 19:56:42 -0800 (Mon, 03 Nov 2008)
Log Message:
-----------
Fix pth port for universal compilation

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

Modified: trunk/dports/devel/pth/Portfile
===================================================================
--- trunk/dports/devel/pth/Portfile	2008-11-04 03:50:45 UTC (rev 41471)
+++ trunk/dports/devel/pth/Portfile	2008-11-04 03:56:42 UTC (rev 41472)
@@ -26,6 +26,12 @@
 
 configure.args      --mandir=${prefix}/share/man
 
+post-configure {
+        if {[variant_isset universal]} {
+            reinplace "s|CC -dynamiclib|CC -dynamiclib ${configure.universal_ldflags}|g" ${worksrcpath}/libtool
+        }
+}
+
 post-destroot {
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     xinstall -m 644 -W ${worksrcpath} ANNOUNCE AUTHORS ChangeLog COPYING \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081103/b8e25852/attachment.html>


More information about the macports-changes mailing list