The Extra Cmake Modules package contains extra CMake modules used by KDE Frameworks and other packages.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://download.kde.org/stable//extra-cmake-modules-6.20.0.tar.xz
Download SHA256 Sum: 3711de8572db5da618efe3f28cc094ca25a1abb0bddffc63dced12c4f8caae5f
Download MD5 sum: f8f4244ee36b34cc4259adc117e0adb8
Download size: 1,289.7 KB
Estimated disk space required: 2,225.5 KB
Estimated build time: less than 0.1 SBU
PyQt (experimental support for building KDE Python bindings), and ReuseTool (for running internal tests)
Prepare Extra Cmake Modules by running the following commands:
sed -i '/"lib64"/s/64//' kde-modules/KDEInstallDirsCommon.cmake
sed -e '/PACKAGE_INIT/i set(SAVE_PACKAGE_PREFIX_DIR "${PACKAGE_PREFIX_DIR}")' \
-e '/^include/a set(PACKAGE_PREFIX_DIR "${SAVE_PACKAGE_PREFIX_DIR}")' \
-i ECMConfig.cmake.incmake -B build \
-D CMAKE_INSTALL_PREFIX=/usr \
-D BUILD_WITH_QT6=ON \
-D DOC_INSTALL_DIR=/usr/share/doc/extra-cmake-modules-6.20.0Now Build the package, issue:
cmake --build build
This package does not come with a test suite.
![[Note]](../images/note.png)
Unlike other KF6 packages, this module is installed in /usr because it can be used by some non-KF6 packages.
Now Install the package, as the root user:
cmake --install build
sed ... Modules/KDEInstallDirs.cmake:
This command disables applications using cmake from attempting to
install files in a lib64
sub-directory.
sed ... ECMConfig.cmake.in:
This command protects the global cmake
variable PACKAGE_PREFIX_DIR from being changed when
checking ECM presence: since we install ECM into /usr, the check would set that variable to
/usr, while most KDE packages
expect it to be set to /opt/kf6
and would fail to build if it is set to something else.
-D DOC_INSTALL-DIR=/usr/share/doc/extra...:
This switch allows installing the documentation (which is built if
"sphinx" is installed) in a versioned directory.