blob: 4249b75ac0a544d0acb17ee6344bd7830c0eaa11 [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
Patrick Williams8e7b46e2023-05-01 14:19:06 -050014DEPENDS = "glib-2.0 glib-2.0-native gtk+3 libpcre2 libxml2-native gperf-native icu"
Andrew Geissler517393d2023-01-13 08:55:19 -060015
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 Geisslerfc113ea2023-03-31 09:59:46 -050023SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch"
Andrew Geissler8f840682023-07-21 09:09:43 -050024SRC_URI[archive.sha256sum] = "f7966fd185a6981f53964162b71cfef7e606495155d6f5827b72aa0dd6741c9e"
Andrew Geissler517393d2023-01-13 08:55:19 -060025
26ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
27
28# Help g-ir-scanner find the .so for linking
29do_compile:prepend() {
30 export GIR_EXTRA_LIBS_PATH="${B}/src/.libs"
31}
32
33# Package additional files
34FILES:${PN}-dev += "${datadir}/vala/vapi/*"
35
36PACKAGECONFIG ??= "gnutls"
37PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false,vala-native vala"
38PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls"
39PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd"
40# vala requires gir
41PACKAGECONFIG:remove:class-native = "vala"
42
43CFLAGS += "-D_GNU_SOURCE"
44
45PACKAGES =+ "libvte ${PN}-prompt"
46FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*"
47FILES:${PN}-prompt = " \
48 ${sysconfdir}/profile.d \
49 ${libexecdir}/vte-urlencode-cwd \
50"
51
52FILES:${PN}-dev += "${datadir}/glade/"
53
54BBCLASSEXTEND = "native nativesdk"