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# gobject-introspection is mandatory and cannot be configured
15REQUIRED_DISTRO_FEATURES += "gobject-introspection-data"
16
17GIR_MESON_OPTION = ""
18
19SRC_URI += "file://gnome-desktop-thumbnail-don-t-assume-time_t-is-long.patch \
20            file://0001-meson-Add-riscv32-to-seccomp-unsupported-list.patch"
21SRC_URI[archive.sha256sum] = "42c773745d84ba14bc1cf1c4c6f4606148803a5cd337941c63964795f3c59d42"
22
23DEPENDS += " \
24    fontconfig \
25    gdk-pixbuf \
26    glib-2.0 \
27    gsettings-desktop-schemas \
28    gtk+3 \
29    gtk4 \
30    iso-codes \
31    xext \
32    libseccomp \
33    libxkbcommon \
34    xkeyboard-config \
35    xrandr \
36"
37
38DEPENDS:remove:riscv32 = "libseccomp"
39
40GTKDOC_MESON_OPTION = "gtk_doc"
41EXTRA_OEMESON = "-Ddesktop_docs=false"
42
43PACKAGES =+ "libgnome-desktop"
44RDEPENDS:${PN} += "libgnome-desktop"
45FILES:libgnome-desktop = " \
46    ${libdir}/lib*${SOLIBS} \
47    ${datadir}/libgnome-desktop*/pnp.ids \
48    ${datadir}/gnome/*xml \
49"
50
51RRECOMMENDS:libgnome-desktop += "gsettings-desktop-schemas"
52