ports/graphics/luminance-qt5/files/patch-CMakeLists.txt
Alexey Dokuchaev 5845c06cfb - Belatedly update Luminance HDR to the latest version 2.6.1.1
- Allow to build without internal help browser: it requires rather
  heavy QtWebEngine component which currently is also deprecated
- Optionize FITS support; drop no longer needed PKGNAMESUFFIX and
  CONFLICTS_INSTALL knobs

PR:	239887
2021-05-14 18:06:43 +00:00

19 lines
853 B
Text

--- CMakeLists.txt.orig 2021-01-11 09:41:28 UTC
+++ CMakeLists.txt
@@ -64,6 +64,7 @@ find_package(Qt5Core REQUIRED)
find_package(Qt5Concurrent REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Gui REQUIRED)
+if (WITH_HELPBROWSER)
# QtWebEngine is preferred web engine because QtWebKit is deprecated since Qt 5.5:
# https://wiki.qt.io/New-Features-in-Qt-5.5#Deprecated_Functionality. Unfortunately,
# some Qt distributions still provide QtWebKit instead of QtWebEngine. So first we
@@ -75,6 +76,8 @@ else()
find_package(Qt5WebKit REQUIRED)
find_package(Qt5WebKitWidgets REQUIRED)
add_definitions(-DUSE_DEPRECATED_QTWEBKIT)
+endif()
+ add_definitions(-DWITH_HELPBROWSER)
endif()
find_package(Qt5Xml REQUIRED)
find_package(Qt5Sql REQUIRED)