diff options
Diffstat (limited to 'meta/recipes-graphics/pango/pango_1.42.4.bb')
-rw-r--r-- | meta/recipes-graphics/pango/pango_1.42.4.bb | 33 |
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 | ||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" | 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" |
13 | 13 | ||
14 | GNOMEBASEBUILDCLASS = "meson" | ||
15 | |||
14 | inherit gnomebase gtk-doc ptest-gnome upstream-version-is-even gobject-introspection | 16 | inherit gnomebase gtk-doc ptest-gnome upstream-version-is-even gobject-introspection |
15 | 17 | ||
16 | SRC_URI += "file://run-ptest \ | 18 | SRC_URI += "file://run-ptest \ |
17 | file://0001-Enforce-recreation-of-docs-pango.types-it-is-build-c.patch \ | ||
18 | " | 19 | " |
19 | SRC_URI[archive.md5sum] = "deb171a31a3ad76342d5195a1b5bbc7c" | 20 | SRC_URI[archive.md5sum] = "deb171a31a3ad76342d5195a1b5bbc7c" |
20 | SRC_URI[archive.sha256sum] = "1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa7699d9f5da597c9d" | 21 | SRC_URI[archive.sha256sum] = "1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa7699d9f5da597c9d" |
@@ -22,18 +23,25 @@ SRC_URI[archive.sha256sum] = "1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa76 | |||
22 | DEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo harfbuzz fribidi" | 23 | DEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo harfbuzz fribidi" |
23 | 24 | ||
24 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" | 25 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" |
25 | PACKAGECONFIG[x11] = "--with-xft,--without-xft,virtual/libx11 libxft" | 26 | PACKAGECONFIG[x11] = ",,virtual/libx11 libxft" |
27 | |||
28 | GTKDOC_ENABLE_FLAG = "-Denable_docs=true" | ||
29 | GTKDOC_DISABLE_FLAG = "-Denable_docs=false" | ||
30 | |||
31 | GI_ENABLE_FLAG = "-Dgir=true" | ||
32 | GI_DISABLE_FLAG = "-Dgir=false" | ||
33 | |||
34 | EXTRA_OEMESON_append_class-nativesdk = " ${GI_DISABLE_FLAG}" | ||
35 | |||
36 | EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \ | ||
37 | '${GI_DISABLE_FLAG}', d)} " | ||
38 | |||
39 | EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_ENABLE_FLAG}', \ | ||
40 | '${GTKDOC_DISABLE_FLAG}', d)} " | ||
26 | 41 | ||
27 | LEAD_SONAME = "libpango-1.0*" | 42 | LEAD_SONAME = "libpango-1.0*" |
28 | LIBV = "1.8.0" | 43 | LIBV = "1.8.0" |
29 | 44 | ||
30 | # This binary needs to be compiled for the host architecture. This isn't pretty! | ||
31 | do_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 | |||
37 | FILES_${PN} = "${bindir}/* ${libdir}/libpango*${SOLIBS}" | 45 | FILES_${PN} = "${bindir}/* ${libdir}/libpango*${SOLIBS}" |
38 | FILES_${PN}-dev += "${libdir}/pango/${LIBV}/modules/*.la" | 46 | FILES_${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 | ||
45 | BBCLASSEXTEND = "native nativesdk" | 53 | BBCLASSEXTEND = "native nativesdk" |
54 | |||
55 | do_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 | } | ||