[86536] trunk/dports/lang

jeremyhu at macports.org jeremyhu at macports.org
Thu Oct 27 19:25:36 PDT 2011


Revision: 86536
          http://trac.macports.org/changeset/86536
Author:   jeremyhu at macports.org
Date:     2011-10-27 19:25:31 -0700 (Thu, 27 Oct 2011)
Log Message:
-----------
llvm-*: Fix dylib ids

Modified Paths:
--------------
    trunk/dports/lang/llvm-2.9/Portfile
    trunk/dports/lang/llvm-3.0/Portfile
    trunk/dports/lang/llvm-3.1/Portfile

Modified: trunk/dports/lang/llvm-2.9/Portfile
===================================================================
--- trunk/dports/lang/llvm-2.9/Portfile	2011-10-27 22:42:07 UTC (rev 86535)
+++ trunk/dports/lang/llvm-2.9/Portfile	2011-10-28 02:25:31 UTC (rev 86536)
@@ -83,4 +83,16 @@
     file delete "${destroot}${prefix}/bin/llvm-config-${suffix}"
     xinstall -m 755 ${filespath}/llvm-config "${destroot}${prefix}/bin/llvm-config-${suffix}"
     reinplace "s:SUB_PREFIX:${sub_prefix}:" "${destroot}${prefix}/bin/llvm-config-${suffix}"
+
+    foreach liba [glob ${destroot}${sub_prefix}/lib/*dylib] {
+        set liba_nodr [string map "${destroot} {}" ${liba}]
+        system "install_name_tool -id ${liba_nodr} ${liba}"
+
+        foreach libb [glob ${destroot}${sub_prefix}/lib/*dylib] {
+            set libb_base [string map "${destroot}${sub_prefix}/lib/ {}" ${libb}]
+            set libb_nodr [string map "${destroot} {}" ${libb}]
+
+            system "install_name_tool -change @executable_path/../lib/${libb_base} ${libb_nodr} ${liba}"
+        }
+    }
 }

Modified: trunk/dports/lang/llvm-3.0/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.0/Portfile	2011-10-27 22:42:07 UTC (rev 86535)
+++ trunk/dports/lang/llvm-3.0/Portfile	2011-10-28 02:25:31 UTC (rev 86536)
@@ -83,4 +83,16 @@
     file delete "${destroot}${prefix}/bin/llvm-config-${suffix}"
     xinstall -m 755 ${filespath}/llvm-config "${destroot}${prefix}/bin/llvm-config-${suffix}"
     reinplace "s:SUB_PREFIX:${sub_prefix}:" "${destroot}${prefix}/bin/llvm-config-${suffix}"
+
+    foreach liba [glob ${destroot}${sub_prefix}/lib/*dylib] {
+        set liba_nodr [string map "${destroot} {}" ${liba}]
+        system "install_name_tool -id ${liba_nodr} ${liba}"
+
+        foreach libb [glob ${destroot}${sub_prefix}/lib/*dylib] {
+            set libb_base [string map "${destroot}${sub_prefix}/lib/ {}" ${libb}]
+            set libb_nodr [string map "${destroot} {}" ${libb}]
+
+            system "install_name_tool -change @executable_path/../lib/${libb_base} ${libb_nodr} ${liba}"
+        }
+    }
 }

Modified: trunk/dports/lang/llvm-3.1/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.1/Portfile	2011-10-27 22:42:07 UTC (rev 86535)
+++ trunk/dports/lang/llvm-3.1/Portfile	2011-10-28 02:25:31 UTC (rev 86536)
@@ -83,4 +83,16 @@
     file delete "${destroot}${prefix}/bin/llvm-config-${suffix}"
     xinstall -m 755 ${filespath}/llvm-config "${destroot}${prefix}/bin/llvm-config-${suffix}"
     reinplace "s:SUB_PREFIX:${sub_prefix}:" "${destroot}${prefix}/bin/llvm-config-${suffix}"
+
+    foreach liba [glob ${destroot}${sub_prefix}/lib/*dylib] {
+        set liba_nodr [string map "${destroot} {}" ${liba}]
+        system "install_name_tool -id ${liba_nodr} ${liba}"
+
+        foreach libb [glob ${destroot}${sub_prefix}/lib/*dylib] {
+            set libb_base [string map "${destroot}${sub_prefix}/lib/ {}" ${libb}]
+            set libb_nodr [string map "${destroot} {}" ${libb}]
+
+            system "install_name_tool -change @executable_path/../lib/${libb_base} ${libb_nodr} ${liba}"
+        }
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111027/09247043/attachment.html>


More information about the macports-changes mailing list