Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | SUMMARY = "Virtual terminal emulator GTK+ widget library" |
| 2 | BUGTRACKER = "https://bugzilla.gnome.org/buglist.cgi?product=vte" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 3 | LICENSE = "GPLv3 & LGPLv3+ & LGPLv2.1+" |
| 4 | LICENSE_libvte = "LGPLv3+" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 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 | |
| 12 | DEPENDS = "glib-2.0 gtk+3 libpcre2 intltool-native libxml2-native gperf-native" |
| 13 | |
| 14 | inherit gnomebase gtk-doc distro_features_check upstream-version-is-even gobject-introspection |
| 15 | |
| 16 | # vapigen.m4 is required when vala is not present (but the one from vala should be used normally) |
| 17 | SRC_URI += "file://0001-Don-t-enable-stack-protection-by-default.patch \ |
| 18 | ${@bb.utils.contains('PACKAGECONFIG', 'vala', '', 'file://0001-Add-m4-vapigen.m4.patch', d) } \ |
| 19 | file://0001-app.cc-use-old-school-asignment-to-avoid-gcc-4.8-err.patch \ |
| 20 | file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch \ |
| 21 | " |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 22 | SRC_URI[archive.md5sum] = "adf341807861a5dad9f98e5c701c0769" |
| 23 | SRC_URI[archive.sha256sum] = "17a1d4bc8848f1d2acfa4c20aaa24b9bac49f057b8909c56d3dafec2e2332648" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [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] = "--enable-vala,--disable-vala,vala-native vala" |
| 45 | PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls" |
| 46 | |
| 47 | CFLAGS += "-D_GNU_SOURCE" |
| 48 | |
| 49 | # libtool adds "-nostdlib" when g++ is used. This breaks PIE builds. |
| 50 | # Use libtool-cross (which has a hack to prevent that) instead. |
| 51 | EXTRA_OEMAKE_class-target = "LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool" |
| 52 | |
| 53 | PACKAGES =+ "libvte ${PN}-prompt" |
| 54 | FILES_libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*" |
| 55 | FILES_${PN}-prompt = "${sysconfdir}/profile.d" |
| 56 | |
| 57 | BBCLASSEXTEND = "native nativesdk" |