diff --git a/recipes-extended/libcall-ui/libcall-ui/0001-build-as-package.patch b/recipes-extended/libcall-ui/libcall-ui/0001-build-as-package.patch new file mode 100644 index 0000000..d339dfa --- /dev/null +++ b/recipes-extended/libcall-ui/libcall-ui/0001-build-as-package.patch @@ -0,0 +1,32 @@ +From 02fee99a4be76b1db07f27cad68986061168e7e1 Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Tue, 20 Aug 2024 11:57:39 +0200 +Subject: [PATCH] build as package + +--- + meson.build | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/meson.build b/meson.build +index d33614b..d3e068d 100644 +--- a/meson.build ++++ b/meson.build +@@ -19,6 +19,8 @@ systemduserdir = join_paths(systemddir, 'user') + + root_inc = include_directories('.') + ++pkgconfig = import ('pkgconfig') ++ + cc = meson.get_compiler('c') + + global_c_args = [] +@@ -113,4 +115,6 @@ summary = [ + '-----------', + ] + ++pkgconfig.generate(call_ui_lib) ++ + message('\n'.join(summary)) +-- +2.45.2 + diff --git a/recipes-extended/libcall-ui/libcall-ui_git.bb b/recipes-extended/libcall-ui/libcall-ui_git.bb new file mode 100644 index 0000000..2a4c02b --- /dev/null +++ b/recipes-extended/libcall-ui/libcall-ui_git.bb @@ -0,0 +1,30 @@ +SUMMARY = "Libcall-ui carries common user interface parts for call handling. It is meant to be used as a git submodule." +HOMEPAGE = "https://gitlab.gnome.org/World/Phosh/libcall-ui" +LICENSE = "LGPL-2.1-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" + +DEPENDS = "glib-2.0 libhandy gtk+3 callaudiod" + +inherit meson pkgconfig gi-docgen gobject-introspection + +SRC_URI = " \ + git://gitlab.gnome.org/World/Phosh/libcall-ui.git;protocol=https;branch=libcall-ui-0.1.x \ + file://0001-build-as-package.patch \ +" + +S = "${WORKDIR}/git" +PV = "0.1.3" +SRCREV = "60870e871e480e111e6a2fa50de67d1dd358d65a" + +GIR_MESON_OPTION = '' + +do_install:append() { +install -d ${D}${includedir} + install -m 0644 ${B}/src/libcall-ui.a ${D}${libdir} + cp -rf ${B}/src/libcall-ui.a.p ${D}${libdir} + install -m 0644 ${B}/cui-config.h ${D}${includedir} + install -m 0644 ${S}/src/*.h ${D}${includedir} + install -m 0644 ${B}/src/*.h ${D}${includedir} +} + +FILES:${PN} += "${libdir}/libcall-ui.a.p"