From ad1dcf0e69c05b8153af66c82e8b1defd08657c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sun, 12 Jun 2016 12:49:42 +0200 Subject: [PATCH] kmix: initial add 16.04.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit based upon jethro's commit f9a61af624d926c4da36331acf76d2e8ce737419 Author: Manuel Bachmann Date: Tue Jun 7 15:13:58 2016 +0000 kmix: initial add 15.12.0 KMix is KDE's audio mixer, and has recently been ported to KDE Frameworks 5. Signed-off-by: Manuel Bachmann Signed-off-by: Andreas Müller --- ...-build-with-QT_NO_SESSIONMANAGER-set.patch | 26 +++++++++++ recipes-kde/apps/kmix/kmix.bb | 46 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 recipes-kde/apps/kmix/files/0001-fix-build-with-QT_NO_SESSIONMANAGER-set.patch create mode 100644 recipes-kde/apps/kmix/kmix.bb diff --git a/recipes-kde/apps/kmix/files/0001-fix-build-with-QT_NO_SESSIONMANAGER-set.patch b/recipes-kde/apps/kmix/files/0001-fix-build-with-QT_NO_SESSIONMANAGER-set.patch new file mode 100644 index 00000000..8655e0a5 --- /dev/null +++ b/recipes-kde/apps/kmix/files/0001-fix-build-with-QT_NO_SESSIONMANAGER-set.patch @@ -0,0 +1,26 @@ +--- a/apps/KMixApp.cpp 2016-06-07 16:48:58.967601212 +0200 ++++ b/apps/KMixApp.cpp 2016-06-07 16:49:47.720048427 +0200 +@@ -80,7 +80,11 @@ + */ + creationLock.lock(); + ++#ifndef QT_NO_SESSIONMANAGER + bool restore = isSessionRestored(); // && KMainWindow::canBeRestored(0); ++#else ++ bool restore = false; ++#endif + kDebug() << "Starting KMix using kepvisibility=" << hasArgKeepvisibility << ", failsafe=" << reset << ", sessionRestore=" << restore; + int createCount = 0; + if (restore) +--- a/apps/kmix.cpp 2016-06-07 16:50:51.464632922 +0200 ++++ b/apps/kmix.cpp 2016-06-07 16:50:24.112382155 +0200 +@@ -116,9 +116,11 @@ + recreateGUI(false, QString(), true, reset); + } + ++#ifndef QT_NO_SESSIONMANAGER + if (!kapp->isSessionRestored() ) // done by the session manager otherwise ++#endif + setInitialSize(); + + fixConfigAfterRead(); diff --git a/recipes-kde/apps/kmix/kmix.bb b/recipes-kde/apps/kmix/kmix.bb new file mode 100644 index 00000000..2e89d209 --- /dev/null +++ b/recipes-kde/apps/kmix/kmix.bb @@ -0,0 +1,46 @@ +SUMMARY = "KDE's audio mixer" +LICENSE = "GPLv2 & GFDL-1.2 & LGPLv2" +LIC_FILES_CHKSUM = " \ + file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://COPYING.DOC;md5=24ea4c7092233849b4394699333b5c56 \ + file://COPYING.LIB;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ +" + +inherit kde-apps + +DEPENDS += " \ + alsa-lib \ + libcanberra \ + \ + kconfigwidgets \ + kdbusaddons \ + kdelibs4support \ + kglobalaccel \ + ki18n \ + kiconthemes \ + kxmlgui \ + plasma-framework \ +" + +PACKAGECONFIG = "pulseaudio" +PACKAGECONFIG[pulseaudio] = ",,pulseaudio" + +PV = "${KDE_APP_VERSION}" +SRC_URI[md5sum] = "d59f2518373f9befe98f22083781afe7" +SRC_URI[sha256sum] = "e621013d19a7727909cb45116d9cb56f298a89f8c49be7ffc3657e1372d0a1cc" + +SRC_URI += "file://0001-fix-build-with-QT_NO_SESSIONMANAGER-set.patch" + +EXTRA_OECMAKE += "-DKMIX_KF5_BUILD=1" + +FILES_SOLIBSDEV = "" + +FILES_${PN} += " \ + ${datadir}/k*5 \ + ${datadir}/plasma \ + ${datadir}/icons \ + ${datadir}/dbus-1 \ + \ + ${libdir}/libkdeinit5*.so \ + ${OE_QMAKE_PATH_PLUGINS} \ +"