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" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 6 | LICENSE_libvte = "LGPLv3+" |
| 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 | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame^] | 23 | SRC_URI[archive.sha256sum] = "c0c60b8dc343167437c86d984b0cf134df86034180ed70513f683006ada3ec41" |
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 |
| 36 | do_compile_prepend() { |
| 37 | export GIR_EXTRA_LIBS_PATH="${B}/src/.libs" |
| 38 | } |
| 39 | |
| 40 | # Package additional files |
| 41 | FILES_${PN}-dev += "${datadir}/vala/vapi/*" |
| 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 |
| 48 | PACKAGECONFIG_remove_class-native = "vala" |
| 49 | |
| 50 | CFLAGS += "-D_GNU_SOURCE" |
| 51 | |
| 52 | PACKAGES =+ "libvte ${PN}-prompt" |
| 53 | FILES_libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*" |
Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame] | 54 | FILES_${PN}-prompt = " \ |
| 55 | ${sysconfdir}/profile.d \ |
| 56 | ${libexecdir}/vte-urlencode-cwd \ |
| 57 | " |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 58 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame^] | 59 | FILES_${PN}-dev += "${datadir}/glade/" |
| 60 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 61 | BBCLASSEXTEND = "native nativesdk" |