blob: b6e591fb6ed7b210416d19501420cca794a234ed [file] [log] [blame]
Brad Bishop64c979e2019-11-04 13:55:29 -05001SUMMARY = "A library for bits of crypto UI and parsing etc"
2DESCRIPTION = "GCR is a library for displaying certificates, and crypto UI, \
3accessing key stores. It also provides the viewer for crypto files on the \
4GNOME desktop."
5HOMEPAGE = "https://gitlab.gnome.org/GNOME/gcr"
6BUGTRACKER = "https://gitlab.gnome.org/GNOME/gcr/issues"
7
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00008LICENSE = "GPL-2.0-only"
Brad Bishop64c979e2019-11-04 13:55:29 -05009LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
10
Andrew Geissler95ac1b82021-03-31 14:34:31 -050011DEPENDS = "p11-kit glib-2.0 libgcrypt gnupg-native \
Brad Bishop64c979e2019-11-04 13:55:29 -050012 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'libxslt-native', '', d)}"
13
Andrew Geissler90fd73c2021-03-05 15:25:55 -060014CACHED_CONFIGUREVARS += "ac_cv_path_GPG='gpg2'"
15
Andrew Geissler4b740dc2020-05-05 08:54:39 -050016GNOMEBASEBUILDCLASS = "meson"
17GTKDOC_MESON_OPTION = "gtk_doc"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018inherit gnomebase gtk-icon-cache gtk-doc features_check upstream-version-is-even vala gobject-introspection gettext mime mime-xdg
Brad Bishop64c979e2019-11-04 13:55:29 -050019
Andrew Geissler595f6302022-01-24 19:11:47 +000020SRC_URI += "file://0001-gcr-meson.build-fix-one-parallel-build-failure.patch \
21 file://b3ca1d02bb0148ca787ac4aead164d7c8ce2c4d8.patch"
Andrew Geisslerc926e172021-05-07 16:11:35 -050022
23SRC_URI[archive.sha256sum] = "b9d3645a5fd953a54285cc64d4fc046736463dbd4dcc25caf5c7b59bed3027f5"
Brad Bishop64c979e2019-11-04 13:55:29 -050024
Andrew Geissler78b72792022-06-14 06:47:25 -050025PACKAGECONFIG ??= " \
26 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'gtk', '', d)} \
28"
Andrew Geissler95ac1b82021-03-31 14:34:31 -050029PACKAGECONFIG[gtk] = "-Dgtk=true,-Dgtk=false,gtk+3"
30
Patrick Williams213cb262021-08-07 19:21:33 -050031FILES:${PN} += " \
Brad Bishop64c979e2019-11-04 13:55:29 -050032 ${datadir}/dbus-1 \
33 ${datadir}/gcr-3 \
34"
35
36# http://errors.yoctoproject.org/Errors/Details/20229/
Patrick Williams213cb262021-08-07 19:21:33 -050037ARM_INSTRUCTION_SET:armv4 = "arm"
38ARM_INSTRUCTION_SET:armv5 = "arm"
39ARM_INSTRUCTION_SET:armv6 = "arm"
Andrew Geissler90fd73c2021-03-05 15:25:55 -060040
41EXTRA_OEMESON += "--cross-file ${WORKDIR}/meson-${PN}.cross"
Patrick Williams213cb262021-08-07 19:21:33 -050042do_write_config:append() {
Andrew Geissler90fd73c2021-03-05 15:25:55 -060043 cat >${WORKDIR}/meson-${PN}.cross <<EOF
44[binaries]
45gpg2 = '${bindir}/gpg2'
46EOF
47}