[86537] trunk/dports/lang

jeremyhu at macports.org jeremyhu at macports.org
Thu Oct 27 20:24:55 PDT 2011


Revision: 86537
          http://trac.macports.org/changeset/86537
Author:   jeremyhu at macports.org
Date:     2011-10-27 20:24:50 -0700 (Thu, 27 Oct 2011)
Log Message:
-----------
clang-*: Fix dylib ids

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

Modified: trunk/dports/lang/clang-2.9/Portfile
===================================================================
--- trunk/dports/lang/clang-2.9/Portfile	2011-10-28 02:25:31 UTC (rev 86536)
+++ trunk/dports/lang/clang-2.9/Portfile	2011-10-28 03:24:50 UTC (rev 86537)
@@ -96,4 +96,7 @@
     foreach bin [glob ${destroot}${sub_prefix}/bin/*] {
         ln -s [string map "${destroot}${prefix} .." ${bin}] [string map "${sub_prefix} ${prefix}" ${bin}]-${suffix}
     }
+
+    system "install_name_tool -id ${sub_prefix}/lib/libclang.dylib ${destroot}${sub_prefix}/lib/libclang.dylib"
+    system "install_name_tool -change @executable_path/../lib/libLLVM-${llvm_version}svn.dylib ${sub_prefix}/lib/libLLVM-${llvm_version}svn.dylib ${destroot}${sub_prefix}/lib/libclang.dylib"
 }

Modified: trunk/dports/lang/clang-3.0/Portfile
===================================================================
--- trunk/dports/lang/clang-3.0/Portfile	2011-10-28 02:25:31 UTC (rev 86536)
+++ trunk/dports/lang/clang-3.0/Portfile	2011-10-28 03:24:50 UTC (rev 86537)
@@ -96,4 +96,7 @@
     foreach bin [glob ${destroot}${sub_prefix}/bin/*] {
         ln -s [string map "${destroot}${prefix} .." ${bin}] [string map "${sub_prefix} ${prefix}" ${bin}]-${suffix}
     }
+
+    system "install_name_tool -id ${sub_prefix}/lib/libclang.dylib ${destroot}${sub_prefix}/lib/libclang.dylib"
+    system "install_name_tool -change @executable_path/../lib/libLLVM-${llvm_version}svn.dylib ${sub_prefix}/lib/libLLVM-${llvm_version}svn.dylib ${destroot}${sub_prefix}/lib/libclang.dylib"
 }

Modified: trunk/dports/lang/clang-3.1/Portfile
===================================================================
--- trunk/dports/lang/clang-3.1/Portfile	2011-10-28 02:25:31 UTC (rev 86536)
+++ trunk/dports/lang/clang-3.1/Portfile	2011-10-28 03:24:50 UTC (rev 86537)
@@ -96,4 +96,7 @@
     foreach bin [glob ${destroot}${sub_prefix}/bin/*] {
         ln -s [string map "${destroot}${prefix} .." ${bin}] [string map "${sub_prefix} ${prefix}" ${bin}]-${suffix}
     }
+
+    system "install_name_tool -id ${sub_prefix}/lib/libclang.dylib ${destroot}${sub_prefix}/lib/libclang.dylib"
+    system "install_name_tool -change @executable_path/../lib/libLLVM-${llvm_version}svn.dylib ${sub_prefix}/lib/libLLVM-${llvm_version}svn.dylib ${destroot}${sub_prefix}/lib/libclang.dylib"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111027/96c37bfb/attachment.html>


More information about the macports-changes mailing list