blob: c9d32c3946f80e3f914ab9d5f163af1dccddf02a [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001SUMMARY = "System-wide Performance Profiler for Linux"
2HOMEPAGE = "http://www.sysprof.com"
Andrew Geissler9aee5002022-03-30 16:27:02 +00003LICENSE = "GPL-3.0-or-later"
Andrew Geissler595f6302022-01-24 19:11:47 +00004LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
5 file://src/sysprof/sysprof-application.c;endline=17;md5=a3de8df3b0f8876dd01e1388d2d4b607"
6
7GNOMEBASEBUILDCLASS = "meson"
8inherit gnomebase gnome-help gettext systemd upstream-version-is-even gsettings mime mime-xdg
9
10DEPENDS += " \
11 glib-2.0-native \
12 yelp-tools-native \
13 libxml2-native \
14 glib-2.0 \
15 json-glib \
16"
17
Patrick Williams03907ee2022-05-01 06:28:52 -050018SRC_URI += "file://0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch"
19SRC_URI[archive.sha256sum] = "ab5d9f5b71973b3088d58a1bfdf1dc23c39a02f5fce4e5e9c73e034b178b005b"
Andrew Geissler595f6302022-01-24 19:11:47 +000020
Patrick Williams03907ee2022-05-01 06:28:52 -050021PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'sysprofd libsysprof', '', d)} \
22 ${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk', '', d)} \
23 libunwind"
24# nongnu libunwind needs porting to RV32
25PACKAGECONFIG:remove:riscv32 = "libunwind"
26
Andrew Geissler595f6302022-01-24 19:11:47 +000027PACKAGECONFIG[gtk] = "-Denable_gtk=true,-Denable_gtk=false,gtk+3 libdazzle"
28PACKAGECONFIG[sysprofd] = "-Dwith_sysprofd=bundled,-Dwith_sysprofd=none,polkit"
29PACKAGECONFIG[libsysprof] = "-Dlibsysprof=true,-Dlibsysprof=false,polkit"
Patrick Williams03907ee2022-05-01 06:28:52 -050030PACKAGECONFIG[libunwind] = "-Dlibunwind=true,-Dlibunwind=false,libunwind"
Andrew Geissler595f6302022-01-24 19:11:47 +000031
32EXTRA_OEMESON += "-Dsystemdunitdir=${systemd_unitdir}/system"
33
34SOLIBS = ".so"
35FILES_SOLIBSDEV = ""
36
37SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'sysprofd', 'sysprof2.service sysprof3.service', '', d)}"
38
39FILES:${PN} += " \
40 ${datadir}/dbus-1/system-services \
41 ${datadir}/dbus-1/system.d \
42 ${datadir}/dbus-1/interfaces \
43 ${datadir}/metainfo \
44"