The Extra Cmake Modules package contains extra CMake modules used by KDE Frameworks 5 and other packages.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://download.kde.org/stable/frameworks/5.103/extra-cmake-modules-5.103.0.tar.xz
Download MD5 sum: ac7d7a883f8ecd2dab262a284981ad64
Download size: 324 KB
Estimated disk space required: 8.8 MB
Estimated build time: less than 0.1 SBU
sphinx-6.1.3 (for building documentation) and PyQt (experimental support for building KDE Python bindings)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/extra-cmake-modules
Install 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.in && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make
This package does not come with a test suite.
Unlike other KF5 packages, this module is installed in /usr because it can be used by some non-KF5 packages.
Now, as the root
user:
make install
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/kf5
and would
fail to build if it is set to something else.