Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | SUMMARY = "Virtual terminal emulator GTK+ widget library" |
| 2 | DESCRIPTION = "VTE provides a virtual terminal widget for GTK applications." |
| 3 | HOMEPAGE = "https://wiki.gnome.org/Apps/Terminal/VTE" |
| 4 | BUGTRACKER = "https://bugzilla.gnome.org/buglist.cgi?product=vte" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 5 | LICENSE = "GPL-3.0-only & LGPL-3.0-or-later & MIT" |
| 6 | LICENSE:libvte = "LGPL-3.0-or-later" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 7 | |
| 8 | LIC_FILES_CHKSUM = " \ |
| 9 | file://COPYING.GPL3;md5=cc702cf3444d1f19680c794cc61948f9 \ |
| 10 | file://COPYING.LGPL3;md5=b52f2d57d10c4f7ee67a7eb9615d5d24 \ |
| 11 | file://COPYING.XTERM;md5=d7fc3a23c16c039afafe2e042030f057 \ |
| 12 | " |
| 13 | |
| 14 | DEPENDS = "glib-2.0 gtk+3 libpcre2 libxml2-native gperf-native icu" |
| 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) |
| 22 | SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch \ |
| 23 | file://0001-Makefile.docs-correctly-substitute-gtkdoc-qemu-wrapp.patch" |
| 24 | SRC_URI[archive.sha256sum] = "e89974673a72a0a06edac6d17830b82bb124decf0cb3b52cebc92ec3ff04d976" |
| 25 | |
| 26 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" |
| 27 | |
| 28 | # Instead of "inherit vala" we do the relevant settings here so we can |
| 29 | # set DEPENDS based on PACKAGECONFIG. |
| 30 | |
| 31 | # Our patched version of Vala looks in STAGING_DATADIR for .vapi files |
| 32 | export STAGING_DATADIR |
| 33 | # Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files |
| 34 | export XDG_DATA_DIRS = "${STAGING_DATADIR}" |
| 35 | |
| 36 | # Help g-ir-scanner find the .so for linking |
| 37 | do_compile:prepend() { |
| 38 | export GIR_EXTRA_LIBS_PATH="${B}/src/.libs" |
| 39 | } |
| 40 | |
| 41 | # Package additional files |
| 42 | FILES:${PN}-dev += "${datadir}/vala/vapi/*" |
| 43 | |
| 44 | PACKAGECONFIG ??= "gnutls" |
| 45 | PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false,vala-native vala" |
| 46 | PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls" |
| 47 | PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd" |
| 48 | # vala requires gir |
| 49 | PACKAGECONFIG:remove:class-native = "vala" |
| 50 | |
| 51 | CFLAGS += "-D_GNU_SOURCE" |
| 52 | |
| 53 | PACKAGES =+ "libvte ${PN}-prompt" |
| 54 | FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*" |
| 55 | FILES:${PN}-prompt = " \ |
| 56 | ${sysconfdir}/profile.d \ |
| 57 | ${libexecdir}/vte-urlencode-cwd \ |
| 58 | " |
| 59 | |
| 60 | FILES:${PN}-dev += "${datadir}/glade/" |
| 61 | |
| 62 | BBCLASSEXTEND = "native nativesdk" |