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