blob: 071f66846445f0d2fb38a76a9ff1da2417f5296c [file] [log] [blame]
Patrick Williamsda295312023-12-05 16:48:56 -06001SUMMARY = "Virtual terminal emulator GTK+ widget library"
2DESCRIPTION = "VTE provides a virtual terminal widget for GTK applications."
3HOMEPAGE = "https://wiki.gnome.org/Apps/Terminal/VTE"
4BUGTRACKER = "https://bugzilla.gnome.org/buglist.cgi?product=vte"
5LICENSE = "GPL-3.0-only & LGPL-3.0-or-later & MIT"
6LICENSE:libvte = "LGPL-3.0-or-later"
7
8LIC_FILES_CHKSUM = " \
9 file://COPYING.GPL3;md5=cc702cf3444d1f19680c794cc61948f9 \
10 file://COPYING.LGPL3;md5=b52f2d57d10c4f7ee67a7eb9615d5d24 \
11 file://COPYING.XTERM;md5=d7fc3a23c16c039afafe2e042030f057 \
12"
13
14DEPENDS = "glib-2.0 glib-2.0-native gtk+3 libpcre2 libxml2-native gperf-native icu"
15
16GIR_MESON_OPTION = 'gir'
17GIDOCGEN_MESON_OPTION = "docs"
18
19inherit gnomebase gi-docgen features_check upstream-version-is-even gobject-introspection systemd vala
20
21SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch"
22SRC_URI[archive.sha256sum] = "2328c3f1c998350a18e0e513348e9fc581d57ea4e7b89aedf11e0e3c65042b4f"
23
24ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
25
26EXTRA_OEMESON += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)}"
27EXTRA_OEMESON:append = " ${@bb.utils.contains('GI_DATA_ENABLED', 'False', '-Ddocs=false', '', d)}"
28
29PACKAGECONFIG ??= " \
30 gnutls \
31 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
32 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gtk4', '', d)} \
33"
34PACKAGECONFIG[fribidi] = "-Dfribidi=true,-Dfribidi=false,fribidi"
35PACKAGECONFIG[gtk4] = "-Dgtk4=true,-Dgtk4=false,gtk4"
36PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls"
37PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd"
38
39PACKAGES =+ "libvte-gtk4 ${PN}-gtk4 ${PN}-gtk4-dev libvte ${PN}-prompt"
40FILES:libvte-gtk4 = "${libdir}/lib*gtk4.so.* ${libdir}/girepository-1.0/Vte-3.91.typelib"
41FILES:${PN}-gtk4 ="${bindir}/vte-2.91-gtk4"
42FILES:${PN}-gtk4-dev = "${libdir}/lib*gtk4.so \
43 ${libdir}/pkgconfig/vte-2.91-gtk4.pc \
44 ${datadir}/gir-1.0/Vte-3.91.gir \
45 ${datadir}/vala/vapi/vte-2.91-gtk4.deps \
46 ${datadir}/vala/vapi/vte-2.91-gtk4.vapi \
47 ${includedir}/vte-2.91-gtk4 \
48 "
49FILES:${PN} +="${systemd_user_unitdir}"
50FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*"
51FILES:${PN}-prompt = " \
52 ${sysconfdir}/profile.d \
53 ${libexecdir}/vte-urlencode-cwd \
54"
55
56FILES:${PN}-dev += "${datadir}/glade/"