[133635] trunk/dports/audio/phonon
michaelld at macports.org
michaelld at macports.org
Sat Mar 7 10:47:28 PST 2015
Revision: 133635
https://trac.macports.org/changeset/133635
Author: michaelld at macports.org
Date: 2015-03-07 10:47:28 -0800 (Sat, 07 Mar 2015)
Log Message:
-----------
phonon: add back patch to fix library compatibility version to be "4.4.0", because lots of other ports expect it to be this way & it's easier to fix it here than the rev-bump all the other ports ... :)
Modified Paths:
--------------
trunk/dports/audio/phonon/Portfile
trunk/dports/audio/phonon/files/patch-CMakeLists.txt.diff
Modified: trunk/dports/audio/phonon/Portfile
===================================================================
--- trunk/dports/audio/phonon/Portfile 2015-03-07 16:04:44 UTC (rev 133634)
+++ trunk/dports/audio/phonon/Portfile 2015-03-07 18:47:28 UTC (rev 133635)
@@ -7,6 +7,7 @@
name phonon
version 4.8.3
+revision 1
categories audio kde kde4
license {LGPL-2.1 LGPL-3}
maintainers michaelld openmaintainer
@@ -31,8 +32,10 @@
patchfiles-append patch-cmake_PhononMacros.cmake.diff
-# fix install location of cmake module files;
-# patch here and post-patch reinplace
+# (1) fix install location of cmake module files;
+# patch here and post-patch reinplace.
+# (2) fix library compatibility version to be 4.4.0,
+# because pretty much every KDE port expects it.
patchfiles-append patch-CMakeLists.txt.diff
@@ -64,6 +67,12 @@
configure.ldflags-append -F${qt_frameworks_dir}
post-destroot {
+
+ # link major library version name
+
+ ln -s libphonon.dylib ${destroot}${prefix}/lib/libphonon.4.dylib
+ ln -s libphononexperimental.dylib ${destroot}${prefix}/lib/libphononexperimental.4.dylib
+
if {[variant_isset demos]} {
set demos_dest_dir ${destroot}${prefix}/share/examples/phonon
xinstall -m 775 -d ${demos_dest_dir}
Modified: trunk/dports/audio/phonon/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/audio/phonon/files/patch-CMakeLists.txt.diff 2015-03-07 16:04:44 UTC (rev 133634)
+++ trunk/dports/audio/phonon/files/patch-CMakeLists.txt.diff 2015-03-07 18:47:28 UTC (rev 133635)
@@ -1,11 +1,20 @@
---- CMakeLists.txt.orig 2015-03-06 19:31:55.000000000 -0500
-+++ CMakeLists.txt 2015-03-06 19:32:24.000000000 -0500
+--- CMakeLists.txt.orig 2015-03-07 13:38:22.000000000 -0500
++++ CMakeLists.txt 2015-03-07 13:39:00.000000000 -0500
+@@ -25,7 +25,7 @@
+ set(PHONON_LIB_MINOR_VERSION "8") # Only change on binary compatible changes with new interfaces
+ set(PHONON_LIB_PATCH_VERSION "3") # Bump whenever you feel like it :P
+ set(PHONON_LIB_VERSION "${PHONON_LIB_MAJOR_VERSION}.${PHONON_LIB_MINOR_VERSION}.${PHONON_LIB_PATCH_VERSION}")
+-set(PHONON_LIB_SOVERSION ${PHONON_LIB_MAJOR_VERSION})
++set(PHONON_LIB_SOVERSION "${PHONON_LIB_MAJOR_VERSION}.4.0")
+ set(PHONON_LIB_SONAME phonon)
+ set(PHONON_LIB_SONAME_CAMEL Phonon)
+
@@ -230,7 +230,7 @@
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PHONON_LIB_SONAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
endif(NOT WIN32)
-set(CMAKECONFIG_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/${PHONON_LIB_SONAME} )
-+set(CMAKECONFIG_INSTALL_DIR @MACPORTS_CMAKE_DIR@/${PHONON_LIB_SONAME} )
++set(CMAKECONFIG_INSTALL_DIR share/cmake/Modules/${PHONON_LIB_SONAME} )
# figure out the relative path from the installed Config.cmake file to the install prefix (which may be at
# runtime different from the chosen CMAKE_INSTALL_PREFIX if under Windows the package was installed anywhere)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150307/f409ac41/attachment.html>
More information about the macports-changes
mailing list