[101673] trunk/dports/lang/Io/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Jan 16 14:31:01 PST 2013


Revision: 101673
          https://trac.macports.org/changeset/101673
Author:   ryandesign at macports.org
Date:     2013-01-16 14:31:01 -0800 (Wed, 16 Jan 2013)
Log Message:
-----------
Io: fix library linking (#33150)

Modified Paths:
--------------
    trunk/dports/lang/Io/Portfile

Modified: trunk/dports/lang/Io/Portfile
===================================================================
--- trunk/dports/lang/Io/Portfile	2013-01-16 20:43:52 UTC (rev 101672)
+++ trunk/dports/lang/Io/Portfile	2013-01-16 22:31:01 UTC (rev 101673)
@@ -6,7 +6,7 @@
 PortGroup               cmake 1.0
 
 github.setup            stevedekorte io 2011.09.12
-revision                6
+revision                7
 name                    Io
 categories              lang
 # mostly BSD, but some LGPL and GPL files
@@ -66,10 +66,23 @@
 use_parallel_build      no
 
 post-destroot {
+    set libstofix \
+        [list libIoObjcBridge.dylib \
+              libIoOpenGL.dylib \
+              libIoRegex.dylib \
+              libIoTheora.dylib \
+              libIoVorbis.dylib]
     fs-traverse destlib ${destroot}${prefix}/lib {
         if {[file isfile ${destlib}] && [file extension ${destlib}] == ".dylib"} {
             set lib [strsed ${destlib} "s|^${destroot}||"]
-            set cmd "install_name_tool -id '${lib}' '${destlib}'"
+            set cmd "install_name_tool -id '${lib}'"
+            if {[lsearch ${libstofix} [file tail ${destlib}]] > -1} {
+                foreach linkedlibname {Blowfish Box MD5 Ogg Range Socket SystemCall Yajl} {
+                    set linkedlib "libIo${linkedlibname}.dylib"
+                    append cmd " -change '${prefix}/lib/${linkedlib}' '${prefix}/lib/io/addons/${linkedlibname}/_build/dll/${linkedlib}'"
+                }
+            }
+            append cmd " '${destlib}'"
             ui_debug "Assembled command: '${cmd}'"
             system "${cmd}"
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130116/a7b23f4f/attachment.html>


More information about the macports-changes mailing list