diff --git a/classes/cmake_kf5.bbclass b/classes/cmake_kf5.bbclass new file mode 100644 index 0000000..c606a78 --- /dev/null +++ b/classes/cmake_kf5.bbclass @@ -0,0 +1,10 @@ +inherit cmake_qt5 + +EXTRA_OECMAKE += " \ + -DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST}" + +# This function is rather offensive right now, but it seems to work +do_install_prepend() { + sed -i 's/\"\/usr\//\"\$\{OE_KF5_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr) + sed -i 's/\;\/usr\//\;\$\{OE_KF5_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr) +} diff --git a/recipes-kf5/tier1/attica.inc b/recipes-kf5/tier1/attica.inc index 25af950..2a617ca 100644 --- a/recipes-kf5/tier1/attica.inc +++ b/recipes-kf5/tier1/attica.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/attica" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5Attica/*.cmake \ diff --git a/recipes-kf5/tier1/karchive.inc b/recipes-kf5/tier1/karchive.inc index 9709599..1145b87 100644 --- a/recipes-kf5/tier1/karchive.inc +++ b/recipes-kf5/tier1/karchive.inc @@ -10,7 +10,7 @@ DEPENDS = "ecm zlib bzip2 xz qtbase" GIT_REPO = "git://anongit.kde.org/karchive;protocol=git" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5Archive/*.cmake \ diff --git a/recipes-kf5/tier1/kcodecs.inc b/recipes-kf5/tier1/kcodecs.inc index 9b9c2ad..78a951f 100644 --- a/recipes-kf5/tier1/kcodecs.inc +++ b/recipes-kf5/tier1/kcodecs.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kcodecs" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5Codecs/*.cmake \ diff --git a/recipes-kf5/tier1/kcoreaddons.inc b/recipes-kf5/tier1/kcoreaddons.inc index b5299ad..dc676d9 100644 --- a/recipes-kf5/tier1/kcoreaddons.inc +++ b/recipes-kf5/tier1/kcoreaddons.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kcoreaddons" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5CoreAddons/*.cmake \ diff --git a/recipes-kf5/tier1/kdbusaddons.inc b/recipes-kf5/tier1/kdbusaddons.inc index 2f376b2..49c54e4 100644 --- a/recipes-kf5/tier1/kdbusaddons.inc +++ b/recipes-kf5/tier1/kdbusaddons.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kdbusaddons" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5DBusAddons/*.cmake \ diff --git a/recipes-kf5/tier1/kdnssd.inc b/recipes-kf5/tier1/kdnssd.inc index cf8eef7..57d2602 100644 --- a/recipes-kf5/tier1/kdnssd.inc +++ b/recipes-kf5/tier1/kdnssd.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kdnssd" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5DNSSD/*.cmake \ diff --git a/recipes-kf5/tier1/kglobalaccel.inc b/recipes-kf5/tier1/kglobalaccel.inc index ed4145a..0c9ae84 100644 --- a/recipes-kf5/tier1/kglobalaccel.inc +++ b/recipes-kf5/tier1/kglobalaccel.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase qtx11extras" GIT_REPO = "git://anongit.kde.org/kglobalaccel" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5GlobalAccel/*.cmake \ diff --git a/recipes-kf5/tier1/kguiaddons.inc b/recipes-kf5/tier1/kguiaddons.inc index 484827c..903482b 100644 --- a/recipes-kf5/tier1/kguiaddons.inc +++ b/recipes-kf5/tier1/kguiaddons.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kguiaddons" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5GuiAddons/*.cmake \ diff --git a/recipes-kf5/tier1/ki18n.inc b/recipes-kf5/tier1/ki18n.inc index f97a601..c1d3c13 100644 --- a/recipes-kf5/tier1/ki18n.inc +++ b/recipes-kf5/tier1/ki18n.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase qtscript" GIT_REPO = "git://anongit.kde.org/ki18n" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 inherit perlnative FILES_${PN}-dev += " \ diff --git a/recipes-kf5/tier1/kidletime.inc b/recipes-kf5/tier1/kidletime.inc index 51d8033..f04e76e 100644 --- a/recipes-kf5/tier1/kidletime.inc +++ b/recipes-kf5/tier1/kidletime.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kidletime" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5IdleTime/*.cmake \ diff --git a/recipes-kf5/tier1/kimageformats.inc b/recipes-kf5/tier1/kimageformats.inc index 4c4c3d1..fcf97d1 100644 --- a/recipes-kf5/tier1/kimageformats.inc +++ b/recipes-kf5/tier1/kimageformats.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kimageformats" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5ImageFormats/*.cmake \ diff --git a/recipes-kf5/tier1/kitemmodels.inc b/recipes-kf5/tier1/kitemmodels.inc index 1abfdab..53b655f 100644 --- a/recipes-kf5/tier1/kitemmodels.inc +++ b/recipes-kf5/tier1/kitemmodels.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kitemmodels" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5ItemModels/*.cmake \ diff --git a/recipes-kf5/tier1/kitemviews.inc b/recipes-kf5/tier1/kitemviews.inc index d36b128..d00e19a 100644 --- a/recipes-kf5/tier1/kitemviews.inc +++ b/recipes-kf5/tier1/kitemviews.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kitemviews" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5ItemViews/*.cmake \ diff --git a/recipes-kf5/tier1/kplotting.inc b/recipes-kf5/tier1/kplotting.inc index 4035088..f8d018d 100644 --- a/recipes-kf5/tier1/kplotting.inc +++ b/recipes-kf5/tier1/kplotting.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kplotting" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5Plotting/*.cmake \ diff --git a/recipes-kf5/tier1/kwidgetsaddons.inc b/recipes-kf5/tier1/kwidgetsaddons.inc index 54642ca..0e4c1f9 100644 --- a/recipes-kf5/tier1/kwidgetsaddons.inc +++ b/recipes-kf5/tier1/kwidgetsaddons.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kwidgetsaddons" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5WidgetsAddons/*.cmake \ diff --git a/recipes-kf5/tier1/kwindowsystem.inc b/recipes-kf5/tier1/kwindowsystem.inc index cd0fd47..5ddff12 100644 --- a/recipes-kf5/tier1/kwindowsystem.inc +++ b/recipes-kf5/tier1/kwindowsystem.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/kwindowsystem" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5WindowSystem/*.cmake \ diff --git a/recipes-kf5/tier1/solid.inc b/recipes-kf5/tier1/solid.inc index de0e3b5..8d8640a 100644 --- a/recipes-kf5/tier1/solid.inc +++ b/recipes-kf5/tier1/solid.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/solid" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5Solid/*.cmake \ diff --git a/recipes-kf5/tier1/threadweaver.inc b/recipes-kf5/tier1/threadweaver.inc index 045fa44..3eec83a 100644 --- a/recipes-kf5/tier1/threadweaver.inc +++ b/recipes-kf5/tier1/threadweaver.inc @@ -10,7 +10,7 @@ DEPENDS = "qtbase" GIT_REPO = "git://anongit.kde.org/threadweaver" S = "${WORKDIR}/git" -inherit cmake_qt5 +inherit cmake_kf5 FILES_${PN}-dev += " \ ${libdir}/cmake/KF5ThreadWeaver/*.cmake \