diff options
Diffstat (limited to 'meta/recipes-support/vte/vte_0.44.2.bb')
-rw-r--r-- | meta/recipes-support/vte/vte_0.44.2.bb | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/meta/recipes-support/vte/vte_0.44.2.bb b/meta/recipes-support/vte/vte_0.44.2.bb index a1204a3c3b..a0b671e05b 100644 --- a/meta/recipes-support/vte/vte_0.44.2.bb +++ b/meta/recipes-support/vte/vte_0.44.2.bb | |||
@@ -5,24 +5,39 @@ DEPENDS = "glib-2.0 gtk+3 intltool-native" | |||
5 | 5 | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" |
7 | 7 | ||
8 | inherit gnomebase gtk-doc distro_features_check upstream-version-is-even vala gobject-introspection | 8 | inherit gnomebase gtk-doc distro_features_check upstream-version-is-even gobject-introspection |
9 | 9 | ||
10 | SRC_URI += "file://0001-Don-t-enable-stack-protection-by-default.patch" | 10 | # vapigen.m4 is required when vala is not present (but the one from vala should be used normally) |
11 | SRC_URI += "file://0001-Don-t-enable-stack-protection-by-default.patch \ | ||
12 | ${@bb.utils.contains('PACKAGECONFIG', 'vala', '', 'file://0001-Add-m4-vapigen.m4.patch', d) } \ | ||
13 | " | ||
11 | SRC_URI[archive.md5sum] = "eca8f8a9d9f9bb8e9d592d0acfeec015" | 14 | SRC_URI[archive.md5sum] = "eca8f8a9d9f9bb8e9d592d0acfeec015" |
12 | SRC_URI[archive.sha256sum] = "a1ea594814bb136a3a9a6c7656b46240571f6a198825c1111007fe99194b0949" | 15 | SRC_URI[archive.sha256sum] = "a1ea594814bb136a3a9a6c7656b46240571f6a198825c1111007fe99194b0949" |
13 | 16 | ||
14 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" | 17 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" |
15 | 18 | ||
19 | # Instead of "inherit vala" we do the relevant settings here so we can | ||
20 | # set DEPENDS based on PACKAGECONFIG. | ||
21 | |||
22 | # Our patched version of Vala looks in STAGING_DATADIR for .vapi files | ||
23 | export STAGING_DATADIR | ||
24 | # Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files | ||
25 | export XDG_DATA_DIRS = "${STAGING_DATADIR}" | ||
26 | |||
27 | # Package additional files | ||
28 | FILES_${PN}-dev += "${datadir}/vala/vapi/*" | ||
29 | |||
30 | PACKAGECONFIG ??= "" | ||
31 | PACKAGECONFIG[vala] = "--enable-vala,--disable-vala,vala-native vala" | ||
16 | PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls" | 32 | PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls" |
17 | 33 | ||
18 | CFLAGS += "-D_GNU_SOURCE" | 34 | CFLAGS += "-D_GNU_SOURCE" |
19 | 35 | ||
20 | # Enable vala only if gobject-introspection is enabled | 36 | EXTRA_OECONF = "--disable-test-application" |
21 | EXTRA_OECONF = "--enable-vala=auto --disable-test-application" | ||
22 | 37 | ||
23 | # libtool adds "-nostdlib" when g++ is used. This breaks PIE builds. | 38 | # libtool adds "-nostdlib" when g++ is used. This breaks PIE builds. |
24 | # Use libtool-cross (which has a hack to prevent that) instead. | 39 | # Use libtool-cross (which has a hack to prevent that) instead. |
25 | EXTRA_OEMAKE_class-target = "LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool" | 40 | EXTRA_OEMAKE_class-target = "LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool" |
26 | 41 | ||
27 | PACKAGES =+ "libvte" | 42 | PACKAGES =+ "libvte" |
28 | FILES_libvte = "${libdir}/*.so.*" | 43 | FILES_libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*" |