blob: c534e22f0af82b6e332991454975633a97379781 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "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
8LICENSE = "GPL-2.0-only"
9LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
10
11DEPENDS = "p11-kit glib-2.0 libgcrypt gnupg-native \
12 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'libxslt-native', '', d)}"
13
14CACHED_CONFIGUREVARS += "ac_cv_path_GPG='gpg2'"
15
16CFLAGS += "-D_GNU_SOURCE"
17
Andrew Geissler517393d2023-01-13 08:55:19 -060018GTKDOC_MESON_OPTION = "gtk_doc"
Andrew Geissler3eeda902023-05-19 10:14:02 -050019inherit gnomebase gtk-icon-cache gi-docgen features_check vala gobject-introspection gettext mime mime-xdg
Andrew Geissler517393d2023-01-13 08:55:19 -060020
21REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', '', d)}"
22
Patrick Williams39653562024-03-01 08:54:02 -060023SRC_URI[archive.sha256sum] = "e15e31329e0171229d552d25563f176c5b6179795bf91fae2b141f69a9b7c480"
Andrew Geissler517393d2023-01-13 08:55:19 -060024
25PACKAGECONFIG ??= " \
26 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \
28 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'gtk', '', d)} \
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060029 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)} \
Andrew Geissler517393d2023-01-13 08:55:19 -060030"
31PACKAGECONFIG[gtk] = "-Dgtk4=true,-Dgtk4=false,gtk4"
32PACKAGECONFIG[ssh_agent] = "-Dssh_agent=true,-Dssh_agent=false,libsecret,openssh"
33#'Use systemd socket activation for server programs'
34PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd"
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060035PACKAGECONFIG[vapi] = "-Dvapi=true,-Dvapi=false,"
Andrew Geissler517393d2023-01-13 08:55:19 -060036
37FILES:${PN} += " \
38 ${datadir}/dbus-1 \
39 ${datadir}/gcr-4 \
40 ${systemd_user_unitdir}/gcr-ssh-agent.socket \
41 ${systemd_user_unitdir}/gcr-ssh-agent.service \
42"
43
44# http://errors.yoctoproject.org/Errors/Details/20229/
45ARM_INSTRUCTION_SET:armv4 = "arm"
46ARM_INSTRUCTION_SET:armv5 = "arm"
47ARM_INSTRUCTION_SET:armv6 = "arm"
48
49EXTRA_OEMESON += "--cross-file=${WORKDIR}/meson-${PN}.cross"
50
51do_write_config:append() {
52 cat >${WORKDIR}/meson-${PN}.cross <<EOF
53[binaries]
54gpg2 = '${bindir}/gpg2'
55ssh-add = '${bindir}/ssh-add'
56ssh-agent = '${bindir}/ssh-agent'
57EOF
58}