[109629] trunk/dports/lang/llvm-3.4/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Aug 18 15:20:56 PDT 2013


Revision: 109629
          https://trac.macports.org/changeset/109629
Author:   jeremyhu at macports.org
Date:     2013-08-18 15:20:56 -0700 (Sun, 18 Aug 2013)
Log Message:
-----------
llvm-3.4: Fix dylib ids

Modified Paths:
--------------
    trunk/dports/lang/llvm-3.4/Portfile

Modified: trunk/dports/lang/llvm-3.4/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.4/Portfile	2013-08-18 22:20:55 UTC (rev 109628)
+++ trunk/dports/lang/llvm-3.4/Portfile	2013-08-18 22:20:56 UTC (rev 109629)
@@ -54,6 +54,7 @@
 set compiler_rt_rev     ${svn.revision}
 set libcxx_rev          ${svn.revision}
 version                 ${llvm_version}-r${svn.revision}
+revision                1
 worksrcdir              trunk
 svn.url                 http://llvm.org/svn/llvm-project/llvm/trunk
 #worksrcdir              release_34
@@ -222,6 +223,7 @@
                 set libb_nodr [string map "${destroot} {}" ${libb}]
 
                 system "install_name_tool -change @executable_path/../lib/${libb_base} ${libb_nodr} ${liba}"
+                system "install_name_tool -change @rpath/${libb_base} ${libb_nodr} ${liba}"
             }
         }
     } elseif {${subport} == "clang-${llvm_version}"} {
@@ -233,6 +235,8 @@
         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"
         system "install_name_tool -change @executable_path/../lib/libLLVM-${llvm_version}.dylib ${sub_prefix}/lib/libLLVM-${llvm_version}.dylib ${destroot}${sub_prefix}/lib/libclang.dylib"
+        system "install_name_tool -change @rpath/libLLVM-${llvm_version}svn.dylib ${sub_prefix}/lib/libLLVM-${llvm_version}svn.dylib ${destroot}${sub_prefix}/lib/libclang.dylib"
+        system "install_name_tool -change @rpath/libLLVM-${llvm_version}.dylib ${sub_prefix}/lib/libLLVM-${llvm_version}.dylib ${destroot}${sub_prefix}/lib/libclang.dylib"
 
         if {${os.major} > 9} {
             # http://trac.macports.org/ticket/38527
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130818/f629f5fa/attachment.html>


More information about the macports-changes mailing list