1SUMMARY = "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 lz4"
15
16GIR_MESON_OPTION = 'gir'
17GIDOCGEN_MESON_OPTION = "docs"
18inherit gnomebase gi-docgen features_check upstream-version-is-even gobject-introspection systemd vala
19
20SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch \
21           file://0002-lib-Typo-fix.patch \
22           file://0004-fast_float-Add-single-header-library-for-from_char-i.patch \
23           file://0005-color-parser-Use-fast_float-implementation-for-from_.patch \
24           "
25SRC_URI[archive.sha256sum] = "35d7bcde07356846b4a12881c8e016705b70a9004a9082285eee5834ccc49890"
26
27ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
28
29EXTRA_OEMESON += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)}"
30EXTRA_OEMESON:append = " ${@bb.utils.contains('GI_DATA_ENABLED', 'False', '-Ddocs=false', '', d)}"
31
32PACKAGECONFIG ??= " \
33	gnutls \
34	${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
35	${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gtk4', '', d)} \
36"
37PACKAGECONFIG[fribidi] = "-Dfribidi=true,-Dfribidi=false,fribidi"
38PACKAGECONFIG[gtk4] = "-Dgtk4=true,-Dgtk4=false,gtk4"
39PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls"
40PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd"
41
42PACKAGES =+ "libvte-gtk4 ${PN}-gtk4 ${PN}-gtk4-dev libvte ${PN}-prompt"
43FILES:libvte-gtk4 = "${libdir}/lib*gtk4.so.* ${libdir}/girepository-1.0/Vte-3.91.typelib"
44FILES:${PN}-gtk4 ="${bindir}/vte-2.91-gtk4"
45FILES:${PN}-gtk4-dev = "${libdir}/lib*gtk4.so \
46                        ${libdir}/pkgconfig/vte-2.91-gtk4.pc \
47                        ${datadir}/gir-1.0/Vte-3.91.gir \
48                        ${datadir}/vala/vapi/vte-2.91-gtk4.deps \
49                        ${datadir}/vala/vapi/vte-2.91-gtk4.vapi \
50                        ${includedir}/vte-2.91-gtk4 \
51                        "
52FILES:${PN} +="${systemd_user_unitdir}"
53FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*"
54FILES:${PN}-prompt = " \
55    ${sysconfdir}/profile.d \
56    ${libexecdir}/vte-urlencode-cwd \
57"
58
59FILES:${PN}-dev += "${datadir}/glade/"
60