  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
++   # }
+ }
+ 
+ 

 contains(QT_CONFIG, declarative): SUBDIRS *= qmltooling
diff -burN qt-everywhere-opensource-src-4.8.7.orig/src/src.pro qt-everywhere-opensource-src-4.8.7/src/src.pro
--- qt-everywhere-opensource-src-4.8.7.orig/src/src.pro	2017-08-18 10:54:46.487887069 +0200
+++ qt-everywhere-opensource-src-4.8.7/src/src.pro	2017-08-18 10:58:21.313281563 +0200
@@ -4,7 +4,7 @@
 unset(SRC_SUBDIRS)
 win32:SRC_SUBDIRS += src_winmain

 !contains(QT_CONFIG, no-tga):SUBDIRS += tga
diff -burN qt-everywhere-opensource-src-4.8.7.orig/src/plugins/plugins.pro qt-everywhere-opensource-src-4.8.7/src/plugins/plugins.pro
--- qt-everywhere-opensource-src-4.8.7.orig/src/plugins/plugins.pro	2017-08-18 10:54:45.599881309 +0200
+++ qt-everywhere-opensource-src-4.8.7/src/plugins/plugins.pro	2017-08-21 16:51:32.037064450 +0200
@@ -1,16 +1,16 @@
 TEMPLATE = subdirs
 
