blob: a2164f43d3aac16589aa2ca1d01d0e0713816107 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Virtual terminal emulator GTK+ widget library"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002DESCRIPTION = "VTE provides a virtual terminal widget for GTK applications."
3HOMEPAGE = "https://wiki.gnome.org/Apps/Terminal/VTE"
Andrew Geissler82c905d2020-04-13 13:39:40 -05004BUGTRACKER = "https://bugzilla.gnome.org/buglist.cgi?product=vte"
5LICENSE = "GPLv3 & LGPLv3+ & LGPLv2.1+"
6LICENSE_libvte = "LGPLv3+"
7
8LIC_FILES_CHKSUM = " \
9 file://COPYING.GPL3;md5=2f31b266d3440dd7ee50f92cf67d8e6c \
10 file://COPYING.LGPL2;md5=4fbd65380cdd255951079008b364516c \
11 file://COPYING.LGPL3;md5=b52f2d57d10c4f7ee67a7eb9615d5d24 \
12"
13
Andrew Geisslerc182c622020-05-15 14:13:32 -050014DEPENDS = "glib-2.0 gtk+3 libpcre2 libxml2-native gperf-native icu"
Andrew Geissler82c905d2020-04-13 13:39:40 -050015
16GNOMEBASEBUILDCLASS = "meson"
17GIR_MESON_OPTION = 'gir'
18
19inherit gnomebase gtk-doc features_check upstream-version-is-even gobject-introspection
20
21# vapigen.m4 is required when vala is not present (but the one from vala should be used normally)
Andrew Geissler5a43b432020-06-13 10:46:56 -050022SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch"
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060023SRC_URI[archive.sha256sum] = "b0300bbcf0c02df5812a10a3cb8e4fff723bab92c08c97a0a90c167cf543aff0"
Andrew Geissler82c905d2020-04-13 13:39:40 -050024
25ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
26
27# Instead of "inherit vala" we do the relevant settings here so we can
28# set DEPENDS based on PACKAGECONFIG.
29
30# Our patched version of Vala looks in STAGING_DATADIR for .vapi files
31export STAGING_DATADIR
32# Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files
33export XDG_DATA_DIRS = "${STAGING_DATADIR}"
34
35# Help g-ir-scanner find the .so for linking
36do_compile_prepend() {
37 export GIR_EXTRA_LIBS_PATH="${B}/src/.libs"
38}
39
40# Package additional files
41FILES_${PN}-dev += "${datadir}/vala/vapi/*"
42
43PACKAGECONFIG ??= "gnutls"
44PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false,vala-native vala"
45PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls"
Andrew Geissler4b740dc2020-05-05 08:54:39 -050046PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd"
Andrew Geissler82c905d2020-04-13 13:39:40 -050047# vala requires gir
48PACKAGECONFIG_remove_class-native = "vala"
49
50CFLAGS += "-D_GNU_SOURCE"
51
52PACKAGES =+ "libvte ${PN}-prompt"
53FILES_libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*"
Andrew Geissler4ed12e12020-06-05 18:00:41 -050054FILES_${PN}-prompt = " \
55 ${sysconfdir}/profile.d \
56 ${libexecdir}/vte-urlencode-cwd \
57"
Andrew Geissler82c905d2020-04-13 13:39:40 -050058
59BBCLASSEXTEND = "native nativesdk"