[93856] branches/mld-qt-481/dports/audio/phonon/Portfile

michaelld at macports.org michaelld at macports.org
Fri Jun 1 08:23:55 PDT 2012


Revision: 93856
          https://trac.macports.org/changeset/93856
Author:   michaelld at macports.org
Date:     2012-06-01 08:23:54 -0700 (Fri, 01 Jun 2012)
Log Message:
-----------
phonon in qt4-mac branch : fix library names broken by tweaking compatibility version

Modified Paths:
--------------
    branches/mld-qt-481/dports/audio/phonon/Portfile

Modified: branches/mld-qt-481/dports/audio/phonon/Portfile
===================================================================
--- branches/mld-qt-481/dports/audio/phonon/Portfile	2012-06-01 15:10:18 UTC (rev 93855)
+++ branches/mld-qt-481/dports/audio/phonon/Portfile	2012-06-01 15:23:54 UTC (rev 93856)
@@ -37,19 +37,20 @@
     move ${destroot}${qt_plugins_dir}/designer/libphononwidgets.so \
         ${destroot}${qt_plugins_dir}/designer/libphononwidgets.dylib
 
+    # link major library version name
+
+    ln -s ${prefix}/lib/libphonon.dylib ${destroot}${prefix}/lib/libphonon.4.dylib
+    ln -s ${prefix}/lib/libphononexperimental.dylib ${destroot}${prefix}/lib/libphononexperimental.4.dylib
+
     # fix library and plugin self-names
 
-    foreach fixfile { lib/libphonon.dylib \
-                      lib/libphononexperimental.dylib  } {
-        system "install_name_tool -id ${prefix}/${fixfile} ${destroot}${prefix}/${fixfile}"
-    }
+    system "install_name_tool -id ${prefix}/lib/libphonon.4.dylib ${destroot}${prefix}/lib/libphonon.dylib"
+    system "install_name_tool -id ${prefix}/lib/libphononexperimental.4.dylib ${destroot}${prefix}/lib/libphononexperimental.dylib"
 
     # fix use of libphonon
 
-    foreach fixfile { lib/libphononexperimental.dylib \
-                      share/qt4/plugins/designer/libphononwidgets.dylib } {
-        system "install_name_tool -change lib/libphonon.4.dylib ${prefix}/lib/libphonon.4.dylib ${destroot}${prefix}/${fixfile}"
-    }
+    system "install_name_tool -change lib/libphonon.4.4.0.dylib ${prefix}/lib/libphonon.4.dylib ${destroot}${prefix}/lib/libphononexperimental.dylib"
+    system "install_name_tool -change lib/libphonon.4.4.0.dylib ${prefix}/lib/libphonon.4.dylib ${destroot}${prefix}/share/qt4/plugins/designer/libphononwidgets.dylib"
 
     # move odd cmake directory into the cmake module's directory
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120601/715cfca6/attachment.html>


More information about the macports-changes mailing list