blob: 0ed382a5f9ed83baba91a93e531d80dc5e7dac77 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001SUMMARY = "Virtual terminal emulator GTK+ widget library"
2BUGTRACKER = "https://bugzilla.gnome.org/buglist.cgi?product=vte"
Brad Bishop15ae2502019-06-18 21:44:24 -04003LICENSE = "GPLv3 & LGPLv3+ & LGPLv2.1+"
4LICENSE_libvte = "LGPLv3+"
Brad Bishopc342db32019-05-15 21:57:59 -04005
6LIC_FILES_CHKSUM = " \
7 file://COPYING.GPL3;md5=2f31b266d3440dd7ee50f92cf67d8e6c \
8 file://COPYING.LGPL2;md5=4fbd65380cdd255951079008b364516c \
9 file://COPYING.LGPL3;md5=b52f2d57d10c4f7ee67a7eb9615d5d24 \
10"
11
Brad Bishop1d80a2e2019-11-15 16:35:03 -050012DEPENDS = "glib-2.0 gtk+3 libpcre2 libxml2-native gperf-native"
13
14GNOMEBASEBUILDCLASS = "meson"
15GIR_MESON_OPTION = 'gir'
Brad Bishopc342db32019-05-15 21:57:59 -040016
Brad Bishop6dbb3162019-11-25 09:41:34 -050017inherit gnomebase gtk-doc features_check upstream-version-is-even gobject-introspection
Brad Bishopc342db32019-05-15 21:57:59 -040018
19# vapigen.m4 is required when vala is not present (but the one from vala should be used normally)
Brad Bishop1d80a2e2019-11-15 16:35:03 -050020SRC_URI += "file://0001-app.cc-use-old-school-asignment-to-avoid-gcc-4.8-err.patch \
21 file://0002-Add-W_EXITCODE-macro-for-non-glibc-systems.patch \
Brad Bishopc342db32019-05-15 21:57:59 -040022 "
Brad Bishop1d80a2e2019-11-15 16:35:03 -050023SRC_URI[archive.md5sum] = "dadbf2c1d9864d3ea185738f97ab63af"
24SRC_URI[archive.sha256sum] = "33c966d2b1f2c3b0f9416dbca883fd746159b5bd040350e3b78f8104b2a42bc0"
Brad Bishopc342db32019-05-15 21:57:59 -040025
26ANY_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
32export STAGING_DATADIR
33# Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files
34export XDG_DATA_DIRS = "${STAGING_DATADIR}"
35
36# Help g-ir-scanner find the .so for linking
37do_compile_prepend() {
38 export GIR_EXTRA_LIBS_PATH="${B}/src/.libs"
39}
40
41# Package additional files
42FILES_${PN}-dev += "${datadir}/vala/vapi/*"
43
44PACKAGECONFIG ??= "gnutls"
Brad Bishop1d80a2e2019-11-15 16:35:03 -050045PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false,vala-native vala"
46PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls"
47# vala requires gir
48PACKAGECONFIG_remove_class-native = "vala"
Brad Bishopc342db32019-05-15 21:57:59 -040049
50CFLAGS += "-D_GNU_SOURCE"
51
Brad Bishopc342db32019-05-15 21:57:59 -040052PACKAGES =+ "libvte ${PN}-prompt"
53FILES_libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*"
54FILES_${PN}-prompt = "${sysconfdir}/profile.d"
55
56BBCLASSEXTEND = "native nativesdk"