[2/5] Add first KF5 package : extra-cmake-modules

Message ID 20180215204815.14707-2-pinaraf@pinaraf.info
State New
Headers show
Series
  • [1/5] Introduce KDE Frameworks 5 packages
Related show

Commit Message

Pierre Feb. 15, 2018, 8:48 p.m.
extra-cmake-modules contains several additional CMake modules used by the
other KF5 packages. It does not install anything on the target and contain
only CMake files for the host.

Signed-off-by: Pierre Ducroquet <pinaraf@pinaraf.info>
---
 package/kf5/Config.in                                   |  1 +
 package/kf5/kf5-extra-cmake-modules/Config.in           | 11 +++++++++++
 .../kf5-extra-cmake-modules.hash                        |  2 ++
 .../kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk  | 17 +++++++++++++++++
 4 files changed, 31 insertions(+)
 create mode 100644 package/kf5/kf5-extra-cmake-modules/Config.in
 create mode 100644 package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.hash
 create mode 100644 package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk

Patch

diff --git a/package/kf5/Config.in b/package/kf5/Config.in
index 4e6ee3a107..89d8c7a140 100644
--- a/package/kf5/Config.in
+++ b/package/kf5/Config.in
@@ -6,4 +6,5 @@  menuconfig BR2_PACKAGE_KF5
 	  select which modules should be built.
 
 if BR2_PACKAGE_KF5
+source "package/kf5/kf5-extra-cmake-modules/Config.in"
 endif
diff --git a/package/kf5/kf5-extra-cmake-modules/Config.in b/package/kf5/kf5-extra-cmake-modules/Config.in
new file mode 100644
index 0000000000..3319ccf2c7
--- /dev/null
+++ b/package/kf5/kf5-extra-cmake-modules/Config.in
@@ -0,0 +1,11 @@ 
+config BR2_PACKAGE_KF5_EXTRA_CMAKE_MODULES
+	bool "kf5-extra-cmake-modules"
+	help
+	  KF5 is a set of Qt framework addons, extending Qt in
+	  various ways, not only restricted in helping integration
+	  in KDE.
+	  
+	  This package corresponds to the extra CMake modules, required
+	  for most KF5 libraries.
+
+	  https://api.kde.org/frameworks/extra-cmake-modules/html/index.html
diff --git a/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.hash b/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.hash
new file mode 100644
index 0000000000..4481b80af7
--- /dev/null
+++ b/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.hash
@@ -0,0 +1,2 @@ 
+# Locally calculated
+sha256 5757a5ddceede5321b58345a8dbf953c2282487bf9c24ae477efde800b94fffd extra-cmake-modules-5.43.0.tar.xz
diff --git a/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk b/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk
new file mode 100644
index 0000000000..7b96e1f1bb
--- /dev/null
+++ b/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk
@@ -0,0 +1,17 @@ 
+################################################################################
+#
+# kf5-extra-cmake-modules
+#
+################################################################################
+
+KF5_EXTRA_CMAKE_MODULES_VERSION = $(KF5_VERSION)
+KF5_EXTRA_CMAKE_MODULES_SITE = $(KF5_SITE)
+KF5_EXTRA_CMAKE_MODULES_SOURCE = extra-cmake-modules-$(KF5_EXTRA_CMAKE_MODULES_VERSION).tar.xz
+KF5_EXTRA_CMAKE_MODULES_LICENSE = BSD-3-Clause
+KF5_EXTRA_CMAKE_MODULES_LICENSE_FILE = COPYING-CMAKE-SCRIPTS
+
+KF5_EXTRA_CMAKE_MODULES_DEPENDENCIES = host-pkgconf
+KF5_EXTRA_CMAKE_MODULES_INSTALL_STAGING = YES
+KF5_EXTRA_CMAKE_MODULES_INSTALL_TARGET = NO
+
+$(eval $(cmake-package))