From 9f7387d2c25795c32ae160025f2160473039d54b Mon Sep 17 00:00:00 2001 From: Andreas Cord-Landwehr Date: Sun, 4 Sep 2022 11:17:26 +0200 Subject: [PATCH] Import qca package from meta-kde --- recipes-support/qca.inc | 33 +++++++++++++++++++++++++++++++++ recipes-support/qca_2.3.4.bb | 5 +++++ 2 files changed, 38 insertions(+) create mode 100644 recipes-support/qca.inc create mode 100644 recipes-support/qca_2.3.4.bb diff --git a/recipes-support/qca.inc b/recipes-support/qca.inc new file mode 100644 index 0000000..4ff96fe --- /dev/null +++ b/recipes-support/qca.inc @@ -0,0 +1,33 @@ +# SPDX-FileCopyrightText: 2019-2020 Volker Krause +# +# SPDX-License-Identifier: MIT + +DESCRIPTION = "QCA" +HOMEPAGE = "https://invent.kde.org/libraries/qca/" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" +PR = "r0" + +DEPENDS = "qtbase" + +SRC_URI = "git://invent.kde.org/libraries/${BPN};nobranch=1;protocol=https" +S = "${WORKDIR}/git" + +inherit cmake_qt5 +inherit pkgconfig + +do_install:prepend() { + if [ "0" -ne $(find . -name \*.cmake | grep _usr | wc -l) ]; then + sed -i 's/\"\/usr\//\"\$\{OE_QCA_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr) + sed -i 's/\;\/usr\//\;\$\{OE_QCA_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr) + fi +} + +FILES:${PN} += " \ + ${libdir}/qca-qt5/crypto/libqca-*.so \ +" + +FILES:${PN}-dev += " \ + ${prefix}/mkspecs/features/* \ + ${libdir}/cmake/Qca-qt5/*.cmake \ +" diff --git a/recipes-support/qca_2.3.4.bb b/recipes-support/qca_2.3.4.bb new file mode 100644 index 0000000..6a97c11 --- /dev/null +++ b/recipes-support/qca_2.3.4.bb @@ -0,0 +1,5 @@ +# SPDX-FileCopyrightText: none +# SPDX-License-Identifier: CC0-1.0 + +require ${BPN}.inc +SRCREV = "c4c772094d78160464aaefa5208230436c9daa12"