Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions ports/kf5configwidgets/add_support_for_static_builds.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
From 743ec1f30b449b048c942f194ad665bf2170bbf1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dawid=20Wro=CC=81bel?= <me@dawidwrobel.com>
Date: Thu, 26 Aug 2021 16:48:23 +0200
Subject: [PATCH] Add support for static builds

---
KF5ConfigWidgetsConfig.cmake.in | 14 ++++++++++++++
1 file changed, 14 insertions(+)

diff --git a/KF5ConfigWidgetsConfig.cmake.in b/KF5ConfigWidgetsConfig.cmake.in
index 57c83f0..78fc736 100644
--- a/KF5ConfigWidgetsConfig.cmake.in
+++ b/KF5ConfigWidgetsConfig.cmake.in
@@ -8,5 +8,19 @@ find_dependency(KF5Codecs "@KF_DEP_VERSION@")
find_dependency(KF5Config "@KF_DEP_VERSION@")
find_dependency(KF5WidgetsAddons "@KF_DEP_VERSION@")

+
+if (NOT @BUILD_SHARED_LIBS@)
+ find_dependency(Qt5Widgets "@REQUIRED_QT_VERSION@")
+
+ if (NOT ANDROID)
+ find_dependency(Qt5DBus "@REQUIRED_QT_VERSION@")
+ endif()
+
+ find_dependency(KF5CoreAddons "@KF_DEP_VERSION@")
+ find_dependency(KF5GuiAddons "@KF_DEP_VERSION@")
+ find_dependency(KF5I18n "@KF_DEP_VERSION@")
+endif()
+
+
include("${CMAKE_CURRENT_LIST_DIR}/KF5ConfigWidgetsTargets.cmake")
@PACKAGE_INCLUDE_QCHTARGETS@
--
GitLab

38 changes: 38 additions & 0 deletions ports/kf5configwidgets/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/kconfigwidgets
REF v5.84.0
SHA512 da03f4cfc2a64b3ccccfe2b6b7f392f84aba2b975edbf6a5b08a14604ccb565a4491c7eb707af7191345b55ca81e864b7ee13fe648589a56f3226c26160ed024
HEAD_REF master
PATCHES
add_support_for_static_builds.patch # https://invent.kde.org/frameworks/kconfigwidgets/-/merge_requests/71
)

vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
designerplugin BUILD_DESIGNERPLUGIN
)

vcpkg_cmake_configure(
DISABLE_PARALLEL_CONFIGURE
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
-DKDE_INSTALL_PLUGINDIR=plugins
-DKDE_INSTALL_QTPLUGINDIR=plugins
${FEATURE_OPTIONS}
)

vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5ConfigWidgets CONFIG_PATH lib/cmake/KF5ConfigWidgets)
vcpkg_copy_pdbs()

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

file(INSTALL "${SOURCE_PATH}/LICENSES/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
37 changes: 37 additions & 0 deletions ports/kf5configwidgets/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "kf5configwidgets",
"version-semver": "5.84.0",
"description": "Widgets for configuration dialogs",
"homepage": "https://api.kde.org/frameworks/kconfigwidgets/html/index.html",
"dependencies": [
"ecm",
{
"name": "gettext",
"host": true,
"features": [
"tools"
]
},
"kf5auth",
"kf5codecs",
"kf5config",
"kf5guiaddons",
"kf5i18n",
"kf5widgetsaddons",
"qt5-base",
"qt5-tools",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"designerplugin": {
"description": "Enables a Qt Designer plugin"
}
}
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2904,6 +2904,10 @@
"baseline": "5.84.0",
"port-version": 1
},
"kf5configwidgets": {
"baseline": "5.84.0",
"port-version": 0
},
"kf5coreaddons": {
"baseline": "5.84.0",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/k-/kf5configwidgets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "99dcbe4e7cb84be45f9869e441c274e44309291d",
"version-semver": "5.84.0",
"port-version": 0
}
]
}