<pre style='margin:0'>
Andrea D'Amore (anddam) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bf26c205bc76df00489716d56664cf4d8628f4be">https://github.com/macports/macports-ports/commit/bf26c205bc76df00489716d56664cf4d8628f4be</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit bf26c205bc76df00489716d56664cf4d8628f4be
</span>Author: Marko Käning <mk@macports.org>
AuthorDate: Tue Dec 13 01:32:57 2016 +0100
<span style='display:block; white-space:pre;color:#404040;'> phonon-qt: update to 4.9.0 and new phonon-qt5 subport introduced
</span>---
audio/phonon/Portfile | 205 ++++++++++++++-------
audio/phonon/files/patch-CMakeLists.txt.diff | 14 +-
.../files/patch-cmake_PhononMacros.cmake.diff | 8 +-
3 files changed, 147 insertions(+), 80 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/phonon/Portfile b/audio/phonon/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c323b35..940243d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/audio/phonon/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/phonon/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,90 +1,86 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# $Id$
</span>
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup qt4 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup cmake 1.0
</span>
name phonon
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 4.8.3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-categories audio kde kde4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 4.9.0
</span> license {LGPL-2.1 LGPL-3}
maintainers michaelld openmaintainer
description Cross Platform Multimedia API used by KDE4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description Phonon is a multimedia, multi-platform sound \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- framework for the application developer.
</span> platforms darwin
homepage http://phonon.kde.org
<span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites kde:stable/${name}/${version}/src
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites kde:stable/${name}/${version}
</span> use_xz yes
distname phonon-${version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 c035f253eda49635377122423bb72161f97f18d3 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 a1149c961ca1570968d070bbd23671e614aa506f847ca93748960e309f85da16
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 42e3230c39319bcb5da4a8b2b14da7d8e563e772 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 bb74b40f18ade1d9ab89ffcd7aeb7555be797ca395f1224c488b394da6deb0e0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build-append port:automoc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant demos description {Build the demos} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DPHONON_BUILD_DEMOS:BOOL=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# fix use of CMAKE_INSTALL_NAME to be an absolute path
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport ${name}-qt5 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qt5 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ categories audio kde kf5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description Phonon is a multimedia, multi-platform sound \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ framework for the application developer. This is the Phonon 4\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ transitional library for Qt5 (API compatible with regular Phonon4)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DPHONON_BUILD_PHONON4QT5:BOOL=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set LPH libphonon4qt5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset demos]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set demos_dest_dir ${destroot}${prefix}/share/examples/phonon4qt5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 775 -d ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${workpath}/build/demos/simpleplayer/simpleplayer.app ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${workpath}/build/demos/metadatareader/metadatareader.app ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${workpath}/build/demos/phota/phota.app ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${workpath}/build/demos/simplecapture/simplecapture.app ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix library and plugin self-names
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -id ${prefix}/lib/${LPH}.4.dylib ${destroot}${prefix}/lib/${LPH}.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -id ${prefix}/lib/${LPH}experimental.4.dylib ${destroot}${prefix}/lib/${LPH}experimental.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix use of libphonon4qt5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.4.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/lib/${LPH}experimental.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.4.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${qt_plugins_dir}/designer/phononwidgets.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -id phononwidgets.dylib ${destroot}${qt_plugins_dir}/designer/phononwidgets.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset demos]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.4.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${demos_dest_dir}/simpleplayer.app/Contents/MacOS/simpleplayer"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.4.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${demos_dest_dir}/metadatareader.app/Contents/MacOS/metadatareader"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.4.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${demos_dest_dir}/phota.app/Contents/MacOS/phota"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.4.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${demos_dest_dir}/simplecapture.app/Contents/MacOS/simplecapture"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default_variants +compversion440
</span>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# fix use of CMAKE_INSTALL_NAME to be an absolute path
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# (RJVB: why is this necessary?)
</span> patchfiles-append patch-cmake_FindPhononInternal.cmake.diff
# fix MODULE names to end in .dylib instead of .so
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> patchfiles-append patch-cmake_PhononMacros.cmake.diff
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# (1) fix install location of cmake module files;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# patch here and post-patch reinplace.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# (2) fix library compatibility version to be 4.4.0,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# because pretty much every KDE port expects it.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set rel_mp_qt_cmake_dir [strsed ${qt_cmake_module_dir} "g@${qt_dir}/@@"]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@MACPORTS_CMAKE_DIR@|${rel_mp_qt_cmake_dir}|" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# do VPATH (out of source tree) build
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-cmake.out_of_source yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# standard args
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${qt_cmake_defines} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=TRUE \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DWITH_QZeitgeist=OFF
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.ldflags-append -F${qt_frameworks_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # link major library version name
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -s libphonon.dylib ${destroot}${prefix}/lib/libphonon.4.dylib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -s libphononexperimental.dylib ${destroot}${prefix}/lib/libphononexperimental.4.dylib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_isset demos]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set demos_dest_dir ${destroot}${prefix}/share/examples/phonon
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 775 -d ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${workpath}/build/demos/simpleplayer/simpleplayer ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${workpath}/build/demos/metadatareader/metadatareader ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${workpath}/build/demos/phota/phota ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${workpath}/build/demos/simplecapture/simplecapture ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> variant pulseaudio description "Build Phonon with additional support for PulseAudio" {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> depends_lib-append port:pulseaudio
configure.args-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DWITH_PulseAudio=ON \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DPHONON_PULSESUPPORT=YES \
</span> -DPULSEAUDIO_INCLUDE_DIR=${prefix}/include \
-DPULSEAUDIO_LIBRARY=${prefix}/lib/libpulse.dylib \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DPULSEAUDIO_MAINLOOP_LIBRARY=${prefix}/lib/libpulse-mainloop-glib.dylib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPULSEAUDIO_MAINLOOP_LIBRARY=${prefix}/lib/libpulse-mainloop-glib.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_PulseAudio=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPHONON_PULSESUPPORT=YES
</span> }
if {![variant_isset pulseaudio]} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -96,14 +92,85 @@ if {![variant_isset pulseaudio]} {
</span> -DPULSEAUDIO_MAINLOOP_LIBRARY=
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant demos description "Build Phonon demos" {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -DPHONON_BUILD_DEMOS=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} ne "${name}-qt5"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qt4 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ categories audio kde kde4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description Phonon is a multimedia, multi-platform sound \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ framework for the application developer.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # do we really depend on port:automoc, because cmake prints
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # -- Using CMake automoc builtin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:automoc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant compversion440 description {Build libraries with compatibility version 4.4.0 for existing Qt4 installs expecting that} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix the library compatibility version to be 4.4.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set LPH libphonon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global demos_dest_dir
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset demos]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set demos_dest_dir ${destroot}${prefix}/share/examples/phonon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 775 -d ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${workpath}/build/demos/simpleplayer/simpleplayer ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${workpath}/build/demos/metadatareader/metadatareader ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${workpath}/build/demos/phota/phota ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${workpath}/build/demos/simplecapture/simplecapture ${demos_dest_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset compversion440]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # link major library version name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${prefix}/lib/${LPH}.dylib ${destroot}${prefix}/lib/${LPH}.4.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${prefix}/lib/${LPH}experimental.dylib ${destroot}${prefix}/lib/${LPH}experimental.4.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set DLVERS 4.4.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set DLVERS 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix library and plugin self-names
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -id ${prefix}/lib/${LPH}.4.dylib ${destroot}${prefix}/lib/${LPH}.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -id ${prefix}/lib/${LPH}experimental.4.dylib ${destroot}${prefix}/lib/${LPH}experimental.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix use of libphonon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.${DLVERS}.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/lib/${LPH}experimental.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.${DLVERS}.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${qt_plugins_dir}/designer/libphononwidgets.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset demos]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.${DLVERS}.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${demos_dest_dir}/simpleplayer"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.${DLVERS}.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${demos_dest_dir}/metadatareader"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.${DLVERS}.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${demos_dest_dir}/phota"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change lib/${LPH}.${DLVERS}.dylib ${prefix}/lib/${LPH}.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${demos_dest_dir}/simplecapture"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.out_of_source yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set rel_mp_qt_cmake_dir [strsed ${qt_cmake_module_dir} "g@${prefix}/@@"]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@MACPORTS_CMAKE_DIR@|${rel_mp_qt_cmake_dir}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/CMakeLists.txt
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset demos]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -DPHONON_BUILD_DEMOS=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[info exists qt_cmake_defines]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${qt_cmake_defines}
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# nb: there is no WITH_QZeitgeist option, keeping it out of nostalgia
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=true \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_QZeitgeist=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.ldflags-append -F${qt_frameworks_dir}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url http://www.gtlib.gatech.edu/pub/kde/stable/${name}/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex "\(\\d+(?:\\.\\d+)*)\/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url http://www.gtlib.gatech.edu/pub/kde/stable/${name}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex "\(\\d+(?:\\.\\d+)*)\/"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/phonon/files/patch-CMakeLists.txt.diff b/audio/phonon/files/patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 8365fc8..744c0ca 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/audio/phonon/files/patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/phonon/files/patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,20 +1,20 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- CMakeLists.txt.orig 2015-03-07 13:38:22.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ CMakeLists.txt 2015-03-07 13:39:00.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -25,7 +25,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set(PHONON_LIB_MINOR_VERSION "8") # Only change on binary compatible changes with new interfaces
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set(PHONON_LIB_PATCH_VERSION "3") # Bump whenever you feel like it :P
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig 2014-08-02 16:15:47.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2014-08-02 16:16:01.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,7 +23,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(PHONON_LIB_MINOR_VERSION "7") # Only change on binary compatible changes with new interfaces
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(PHONON_LIB_PATCH_VERSION "2") # Bump whenever you feel like it :P
</span> 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)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -230,7 +230,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -228,7 +228,7 @@
</span> 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} )
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+set(CMAKECONFIG_INSTALL_DIR share/cmake/Modules/${PHONON_LIB_SONAME} )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(CMAKECONFIG_INSTALL_DIR @MACPORTS_CMAKE_DIR@/${PHONON_LIB_SONAME} )
</span>
# 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)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/phonon/files/patch-cmake_PhononMacros.cmake.diff b/audio/phonon/files/patch-cmake_PhononMacros.cmake.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 59e8ce8..866bdd2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/audio/phonon/files/patch-cmake_PhononMacros.cmake.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/phonon/files/patch-cmake_PhononMacros.cmake.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,9 +1,9 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- cmake/PhononMacros.cmake.orig 2015-03-06 22:35:36.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ cmake/PhononMacros.cmake 2015-03-06 22:35:40.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- cmake/orig.PhononMacros.cmake 2016-05-16 01:53:33.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cmake/PhononMacros.cmake 2016-05-16 01:58:00.000000000 +0200
</span> @@ -25,12 +25,18 @@
macro(phonon_add_declarative_plugin _target)
set(_srcs ${ARGN})
<span style='display:block; white-space:pre;background:#ffe0e0;'>- automoc4_add_library(${_target} MODULE ${_global_add_executable_param} ${_srcs})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_library(${_target} MODULE ${_global_add_executable_param} ${_srcs})
</span> + if(APPLE)
+ set_target_properties(${_target} PROPERTIES SUFFIX ".dylib")
+ endif(APPLE)
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,7 +12,7 @@
</span> macro(phonon_add_designer_plugin _target _qrc_file)
set(_srcs ${ARGN})
qt5_add_resources(_srcs ${_qrc_file})
<span style='display:block; white-space:pre;background:#ffe0e0;'>- automoc4_add_library(${_target} MODULE ${_global_add_executable_param} ${_srcs})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_library(${_target} MODULE ${_global_add_executable_param} ${_srcs})
</span> + if(APPLE)
+ set_target_properties(${_target} PROPERTIES SUFFIX ".dylib")
+ endif(APPLE)
</pre><pre style='margin:0'>
</pre>