diff --git a/SuperBuild/patches/QT5/qt5-2-png-freetype-detection-all.diff b/SuperBuild/patches/QT5/qt5-2-png-freetype-detection-all.diff new file mode 100644 index 0000000000000000000000000000000000000000..25ed6ae8602e71e71803ae8187d92e5f3908f750 --- /dev/null +++ b/SuperBuild/patches/QT5/qt5-2-png-freetype-detection-all.diff @@ -0,0 +1,30 @@ +diff -burN qt-everywhere-src-5.14.1_orig/qtbase/src/gui/configure.json qt-everywhere-src-5.14.1/qtbase/src/gui/configure.json--- qt-everywhere-src-5.14.1_orig/qtbase/src/gui/configure.json 2020-07-27 18:13:35.779000908 +0200 ++++ qt-everywhere-src-5.14.1/qtbase/src/gui/configure.json 2020-07-27 18:18:11.226987484 +0200 +@@ -239,10 +239,10 @@ + }, + "headers": "ft2build.h", + "sources": [ +- { "type": "pkgConfig", "args": "freetype2" }, + { "type": "freetype", "libs": "-lfreetype", "condition": "!config.wasm" }, + { "libs": "-s USE_FREETYPE=1", "condition": "config.wasm" }, +- { "libs": "-lfreetype" } ++ { "libs": "-lfreetype" }, ++ { "type": "pkgConfig", "args": "freetype2" } + ], + "use": [ + { "lib": "zlib", "condition": "features.system-zlib" } +@@ -397,12 +397,12 @@ + }, + "headers": "png.h", + "sources": [ +- { "type": "pkgConfig", "args": "libpng" }, + { "libs": "-llibpng16", "condition": "config.msvc" }, + { "libs": "-llibpng", "condition": "config.msvc" }, + { "libs": "-lpng16", "condition": "!config.msvc" }, + { "libs": "-lpng", "condition": "!config.msvc" }, +- { "libs": "-s USE_LIBPNG=1", "condition": "config.wasm" } ++ { "libs": "-s USE_LIBPNG=1", "condition": "config.wasm" }, ++ { "type": "pkgConfig", "args": "libpng" } + ], + "use": [ + { "lib": "zlib", "condition": "features.system-zlib" }