Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Virtual terminal emulator GTK+ widget library" |
| 2 | BUGTRACKER = "https://bugzilla.gnome.org/buglist.cgi?product=vte" |
| 3 | LICENSE = "GPLv3 & LGPLv3+ & LGPLv2.1+" |
| 4 | LICENSE_libvte = "LGPLv3+" |
| 5 | |
| 6 | LIC_FILES_CHKSUM = " \ |
| 7 | file://COPYING.GPL3;md5=2f31b266d3440dd7ee50f92cf67d8e6c \ |
| 8 | file://COPYING.LGPL2;md5=4fbd65380cdd255951079008b364516c \ |
| 9 | file://COPYING.LGPL3;md5=b52f2d57d10c4f7ee67a7eb9615d5d24 \ |
| 10 | " |
| 11 | |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 12 | DEPENDS = "glib-2.0 gtk+3 libpcre2 libxml2-native gperf-native icu" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 13 | |
| 14 | GNOMEBASEBUILDCLASS = "meson" |
| 15 | GIR_MESON_OPTION = 'gir' |
| 16 | |
| 17 | inherit gnomebase gtk-doc features_check upstream-version-is-even gobject-introspection |
| 18 | |
| 19 | # 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] | 20 | SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch" |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame] | 21 | SRC_URI[archive.sha256sum] = "b0300bbcf0c02df5812a10a3cb8e4fff723bab92c08c97a0a90c167cf543aff0" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 22 | |
| 23 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" |
| 24 | |
| 25 | # Instead of "inherit vala" we do the relevant settings here so we can |
| 26 | # set DEPENDS based on PACKAGECONFIG. |
| 27 | |
| 28 | # Our patched version of Vala looks in STAGING_DATADIR for .vapi files |
| 29 | export STAGING_DATADIR |
| 30 | # Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files |
| 31 | export XDG_DATA_DIRS = "${STAGING_DATADIR}" |
| 32 | |
| 33 | # Help g-ir-scanner find the .so for linking |
| 34 | do_compile_prepend() { |
| 35 | export GIR_EXTRA_LIBS_PATH="${B}/src/.libs" |
| 36 | } |
| 37 | |
| 38 | # Package additional files |
| 39 | FILES_${PN}-dev += "${datadir}/vala/vapi/*" |
| 40 | |
| 41 | PACKAGECONFIG ??= "gnutls" |
| 42 | PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false,vala-native vala" |
| 43 | PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls" |
Andrew Geissler | 4b740dc | 2020-05-05 08:54:39 -0500 | [diff] [blame] | 44 | PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 45 | # vala requires gir |
| 46 | PACKAGECONFIG_remove_class-native = "vala" |
| 47 | |
| 48 | CFLAGS += "-D_GNU_SOURCE" |
| 49 | |
| 50 | PACKAGES =+ "libvte ${PN}-prompt" |
| 51 | FILES_libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*" |
Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame] | 52 | FILES_${PN}-prompt = " \ |
| 53 | ${sysconfdir}/profile.d \ |
| 54 | ${libexecdir}/vte-urlencode-cwd \ |
| 55 | " |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 56 | |
| 57 | BBCLASSEXTEND = "native nativesdk" |