1SUMMARY = "GNOME library for reading .desktop files"
2SECTION = "x11/gnome"
3LICENSE = "GPL-2.0-only & LGPL-2.0-only"
4LIC_FILES_CHKSUM = " \
5    file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
6    file://COPYING.LIB;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
7"
8
9GNOMEBASEBUILDCLASS = "meson"
10
11inherit gnomebase itstool pkgconfig upstream-version-is-even gobject-introspection features_check gtk-doc
12
13REQUIRED_DISTRO_FEATURES = "x11 opengl"
14
15GIR_MESON_OPTION = ""
16
17SRC_URI += "file://gnome-desktop-thumbnail-don-t-assume-time_t-is-long.patch \
18            file://0001-meson-Add-riscv32-to-seccomp-unsupported-list.patch"
19SRC_URI[archive.sha256sum] = "42c773745d84ba14bc1cf1c4c6f4606148803a5cd337941c63964795f3c59d42"
20
21DEPENDS += " \
22    fontconfig \
23    gdk-pixbuf \
24    glib-2.0 \
25    gsettings-desktop-schemas \
26    gtk+3 \
27    gtk4 \
28    iso-codes \
29    xext \
30    libseccomp \
31    libxkbcommon \
32    xkeyboard-config \
33    xrandr \
34"
35
36DEPENDS:remove:riscv32 = "libseccomp"
37
38GTKDOC_MESON_OPTION = "gtk_doc"
39EXTRA_OEMESON = "-Ddesktop_docs=false"
40
41PACKAGES =+ "libgnome-desktop"
42RDEPENDS:${PN} += "libgnome-desktop"
43FILES:libgnome-desktop = " \
44    ${libdir}/lib*${SOLIBS} \
45    ${datadir}/libgnome-desktop*/pnp.ids \
46    ${datadir}/gnome/*xml \
47"
48
49RRECOMMENDS:libgnome-desktop += "gsettings-desktop-schemas"
50