blob: a79f2e44511bf01b9eefeb9a7390d93c6b9ddcc8 [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"
Andrew Geisslerc926e172021-05-07 16:11:35 -05005LICENSE = "GPLv3 & LGPLv3+ & MIT-X"
Patrick Williams213cb262021-08-07 19:21:33 -05006LICENSE:libvte = "LGPLv3+"
Andrew Geissler82c905d2020-04-13 13:39:40 -05007
8LIC_FILES_CHKSUM = " \
Andrew Geisslerc926e172021-05-07 16:11:35 -05009 file://COPYING.GPL3;md5=cc702cf3444d1f19680c794cc61948f9 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050010 file://COPYING.LGPL3;md5=b52f2d57d10c4f7ee67a7eb9615d5d24 \
Andrew Geisslerc926e172021-05-07 16:11:35 -050011 file://COPYING.XTERM;md5=d7fc3a23c16c039afafe2e042030f057 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050012"
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 Geissler5f350902021-07-23 13:09:54 -040023SRC_URI[archive.sha256sum] = "2b3c820b65a667c1d8859ba20478be626d1519cc3159dac25f703330c6d07e18"
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
Patrick Williams213cb262021-08-07 19:21:33 -050036do_compile:prepend() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050037 export GIR_EXTRA_LIBS_PATH="${B}/src/.libs"
38}
39
40# Package additional files
Patrick Williams213cb262021-08-07 19:21:33 -050041FILES:${PN}-dev += "${datadir}/vala/vapi/*"
Andrew Geissler82c905d2020-04-13 13:39:40 -050042
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
Patrick Williams213cb262021-08-07 19:21:33 -050048PACKAGECONFIG:remove:class-native = "vala"
Andrew Geissler82c905d2020-04-13 13:39:40 -050049
50CFLAGS += "-D_GNU_SOURCE"
51
52PACKAGES =+ "libvte ${PN}-prompt"
Patrick Williams213cb262021-08-07 19:21:33 -050053FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*"
54FILES:${PN}-prompt = " \
Andrew Geissler4ed12e12020-06-05 18:00:41 -050055 ${sysconfdir}/profile.d \
56 ${libexecdir}/vte-urlencode-cwd \
57"
Andrew Geissler82c905d2020-04-13 13:39:40 -050058
Patrick Williams213cb262021-08-07 19:21:33 -050059FILES:${PN}-dev += "${datadir}/glade/"
Andrew Geisslerc926e172021-05-07 16:11:35 -050060
Andrew Geissler82c905d2020-04-13 13:39:40 -050061BBCLASSEXTEND = "native nativesdk"