Add patch for qt 6.10
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: libqtxdg
|
name: libqtxdg
|
||||||
description: Qt implementation of freedesktop.org xdg specs
|
description: Qt implementation of freedesktop.org xdg specs
|
||||||
version: 4.2.0
|
version: 4.2.0
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://github.com/lxqt/libqtxdg
|
url: https://github.com/lxqt/libqtxdg
|
||||||
license: LGP2.1-or-later
|
license: LGP2.1-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
diff -ru libqtxdg-4.2.0.orig/CMakeLists.txt libqtxdg-4.2.0/CMakeLists.txt
|
||||||
|
--- libqtxdg-4.2.0.orig/CMakeLists.txt 2025-10-05 10:33:04.762455622 +0200
|
||||||
|
+++ libqtxdg-4.2.0/CMakeLists.txt 2025-10-05 10:34:45.318683750 +0200
|
||||||
|
@@ -26,6 +26,9 @@
|
||||||
|
find_package(Qt6 ${QT_MINIMUM_VERSION} CONFIG REQUIRED Widgets Svg Xml DBus)
|
||||||
|
find_package(GLIB ${GLIB_MINIMUM_VERSION} REQUIRED COMPONENTS gobject gio gio-unix)
|
||||||
|
find_package(XTerm)
|
||||||
|
+if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10)
|
||||||
|
+ find_package(Qt6 COMPONENTS GuiPrivate REQUIRED)
|
||||||
|
+endif()
|
||||||
|
|
||||||
|
include(GNUInstallDirs) # Standard directories for installation
|
||||||
|
include(CMakePackageConfigHelpers)
|
||||||
|
diff -ru libqtxdg-4.2.0.orig/src/xdgiconloader/CMakeLists.txt libqtxdg-4.2.0/src/xdgiconloader/CMakeLists.txt
|
||||||
|
--- libqtxdg-4.2.0.orig/src/xdgiconloader/CMakeLists.txt 2025-10-05 10:33:04.772910866 +0200
|
||||||
|
+++ libqtxdg-4.2.0/src/xdgiconloader/CMakeLists.txt 2025-10-05 10:38:24.333285939 +0200
|
||||||
|
@@ -54,6 +54,9 @@
|
||||||
|
Qt6::Gui
|
||||||
|
Qt6::Svg
|
||||||
|
)
|
||||||
|
+if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10)
|
||||||
|
+ target_link_libraries(${QTXDGX_ICONLOADER_LIBRARY_NAME} PUBLIC Qt6::GuiPrivate)
|
||||||
|
+endif()
|
||||||
|
|
||||||
|
set_target_properties(${QTXDGX_ICONLOADER_LIBRARY_NAME}
|
||||||
|
PROPERTIES
|
||||||
@@ -2,6 +2,13 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
|
# The prepare function is executed in the root of the temp directory
|
||||||
|
# This function is used for putting downloaded files to the correct location or applying patches
|
||||||
|
prepare() {
|
||||||
|
cd "$BPM_SOURCE"
|
||||||
|
patch -Np1 -i "$BPM_WORKDIR"/qt-6.10.patch
|
||||||
|
}
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
|
|||||||
Reference in New Issue
Block a user