blob: 001f413c19522bd559087addf82386cb834fff82 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -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 gtk+3 libpcre2 libxml2-native gperf-native icu"
15
16GNOMEBASEBUILDCLASS = "meson"
17GIR_MESON_OPTION = 'gir'
18GIDOCGEN_MESON_OPTION = "docs"
19
20inherit gnomebase gi-docgen features_check upstream-version-is-even gobject-introspection
21
22# vapigen.m4 is required when vala is not present (but the one from vala should be used normally)
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060023SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch \
24 file://0001-vtepty.cc-Do-not-typecast-to-GSpawnFlags.patch"
Andrew Geissler517393d2023-01-13 08:55:19 -060025SRC_URI[archive.sha256sum] = "4d15b4380de3f564d57eabd006389c407c705df5b0c70030fdcc24971a334d80"
26
27ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
28
29# Help g-ir-scanner find the .so for linking
30do_compile:prepend() {
31 export GIR_EXTRA_LIBS_PATH="${B}/src/.libs"
32}
33
34# Package additional files
35FILES:${PN}-dev += "${datadir}/vala/vapi/*"
36
37PACKAGECONFIG ??= "gnutls"
38PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false,vala-native vala"
39PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls"
40PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd"
41# vala requires gir
42PACKAGECONFIG:remove:class-native = "vala"
43
44CFLAGS += "-D_GNU_SOURCE"
45
46PACKAGES =+ "libvte ${PN}-prompt"
47FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*"
48FILES:${PN}-prompt = " \
49 ${sysconfdir}/profile.d \
50 ${libexecdir}/vte-urlencode-cwd \
51"
52
53FILES:${PN}-dev += "${datadir}/glade/"
54
55BBCLASSEXTEND = "native nativesdk"