summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/pango/pango_1.42.4.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/pango/pango_1.42.4.bb')
-rw-r--r--meta/recipes-graphics/pango/pango_1.42.4.bb33
1 files changed, 24 insertions, 9 deletions
diff --git a/meta/recipes-graphics/pango/pango_1.42.4.bb b/meta/recipes-graphics/pango/pango_1.42.4.bb
index a09f7a8e70..e181bcb500 100644
--- a/meta/recipes-graphics/pango/pango_1.42.4.bb
+++ b/meta/recipes-graphics/pango/pango_1.42.4.bb
@@ -11,10 +11,11 @@ LICENSE = "LGPLv2.0+"
11 11
12LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" 12LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
13 13
14GNOMEBASEBUILDCLASS = "meson"
15
14inherit gnomebase gtk-doc ptest-gnome upstream-version-is-even gobject-introspection 16inherit gnomebase gtk-doc ptest-gnome upstream-version-is-even gobject-introspection
15 17
16SRC_URI += "file://run-ptest \ 18SRC_URI += "file://run-ptest \
17 file://0001-Enforce-recreation-of-docs-pango.types-it-is-build-c.patch \
18" 19"
19SRC_URI[archive.md5sum] = "deb171a31a3ad76342d5195a1b5bbc7c" 20SRC_URI[archive.md5sum] = "deb171a31a3ad76342d5195a1b5bbc7c"
20SRC_URI[archive.sha256sum] = "1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa7699d9f5da597c9d" 21SRC_URI[archive.sha256sum] = "1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa7699d9f5da597c9d"
@@ -22,18 +23,25 @@ SRC_URI[archive.sha256sum] = "1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa76
22DEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo harfbuzz fribidi" 23DEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo harfbuzz fribidi"
23 24
24PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" 25PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
25PACKAGECONFIG[x11] = "--with-xft,--without-xft,virtual/libx11 libxft" 26PACKAGECONFIG[x11] = ",,virtual/libx11 libxft"
27
28GTKDOC_ENABLE_FLAG = "-Denable_docs=true"
29GTKDOC_DISABLE_FLAG = "-Denable_docs=false"
30
31GI_ENABLE_FLAG = "-Dgir=true"
32GI_DISABLE_FLAG = "-Dgir=false"
33
34EXTRA_OEMESON_append_class-nativesdk = " ${GI_DISABLE_FLAG}"
35
36EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \
37 '${GI_DISABLE_FLAG}', d)} "
38
39EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_ENABLE_FLAG}', \
40 '${GTKDOC_DISABLE_FLAG}', d)} "
26 41
27LEAD_SONAME = "libpango-1.0*" 42LEAD_SONAME = "libpango-1.0*"
28LIBV = "1.8.0" 43LIBV = "1.8.0"
29 44
30# This binary needs to be compiled for the host architecture. This isn't pretty!
31do_compile_prepend_class-target () {
32 if ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then
33 make CC="${BUILD_CC}" CFLAGS="" LDFLAGS="${BUILD_LDFLAGS}" AM_CPPFLAGS="$(pkg-config-native --cflags glib-2.0)" gen_all_unicode_LDADD="$(pkg-config-native --libs glib-2.0)" -C ${B}/tests gen-all-unicode
34 fi
35}
36
37FILES_${PN} = "${bindir}/* ${libdir}/libpango*${SOLIBS}" 45FILES_${PN} = "${bindir}/* ${libdir}/libpango*${SOLIBS}"
38FILES_${PN}-dev += "${libdir}/pango/${LIBV}/modules/*.la" 46FILES_${PN}-dev += "${libdir}/pango/${LIBV}/modules/*.la"
39 47
@@ -43,3 +51,10 @@ RPROVIDES_${PN} += "pango-modules pango-module-indic-lang \
43 pango-module-basic-fc pango-module-arabic-lang" 51 pango-module-basic-fc pango-module-arabic-lang"
44 52
45BBCLASSEXTEND = "native nativesdk" 53BBCLASSEXTEND = "native nativesdk"
54
55do_install_append () {
56 if [ "${PTEST_ENABLED}" != "1" ]; then
57 rm -rf ${D}${libexecdir}/installed-tests ${D}${datadir}/installed-tests
58 rmdir --ignore-fail-on-non-empty ${D}${libexecdir} ${D}${datadir}
59 fi
60}