summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.20.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.20.3.bb')
-rw-r--r--meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.20.3.bb49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.20.3.bb b/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.20.3.bb
new file mode 100644
index 0000000000..e0aca558fd
--- /dev/null
+++ b/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.20.3.bb
@@ -0,0 +1,49 @@
1SUMMARY = "A portal frontend service for Flatpak and possibly other desktop containment frameworks."
2HOMEPAGE = "https://github.com/flatpak/xdg-desktop-portal"
3LICENSE = "LGPL-2.1-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
5
6REQUIRED_DISTRO_FEATURES = "polkit"
7
8DEPENDS = " \
9 json-glib \
10 glib-2.0 \
11 glib-2.0-native \
12 flatpak \
13 libportal \
14 geoclue \
15 pipewire \
16 fuse3 \
17 xmlto-native \
18"
19
20PORTAL_BACKENDS ?= " \
21 ${@bb.utils.contains('DISTRO_FEATURES', 'gtk+3', 'xdg-desktop-portal-gtk', '', d)} \
22 ${@bb.utils.contains('DISTRO_FEATURES', 'gtk4', 'xdg-desktop-portal-gtk', '', d)} \
23"
24
25RDEPENDS:${PN} = "bubblewrap rtkit ${PORTAL_BACKENDS} fuse3-utils"
26
27inherit meson pkgconfig python3native features_check
28
29SRC_URI = " \
30 git://github.com/flatpak/xdg-desktop-portal.git;protocol=https;branch=xdg-desktop-portal-1.20 \
31 file://0001-meson.build-add-a-hack-for-crosscompile.patch \
32"
33
34SRCREV = "23a76c392170dbbd26230f85ef56c3a57e52b857"
35
36FILES:${PN} += "${libdir}/systemd ${datadir}/dbus-1"
37
38EXTRA_OEMESON += " \
39 --cross-file=${WORKDIR}/meson-${PN}.cross \
40 -Ddbus-service-dir=${datadir}/dbus-1/services \
41 -Dtests=disabled \
42"
43
44do_write_config:append() {
45 cat >${WORKDIR}/meson-${PN}.cross <<EOF
46[binaries]
47bwrap = '${bindir}/bwrap'
48EOF
49}