[57727] trunk/dports/devel/tbb/Portfile

mnick at macports.org mnick at macports.org
Tue Sep 15 11:40:13 PDT 2009


Revision: 57727
          http://trac.macports.org/changeset/57727
Author:   mnick at macports.org
Date:     2009-09-15 11:40:12 -0700 (Tue, 15 Sep 2009)
Log Message:
-----------
set ids of shared libs to full path in prefix

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

Modified: trunk/dports/devel/tbb/Portfile
===================================================================
--- trunk/dports/devel/tbb/Portfile	2009-09-15 18:04:24 UTC (rev 57726)
+++ trunk/dports/devel/tbb/Portfile	2009-09-15 18:40:12 UTC (rev 57727)
@@ -7,6 +7,7 @@
 set rel_date        20090809
 set vers            2.2
 version             ${vers}-${rel_date}
+revision            1
 maintainers         mnick openmaintainer
 
 categories          devel
@@ -49,12 +50,16 @@
         ${build_dir}/tbbvars.sh ${build_dir}/tbbvars.csh
     reinplace "s|\\(tbb_bin.\\)\".*\"|\\1\"${prefix}/lib\"|g" \
         ${build_dir}/tbbvars.sh ${build_dir}/tbbvars.csh
-   
+
     # copy lib, include & bin
     eval file copy [glob ${build_dir}/lib*.dylib] ${destroot}${prefix}/lib
     eval file copy [glob ${build_dir}/tbbvars.*sh] ${destroot}${prefix}/bin
     file copy ${worksrcpath}/include/tbb ${destroot}${prefix}/include/tbb
     
+    # fix install_name paths
+    system "install_name_tool -id ${prefix}/lib/libtbb.dylib ${destroot}${prefix}/lib/libtbb.dylib"
+    system "install_name_tool -id ${prefix}/lib/libtbbmalloc.dylib ${destroot}${prefix}/lib/libtbbmalloc.dylib"
+    
     # copy examples & docs
     file mkdir ${destroot}${prefix}/share/${name}
     file copy ${worksrcpath}/doc ${destroot}${prefix}/share/${name}/doc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090915/d3ce5c9b/attachment.html>


More information about the macports-changes mailing list