mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-05 19:43:07 +02:00
qtutilities: fix cross build qt6-tools
This commit is contained in:
parent
f6094c88cb
commit
180fa6e3e5
2 changed files with 13 additions and 1 deletions
12
srcpkgs/qtutilities/patches/linguist.patch
Normal file
12
srcpkgs/qtutilities/patches/linguist.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- a/cmake/modules/QtConfig.cmake
|
||||
+++ b/cmake/modules/QtConfig.cmake
|
||||
@@ -495,6 +495,9 @@ if (ENABLE_QT_TRANSLATIONS AND TS_FILES)
|
||||
set(APP_SPECIFIC_QT_TRANSLATIONS_AVAILABLE YES)
|
||||
|
||||
# require the LinguistTools module (not adding it to QT_MODULES because we don't link against it)
|
||||
+ if ("${QT_PACKAGE_PREFIX}" STREQUAL "Qt6")
|
||||
+ find_package(Qt6 OPTIONAL_COMPONENTS Linguist CONFIG)
|
||||
+ endif()
|
||||
find_package("${QT_LINGUIST_TOOLS_PACKAGE}")
|
||||
if (NOT "${${QT_LINGUIST_TOOLS_PACKAGE}_FOUND}" AND QT_HOST_PATH)
|
||||
# find the module within the host path when set (required for cross compilation with Qt 6 as the module is absent in
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'qtutilities'
|
||||
pkgname=qtutilities
|
||||
version=6.18.0
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=cmake
|
||||
configure_args="-DBUILD_SHARED_LIBS=ON -DQT_PACKAGE_PREFIX=Qt6"
|
||||
hostmakedepends="qt6-base qt6-tools"
|
||||
|
|
Loading…
Add table
Reference in a new issue