1*8e7b46e2SPatrick WilliamsSUMMARY = "GNOME library for reading .desktop files"
2*8e7b46e2SPatrick WilliamsSECTION = "x11/gnome"
3*8e7b46e2SPatrick WilliamsLICENSE = "GPL-2.0-only & LGPL-2.0-only"
4*8e7b46e2SPatrick WilliamsLIC_FILES_CHKSUM = " \
5*8e7b46e2SPatrick Williams    file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
6*8e7b46e2SPatrick Williams    file://COPYING.LIB;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
7*8e7b46e2SPatrick Williams"
8*8e7b46e2SPatrick Williams
9*8e7b46e2SPatrick WilliamsGNOMEBASEBUILDCLASS = "meson"
10*8e7b46e2SPatrick Williams
11*8e7b46e2SPatrick Williamsinherit gnomebase itstool pkgconfig upstream-version-is-even gobject-introspection features_check gtk-doc
12*8e7b46e2SPatrick Williams
13*8e7b46e2SPatrick WilliamsREQUIRED_DISTRO_FEATURES = "x11 opengl"
14*8e7b46e2SPatrick Williams# gobject-introspection is mandatory and cannot be configured
15*8e7b46e2SPatrick WilliamsREQUIRED_DISTRO_FEATURES += "gobject-introspection-data"
16*8e7b46e2SPatrick Williams
17*8e7b46e2SPatrick WilliamsGIR_MESON_OPTION = ""
18*8e7b46e2SPatrick Williams
19*8e7b46e2SPatrick WilliamsSRC_URI += "file://gnome-desktop-thumbnail-don-t-assume-time_t-is-long.patch \
20*8e7b46e2SPatrick Williams            file://0001-meson-Add-riscv32-to-seccomp-unsupported-list.patch"
21*8e7b46e2SPatrick WilliamsSRC_URI[archive.sha256sum] = "42c773745d84ba14bc1cf1c4c6f4606148803a5cd337941c63964795f3c59d42"
22*8e7b46e2SPatrick Williams
23*8e7b46e2SPatrick WilliamsDEPENDS += " \
24*8e7b46e2SPatrick Williams    fontconfig \
25*8e7b46e2SPatrick Williams    gdk-pixbuf \
26*8e7b46e2SPatrick Williams    glib-2.0 \
27*8e7b46e2SPatrick Williams    gsettings-desktop-schemas \
28*8e7b46e2SPatrick Williams    gtk+3 \
29*8e7b46e2SPatrick Williams    gtk4 \
30*8e7b46e2SPatrick Williams    iso-codes \
31*8e7b46e2SPatrick Williams    xext \
32*8e7b46e2SPatrick Williams    libseccomp \
33*8e7b46e2SPatrick Williams    libxkbcommon \
34*8e7b46e2SPatrick Williams    xkeyboard-config \
35*8e7b46e2SPatrick Williams    xrandr \
36*8e7b46e2SPatrick Williams"
37*8e7b46e2SPatrick Williams
38*8e7b46e2SPatrick WilliamsDEPENDS:remove:riscv32 = "libseccomp"
39*8e7b46e2SPatrick Williams
40*8e7b46e2SPatrick WilliamsGTKDOC_MESON_OPTION = "gtk_doc"
41*8e7b46e2SPatrick WilliamsEXTRA_OEMESON = "-Ddesktop_docs=false"
42*8e7b46e2SPatrick Williams
43*8e7b46e2SPatrick WilliamsPACKAGES =+ "libgnome-desktop"
44*8e7b46e2SPatrick WilliamsRDEPENDS:${PN} += "libgnome-desktop"
45*8e7b46e2SPatrick WilliamsFILES:libgnome-desktop = " \
46*8e7b46e2SPatrick Williams    ${libdir}/lib*${SOLIBS} \
47*8e7b46e2SPatrick Williams    ${datadir}/libgnome-desktop*/pnp.ids \
48*8e7b46e2SPatrick Williams    ${datadir}/gnome/*xml \
49*8e7b46e2SPatrick Williams"
50*8e7b46e2SPatrick Williams
51*8e7b46e2SPatrick WilliamsRRECOMMENDS:libgnome-desktop += "gsettings-desktop-schemas"
52