blob: 141341e34154d3dc9269b27b5a7055c1bcf368f9 [file] [log] [blame]
Brad Bishop868407c2019-11-04 13:24:47 -05001require ${BPN}.inc
2
3DEPENDS += " \
4 ${BPN}-native \
5 glib-2.0-native \
6 glib-2.0 \
7 dbus \
8 iso-codes \
9"
10
Andrew Geissler517393d2023-01-13 08:55:19 -060011inherit gtk-icon-cache bash-completion features_check
Brad Bishop868407c2019-11-04 13:24:47 -050012
13# for unicode-ucd
14EXTRA_OECONF += "--with-ucd-dir=${STAGING_DATADIR}/unicode/ucd"
15
16PACKAGECONFIG ??= " \
17 dconf vala \
Patrick Williams03907ee2022-05-01 06:28:52 -050018 ${@bb.utils.contains_any('DISTRO_FEATURES', [ 'wayland', 'x11' ], 'gtk3 gtk4', '', d)} \
19 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd wayland x11', d)} \
Brad Bishop868407c2019-11-04 13:24:47 -050020"
21
Andrew Geissler517393d2023-01-13 08:55:19 -060022REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'gtk4', 'opengl', '', d)}"
23
Patrick Williams213cb262021-08-07 19:21:33 -050024do_configure:prepend() {
Brad Bishop868407c2019-11-04 13:24:47 -050025 # run native unicode-parser
26 sed -i 's:$(builddir)/unicode-parser:unicode-parser:g' ${S}/src/Makefile.am
27}
28
Patrick Williams213cb262021-08-07 19:21:33 -050029FILES:${PN} += " \
Brad Bishop868407c2019-11-04 13:24:47 -050030 ${datadir}/dbus-1 \
31 ${datadir}/GConf \
32 ${datadir}/glib-2.0 \
33 ${libdir}/gtk-3.0 \
Patrick Williams03907ee2022-05-01 06:28:52 -050034 ${libdir}/gtk-4.0 \
35 ${systemd_user_unitdir} \
Brad Bishop868407c2019-11-04 13:24:47 -050036"
37
Patrick Williams213cb262021-08-07 19:21:33 -050038FILES:${PN}-dev += " \
Brad Bishop868407c2019-11-04 13:24:47 -050039 ${datadir}/gettext \
40"
Patrick Williamse760df82023-05-26 11:10:49 -050041RDEPENDS:${PN} += "python3-core"