File dream-2.1.1-opensuse-config-diffs.patch of Package dream

--- dream/dream.pro.orig	2013-11-11 17:33:38.000000000 +0100
+++ dream/dream.pro		2020-02-17 01:56:13.420183804 +0100
@@ -3,8 +3,8 @@
 TARGET = dream
 OBJECTS_DIR = obj
 DEFINES += EXECUTABLE_NAME=$$TARGET
-LIBS += -L$$OUT_PWD/lib
-INCLUDEPATH += $$OUT_PWD/include
+LIBS += -L/usr/lib
+message(LIBS = $$LIBS)
 contains(QT_VERSION, ^4\\..*) {
     CONFIG += qt qt4
     VERSION_MESSAGE = Qt 4
@@ -141,10 +141,10 @@
       packagesExist(hamlib) {
         CONFIG += hamlib
       }
-      packagesExist(gpsd) {
+      exists(/usr/include/gps.h) {
         CONFIG += gps
       }
-      packagesExist(pcap) {
+      exists(/usr/include/pcap.h) {
         CONFIG += pcap
       }
       packagesExist(opus) {
@@ -184,26 +184,26 @@
 win32 {
     LIBS += -lfftw3-3
     !multimedia {
-        exists($$OUT_PWD/include/portaudio.h) {
+        exists(/usr/include/portaudio.h) {
           CONFIG += portaudio sound
         }
         else {
           CONFIG += mmsystem sound
         }
     }
-    exists($$OUT_PWD/include/speex/speex_preprocess.h) {
+    exists(/usr/include/speex/speex_preprocess.h) {
       CONFIG += speexdsp
     }
-    exists($$OUT_PWD/include/hamlib/rig.h) {
+    exists(/usr/include/hamlib/rig.h) {
       CONFIG += hamlib
     }
-    exists($$OUT_PWD/include/pcap.h) {
+    exists(/usr/include/pcap.h) {
       CONFIG += pcap
     }
-    exists($$OUT_PWD/include/sndfile.h) {
+    exists(/usr/include/sndfile.h) {
         CONFIG += sndfile
     }
-    exists($$OUT_PWD/include/opus/opus.h) {
+    exists(/usr/include/opus/opus.h) {
         CONFIG += opus
     }
     LIBS += -lsetupapi -lwsock32 -lws2_32 -lzdll -ladvapi32 -luser32
@@ -225,16 +225,16 @@
          LIBS += -lz
     }
 }
-exists($$OUT_PWD/include/neaacdec.h) {
+exists(/usr/include/neaacdec.h) {
      DEFINES += HAVE_LIBFAAD \
      USE_FAAD2_LIBRARY
-     LIBS += -lfaad_drm
+     LIBS += -lfaad
      message("with FAAD2")
 }
-exists($$OUT_PWD/include/faac.h) {
+exists(/usr/include/faac.h) {
      DEFINES += HAVE_LIBFAAC \
      USE_FAAC_LIBRARY
-     LIBS += -lfaac_drm
+     LIBS += -lfaac
      message("with FAAC")
 }
 opus {
@@ -298,7 +298,12 @@
             LIBS += -lqwtd
         } else {
             # unix | win release
-            LIBS += -lqwt
+            exists(/usr/share/licenses/libqwt-qt5-6) {
+                LIBS += -lqwt-qt5
+            }
+            exists(/usr/share/licenses/libqwt6) {
+                LIBS += -lqwt
+            }
         }
    }
    !crosscompile {
@@ -327,8 +332,8 @@
             }
         }
     }
-    exists($$OUT_PWD/include/qwt/qwt.h) {
-        INCLUDEPATH += $$OUT_PWD/include/qwt
+    exists(/usr/include/qt5/qwt6/qwt.h) {
+        INCLUDEPATH += /usr/include/qt5/qwt6
     }
 }
 alsa {
openSUSE Build Service is sponsored by