ports/graphics/luminance-qt5/files/patch-CMakeLists.txt
Dima Panov 9b77fbd3f3
graphics/luminance-qt5: unbreak build with boost-1.85
With hat:	office
Sponsored by:	Future Crew, LLC
2024-10-03 13:24:55 +03:00

46 lines
2.1 KiB
Text

--- CMakeLists.txt.orig 2021-01-11 09:41:28 UTC
+++ CMakeLists.txt
@@ -64,6 +64,7 @@ find_package(Qt5Gui 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
@@ -76,6 +77,8 @@ endif()
find_package(Qt5WebKitWidgets REQUIRED)
add_definitions(-DUSE_DEPRECATED_QTWEBKIT)
endif()
+ add_definitions(-DWITH_HELPBROWSER)
+endif()
find_package(Qt5Xml REQUIRED)
find_package(Qt5Sql REQUIRED)
find_package(Qt5Svg REQUIRED)
@@ -345,7 +348,6 @@ IF(APPLE)
FILE(COPY
${CMAKE_SOURCE_DIR}/AUTHORS
${CMAKE_SOURCE_DIR}/README.md
- ${CMAKE_SOURCE_DIR}/LICENSE
${CMAKE_SOURCE_DIR}/Changelog
DESTINATION ${LHDR_OSX_EXECUTABLE_NAME}.app/Contents
)
@@ -416,9 +418,8 @@ ELSEIF(UNIX)
INSTALL(FILES
${CMAKE_SOURCE_DIR}/AUTHORS
${CMAKE_SOURCE_DIR}/README.md
- ${CMAKE_SOURCE_DIR}/LICENSE
${CMAKE_SOURCE_DIR}/Changelog
- DESTINATION share/luminance-hdr/doc) #info files
+ DESTINATION share/doc/luminance-hdr) #info files
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/help DESTINATION share/luminance-hdr) # help directory
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/hdrhtml DESTINATION share/luminance-hdr) # hdrhtml directory
# Microsoft Windows
@@ -508,7 +509,6 @@ ELSEIF(WIN32)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/program-icons/luminance-hdr.png DESTINATION ./icons/hicolor/48x48/apps) # icon
INSTALL(FILES ${CMAKE_SOURCE_DIR}/AUTHORS
${CMAKE_SOURCE_DIR}/README.md
- ${CMAKE_SOURCE_DIR}/LICENSE
${CMAKE_SOURCE_DIR}/Changelog
DESTINATION ./) #info files
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/icons DESTINATION ./) # icons directory