Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37733138
en ru br
ALT Linux repos
S:1.1.1-alt2
5.0: 0.9.1-alt2.1
4.1: 0.9.1-alt1
4.0: 0.9.1-alt1
3.0: 0.4-alt1.1

Group :: Sound
RPM: dssi

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt-qt5.patch
Download


--- a/configure.ac
+++ b/configure.ac
@@ -49,9 +49,9 @@ AC_SUBST(SRC_LIBS)
 
 dnl Check for Qt
 with_qt=no
-PKG_CHECK_MODULES(QT, [QtCore >= 4.0.1 QtGui >= 4.0.1],
+PKG_CHECK_MODULES(QT, [Qt5Core >= 4.0.1 Qt5Gui >= 4.0.1 Qt5Widgets >= 4.0.1],
     [with_qt=yes
-     QT_MOC=`$PKG_CONFIG --variable=moc_location QtCore`],
+     QT_MOC=`$PKG_CONFIG --variable=moc Qt5`],
     AC_MSG_NOTICE([pkg-config could not find Qt >= 4.0.1]))
 if test "x${with_qt}" = xno ; then
   case "${host_os}" in
--- a/examples/less_trivial_synth_qt_gui.cpp
+++ b/examples//less_trivial_synth_qt_gui.cpp
@@ -433,9 +433,9 @@ main(int argc, char **argv)
 
     QApplication application(argc, argv);
 
-    if (application.argc() != 5) {
+    if (argc != 5) {
 	cerr << "usage: "
-	     << application.argv()[0] 
+	     << argv[0]
 	     << " <osc url>"
 	     << " <plugin dllname>"
 	     << " <plugin label>"
@@ -448,7 +448,7 @@ main(int argc, char **argv)
     XSetErrorHandler(handle_x11_error);
 #endif
 
-    char *url = application.argv()[1];
+    char *url = argv[1];
 
     char *host = lo_url_get_hostname(url);
     char *port = lo_url_get_port(url);
--- a/examples//trivial_sampler_qt_gui.cpp
+++ b/examples//trivial_sampler_qt_gui.cpp
@@ -611,9 +611,9 @@ main(int argc, char **argv)
 
     QApplication application(argc, argv);
 
-    if (application.argc() != 5) {
+    if (argc != 5) {
 	cerr << "usage: "
-	     << application.argv()[0] 
+	     << argv[0] 
 	     << " <osc url>"
 	     << " <plugin dllname>"
 	     << " <plugin label>"
@@ -626,13 +626,13 @@ main(int argc, char **argv)
     XSetErrorHandler(handle_x11_error);
 #endif
 
-    char *url = application.argv()[1];
+    char *url = argv[1];
 
     char *host = lo_url_get_hostname(url);
     char *port = lo_url_get_port(url);
     char *path = lo_url_get_path(url);
 
-    char *label = application.argv()[3];
+    char *label = argv[3];
     bool stereo = false;
     if (QString(label).toLower() == QString(Sampler_Stereo_LABEL).toLower()) {
 	stereo = true;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin