Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Virtual terminal emulator GTK+ widget library" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 2 | DESCRIPTION = "VTE provides a virtual terminal widget for GTK applications." |
| 3 | HOMEPAGE = "https://wiki.gnome.org/Apps/Terminal/VTE" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 4 | BUGTRACKER = "https://bugzilla.gnome.org/buglist.cgi?product=vte" |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 5 | LICENSE = "GPLv3 & LGPLv3+ & MIT-X" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 6 | LICENSE:libvte = "LGPLv3+" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 7 | |
| 8 | LIC_FILES_CHKSUM = " \ |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 9 | file://COPYING.GPL3;md5=cc702cf3444d1f19680c794cc61948f9 \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 10 | file://COPYING.LGPL3;md5=b52f2d57d10c4f7ee67a7eb9615d5d24 \ |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 11 | file://COPYING.XTERM;md5=d7fc3a23c16c039afafe2e042030f057 \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | " |
| 13 | |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 14 | DEPENDS = "glib-2.0 gtk+3 libpcre2 libxml2-native gperf-native icu" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | |
| 16 | GNOMEBASEBUILDCLASS = "meson" |
| 17 | GIR_MESON_OPTION = 'gir' |
| 18 | |
| 19 | inherit 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 Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 22 | SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch" |
Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame] | 23 | SRC_URI[archive.sha256sum] = "2b3c820b65a667c1d8859ba20478be626d1519cc3159dac25f703330c6d07e18" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 24 | |
| 25 | ANY_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 |
| 31 | export STAGING_DATADIR |
| 32 | # Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files |
| 33 | export XDG_DATA_DIRS = "${STAGING_DATADIR}" |
| 34 | |
| 35 | # Help g-ir-scanner find the .so for linking |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 36 | do_compile:prepend() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 37 | export GIR_EXTRA_LIBS_PATH="${B}/src/.libs" |
| 38 | } |
| 39 | |
| 40 | # Package additional files |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 41 | FILES:${PN}-dev += "${datadir}/vala/vapi/*" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 42 | |
| 43 | PACKAGECONFIG ??= "gnutls" |
| 44 | PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false,vala-native vala" |
| 45 | PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls" |
Andrew Geissler | 4b740dc | 2020-05-05 08:54:39 -0500 | [diff] [blame] | 46 | PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 47 | # vala requires gir |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 48 | PACKAGECONFIG:remove:class-native = "vala" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 49 | |
| 50 | CFLAGS += "-D_GNU_SOURCE" |
| 51 | |
| 52 | PACKAGES =+ "libvte ${PN}-prompt" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 53 | FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*" |
| 54 | FILES:${PN}-prompt = " \ |
Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame] | 55 | ${sysconfdir}/profile.d \ |
| 56 | ${libexecdir}/vte-urlencode-cwd \ |
| 57 | " |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 58 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 59 | FILES:${PN}-dev += "${datadir}/glade/" |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 60 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 61 | BBCLASSEXTEND = "native nativesdk" |