ports/www/qt6-webengine/files/patch-configure.cmake
Jason E. Hale 66b0e0515e Qt: Update Qt6 to 6.5.2
As a patch release, Qt 6.5.2 does not introduce any new features but
contains about 290 bug fixes, security updates, and other improvements
to the top of the Qt 6.5.1 release. See more information about the most
important changes and bug fixes from Qt 6.5.2 release note.

Announcement:	https://www.qt.io/blog/qt-6.5.2-released-1
Release note:	https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.5.2/release-note.md
2023-07-27 18:10:42 -04:00

44 lines
1.6 KiB
CMake

--- configure.cmake.orig 2023-07-07 17:40:32 UTC
+++ configure.cmake
@@ -66,7 +66,7 @@ endif()
endif()
#### Tests
-if(LINUX)
+if(LINUX OR FREEBSD)
check_for_ulimit()
endif()
@@ -434,7 +434,7 @@ qt_feature("webengine-ozone-x11" PRIVATE
qt_feature("webengine-ozone-x11" PRIVATE
LABEL "Support GLX on qpa-xcb"
- CONDITION LINUX
+ CONDITION LINUX OR FREEBSD
AND TARGET Qt::Gui
AND QT_FEATURE_xcb
AND X11_FOUND
@@ -471,12 +471,12 @@ add_check_for_support(
)
add_check_for_support(
MODULES QtWebEngine
- CONDITION LINUX OR (WIN32 AND NOT WIN_ARM_64) OR MACOS
+ CONDITION LINUX OR (WIN32 AND NOT WIN_ARM_64) OR MACOS OR FREEBSD
MESSAGE "Build can be done only on Linux, Windows or macOS."
)
add_check_for_support(
MODULES QtPdf
- CONDITION LINUX OR (WIN32 AND NOT WIN_ARM_64) OR MACOS OR IOS OR (ANDROID AND NOT CMAKE_HOST_WIN32)
+ CONDITION LINUX OR (WIN32 AND NOT WIN_ARM_64) OR MACOS OR IOS OR (ANDROID AND NOT CMAKE_HOST_WIN32) OR FREEBSD
MESSAGE "Build can be done only on Linux, Windows, macO, iOS and Android(on non-Windows hosts only)."
)
if(LINUX AND CMAKE_CROSSCOMPILING)
@@ -582,6 +582,8 @@ add_check_for_support(
CONDITION
(LINUX AND CMAKE_CXX_COMPILER_ID STREQUAL GNU) OR
(LINUX AND CMAKE_CXX_COMPILER_ID STREQUAL Clang) OR
+ (FREEBSD AND CMAKE_CXX_COMPILER_ID STREQUAL GNU) OR
+ (FREEBSD AND CMAKE_CXX_COMPILER_ID STREQUAL Clang) OR
(WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL MSVC) OR
(WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL Clang AND
CMAKE_CXX_SIMULATE_ID STREQUAL MSVC) OR