[44204] trunk/dports/aqua/qt4-mac/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Tue Dec 23 12:42:14 PST 2008


Revision: 44204
          http://trac.macports.org/changeset/44204
Author:   mcalhoun at macports.org
Date:     2008-12-23 12:42:14 -0800 (Tue, 23 Dec 2008)
Log Message:
-----------
qt4-mac: Remove destroot value from .pc and .prl files.
Fixes #16120.

Modified Paths:
--------------
    trunk/dports/aqua/qt4-mac/Portfile

Modified: trunk/dports/aqua/qt4-mac/Portfile
===================================================================
--- trunk/dports/aqua/qt4-mac/Portfile	2008-12-23 20:38:38 UTC (rev 44203)
+++ trunk/dports/aqua/qt4-mac/Portfile	2008-12-23 20:42:14 UTC (rev 44204)
@@ -139,6 +139,21 @@
         file rename ${bin} [string tolower ${bin}]-mac
     }
 
+    # Fix the .pc and .prl files by removing ${destroot}
+    foreach fixfile [glob -directory ${destroot}${qt_dir}/lib/pkgconfig *.pc] {
+        reinplace \
+            "s|[regsub ${prefix} ${worksrcpath} {}]/bin|[regsub ${prefix} ${qt_dir}/bin {}]|g" \
+            ${fixfile}
+    }
+    foreach fixfile [glob -nocomplain -directory ${destroot} ${qt_dir}/lib/pkgconfig/*.pc ${qt_dir}/lib/*.prl ${qt_dir}/lib/*/*.prl ${prefix}/share/${name}/demos/shared/*.prl] {
+        reinplace  \
+            "s|-L${worksrcpath}/lib|-L${qt_dir}/lib|g" \
+            ${fixfile}
+        reinplace  \
+            "s|-F${worksrcpath}/lib|-F${qt_dir}/lib|g" \
+            ${fixfile}
+    }
+
     # Create link to Frameworks in Frameworks directory
     xinstall -d -m 0755 ${destroot}${frameworks_dir}
     foreach fdir [glob -tails -directory ${destroot}${qt_dir}/lib -nocomplain *.framework] {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081223/af03bbad/attachment.html>


More information about the macports-changes mailing list