 diff -burN qt-everywhere-opensource-src-4.8.7.orig/src/gui/image/qjpeghandler.pri qt-everywhere-opensource-src-4.8.7/src/gui/image/qjpeghandler.pri
 --- qt-everywhere-opensource-src-4.8.7.orig/src/gui/image/qjpeghandler.pri	2017-08-18 10:54:45.407880063 +0200
-+++ qt-everywhere-opensource-src-4.8.7/src/gui/image/qjpeghandler.pri	2017-08-18 10:58:21.313281563 +0200
++++ qt-everywhere-opensource-src-4.8.7/src/gui/image/qjpeghandler.pri	2017-08-21 16:51:31.977064035 +0200
 @@ -4,7 +4,7 @@
  SOURCES += $$PWD/qjpeghandler.cpp
  contains(QT_CONFIG, system-jpeg) {

     SUBDIRS += openvg
diff -burN qt-everywhere-opensource-src-4.8.7.orig/src/plugins/imageformats/imageformats.pro qt-everywhere-opensource-src-4.8.7/src/plugins/imageformats/imageformats.pro
--- qt-everywhere-opensource-src-4.8.7.orig/src/plugins/imageformats/imageformats.pro	2017-08-18 10:54:45.583881205 +0200
+++ qt-everywhere-opensource-src-4.8.7/src/plugins/imageformats/imageformats.pro	2017-08-18 10:59:04.493561642 +0200
@@ -3,7 +3,7 @@
 !contains(QT_CONFIG, no-jpeg):!contains(QT_CONFIG, jpeg):SUBDIRS += jpeg
 !contains(QT_CONFIG, no-gif):!contains(QT_CONFIG, gif):SUBDIRS += gif

 nacl: SRC_SUBDIRS -= src_network src_testlib
 !symbian:contains(QT_CONFIG, dbus):SRC_SUBDIRS += src_dbus
 !contains(QT_CONFIG, no-gui): SRC_SUBDIRS += src_gui
@@ -18,7 +18,7 @@
 contains(QT_CONFIG, xmlpatterns): SRC_SUBDIRS += src_xmlpatterns
 contains(QT_CONFIG, phonon): SRC_SUBDIRS += src_phonon
 contains(QT_CONFIG, multimedia): SRC_SUBDIRS += src_multimedia
-contains(QT_CONFIG, svg): SRC_SUBDIRS += src_svg
+# contains(QT_CONFIG, svg): SRC_SUBDIRS += src_svg
 contains(QT_CONFIG, script): SRC_SUBDIRS += src_script
 contains(QT_CONFIG, declarative): SRC_SUBDIRS += src_declarative
 contains(QT_CONFIG, webkit)  {
@@ -52,8 +52,8 @@
 src_sql.target = sub-sql
 src_network.subdir = $$QT_SOURCE_TREE/src/network
 src_network.target = sub-network
-src_svg.subdir = $$QT_SOURCE_TREE/src/svg
-src_svg.target = sub-svg
+# src_svg.subdir = $$QT_SOURCE_TREE/src/svg
+# src_svg.target = sub-svg
 src_script.subdir = $$QT_SOURCE_TREE/src/script
 src_script.target = sub-script
 src_scripttools.subdir = $$QT_SOURCE_TREE/src/scripttools
@@ -89,7 +89,7 @@
    src_xml.depends = src_corelib
    src_xmlpatterns.depends = src_corelib src_network
    src_dbus.depends = src_corelib src_xml
-   src_svg.depends = src_corelib src_gui
+   # src_svg.depends = src_corelib src_gui
    src_script.depends = src_corelib
    src_scripttools.depends = src_script src_gui src_network
    src_network.depends = src_corelib
@@ -105,7 +105,7 @@
    contains(QT_CONFIG, opengl):src_multimedia.depends += src_opengl
    src_activeqt.depends = src_tools_idc src_gui
    src_declarative.depends = src_gui src_script src_network
-   src_plugins.depends = src_gui src_sql src_svg
+   src_plugins.depends = src_gui
    contains(QT_CONFIG, multimedia):src_plugins.depends += src_multimedia
    contains(QT_CONFIG, declarative):src_plugins.depends += src_declarative
    src_s60installs.depends = $$TOOLS_SUBDIRS $$SRC_SUBDIRS
@@ -130,9 +130,9 @@
       src_declarative.depends += src_xmlpatterns
       src_webkit.depends += src_xmlpatterns
    }
-   contains(QT_CONFIG, svg) {
-      src_declarative.depends += src_svg
-   }
+   # contains(QT_CONFIG, svg) {
+   # src_declarative.depends += src_svg
+   # }
 }
 
 
