diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-graphics/pango | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-graphics/pango')
-rw-r--r-- | meta/recipes-graphics/pango/pango.inc | 97 | ||||
-rw-r--r-- | meta/recipes-graphics/pango/pango/multilib-fix-clean.patch | 75 | ||||
-rw-r--r-- | meta/recipes-graphics/pango/pango/run-ptest | 3 | ||||
-rw-r--r-- | meta/recipes-graphics/pango/pango_1.36.6.bb | 12 |
4 files changed, 187 insertions, 0 deletions
diff --git a/meta/recipes-graphics/pango/pango.inc b/meta/recipes-graphics/pango/pango.inc new file mode 100644 index 0000000000..b59d33d14f --- /dev/null +++ b/meta/recipes-graphics/pango/pango.inc | |||
@@ -0,0 +1,97 @@ | |||
1 | SUMMARY = "Framework for layout and rendering of internationalized text" | ||
2 | DESCRIPTION = "Pango is a library for laying out and rendering of text, \ | ||
3 | with an emphasis on internationalization. Pango can be used anywhere \ | ||
4 | that text layout is needed, though most of the work on Pango so far has \ | ||
5 | been done in the context of the GTK+ widget toolkit. Pango forms the \ | ||
6 | core of text and font handling for GTK+-2.x." | ||
7 | HOMEPAGE = "http://www.pango.org/" | ||
8 | BUGTRACKER = "http://bugzilla.gnome.org" | ||
9 | SECTION = "libs" | ||
10 | LICENSE = "LGPLv2.0+" | ||
11 | |||
12 | X11DEPENDS = "virtual/libx11 libxft" | ||
13 | DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv cairo harfbuzz qemu-native" | ||
14 | |||
15 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ | ||
16 | ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'ptest', '', d)}" | ||
17 | |||
18 | PACKAGECONFIG[x11] = "--with-xft,--without-xft,${X11DEPENDS}" | ||
19 | PACKAGECONFIG[ptest] = "--enable-installed-tests,--disable-installed-tests,glib-2.0-native" | ||
20 | |||
21 | BBCLASSEXTEND = "native" | ||
22 | DEPENDS_class-native = "glib-2.0-native cairo-native harfbuzz-native" | ||
23 | |||
24 | PACKAGES_DYNAMIC += "^pango-module-.*" | ||
25 | |||
26 | RRECOMMENDS_${PN} = "pango-module-basic-fc" | ||
27 | |||
28 | inherit gnomebase gtk-doc qemu ptest | ||
29 | |||
30 | # Create a pango-modules package | ||
31 | ALLOW_EMPTY_${BPN}-modules = "1" | ||
32 | PACKAGES += "${BPN}-modules" | ||
33 | RRECOMMENDS_${BPN}-modules = "${@" ".join([p for p in d.getVar('PACKAGES', True).split() if p.find("pango-module") != -1])}" | ||
34 | |||
35 | |||
36 | EXTRA_AUTORECONF = "" | ||
37 | |||
38 | # seems to go wrong with default cflags | ||
39 | FULL_OPTIMIZATION_arm = "-O2" | ||
40 | |||
41 | EXTRA_OECONF = "--disable-introspection \ | ||
42 | --enable-explicit-deps=no \ | ||
43 | --disable-debug \ | ||
44 | --with-mlprefix=${MLPREFIX}" | ||
45 | |||
46 | LEAD_SONAME = "libpango-1.0*" | ||
47 | LIBV = "1.8.0" | ||
48 | |||
49 | postinst_prologue() { | ||
50 | if ! [ -e $D${sysconfdir}/pango ] ; then | ||
51 | mkdir -p $D${sysconfdir}/pango | ||
52 | fi | ||
53 | |||
54 | if [ "x$D" != "x" ]; then | ||
55 | ${@qemu_run_binary(d, '$D','${bindir}/${MLPREFIX}pango-querymodules')} \ | ||
56 | $D${libdir}/pango/${LIBV}/modules/*.so \ | ||
57 | > $D${sysconfdir}/pango/${MLPREFIX}pango.modules 2>/dev/null | ||
58 | |||
59 | [ $? -ne 0 ] && exit 1 | ||
60 | |||
61 | sed -i -e "s:$D::" $D${sysconfdir}/pango/${MLPREFIX}pango.modules | ||
62 | |||
63 | exit 0 | ||
64 | fi | ||
65 | } | ||
66 | |||
67 | # This binary needs to be compiled for the host architecture. This isn't pretty! | ||
68 | do_compile_prepend () { | ||
69 | if ${@base_contains('DISTRO_FEATURES', 'ptest', 'true', 'false', d)}; then | ||
70 | make CC="${BUILD_CC}" CFLAGS="" 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 | ||
71 | fi | ||
72 | } | ||
73 | |||
74 | do_install_append () { | ||
75 | if [ "${MLPREFIX}" != "" ]; then | ||
76 | mv ${D}/${bindir}/pango-querymodules ${D}/${bindir}/${MLPREFIX}pango-querymodules | ||
77 | fi | ||
78 | } | ||
79 | |||
80 | |||
81 | python populate_packages_prepend () { | ||
82 | prologue = d.getVar("postinst_prologue", True) | ||
83 | |||
84 | modules_root = d.expand('${libdir}/pango/${LIBV}/modules') | ||
85 | |||
86 | do_split_packages(d, modules_root, '^pango-(.*)\.so$', 'pango-module-%s', 'Pango module %s', prologue + '${bindir}/${MLPREFIX}pango-querymodules > /etc/pango/${MLPREFIX}pango.modules') | ||
87 | } | ||
88 | |||
89 | FILES_${PN} = "${sysconfdir}/pango/* ${bindir}/* ${libdir}/libpango*${SOLIBS}" | ||
90 | FILES_${PN}-dbg += "${libdir}/pango/${LIBV}/modules/.debug" | ||
91 | FILES_${PN}-dev += "${libdir}/pango/${LIBV}/modules/*.la" | ||
92 | |||
93 | FILES_${PN}-ptest += "${libexecdir}/installed-tests/* \ | ||
94 | ${datadir}/installed-tests/pango" | ||
95 | FILES_${PN}-dbg += "${libexecdir}/installed-tests/.debug" | ||
96 | |||
97 | RDEPENDS_${PN}-ptest += "gnome-desktop-testing liberation-fonts" | ||
diff --git a/meta/recipes-graphics/pango/pango/multilib-fix-clean.patch b/meta/recipes-graphics/pango/pango/multilib-fix-clean.patch new file mode 100644 index 0000000000..ad414ddf36 --- /dev/null +++ b/meta/recipes-graphics/pango/pango/multilib-fix-clean.patch | |||
@@ -0,0 +1,75 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Updated to apply to pango-1.32.5 | ||
4 | |||
5 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
6 | diff -Nurd pango-1.32.5/configure.ac pango-1.32.5/configure.ac | ||
7 | --- pango-1.32.5/configure.ac 2012-12-07 04:43:25.000000000 +0200 | ||
8 | +++ pango-1.32.5/configure.ac 2013-01-09 08:27:40.328516792 +0200 | ||
9 | @@ -213,6 +213,11 @@ | ||
10 | |||
11 | AC_SUBST(PANGO_DEBUG_FLAGS) | ||
12 | |||
13 | +AC_ARG_WITH(mlprefix, | ||
14 | + AC_HELP_STRING([--with-mlprefix=<ARG>], [multilib prefix]), | ||
15 | + mlprefix_str=$withval, mlprefix_str="") | ||
16 | +AC_DEFINE_UNQUOTED([MLPREFIX], ["$mlprefix_str"], [multilib prefix.]) | ||
17 | + | ||
18 | AC_ARG_ENABLE(rebuilds, | ||
19 | [AC_HELP_STRING([--disable-rebuilds], | ||
20 | [disable all source autogeneration rules])],, | ||
21 | diff -Nurd pango-1.32.5/pango/modules.c pango-1.32.5/pango/modules.c | ||
22 | --- pango-1.32.5/pango/modules.c 2012-12-17 20:27:56.000000000 +0200 | ||
23 | +++ pango-1.32.5/pango/modules.c 2013-01-09 08:31:16.336512052 +0200 | ||
24 | @@ -555,11 +555,11 @@ | ||
25 | files = g_new (char *, 3); | ||
26 | |||
27 | files[0] = g_build_filename (pango_get_sysconf_subdirectory (), | ||
28 | - "pango.modules", | ||
29 | + MLPREFIX "pango.modules", | ||
30 | NULL); | ||
31 | files[1] = g_build_filename (pango_get_lib_subdirectory (), | ||
32 | MODULE_VERSION, | ||
33 | - "modules.cache", | ||
34 | + MLPREFIX "modules.cache", | ||
35 | NULL); | ||
36 | files[2] = NULL; | ||
37 | } | ||
38 | @@ -674,7 +674,8 @@ | ||
39 | if (!no_module_warning) | ||
40 | { | ||
41 | gchar *filename = g_build_filename (pango_get_sysconf_subdirectory (), | ||
42 | - "pango.modules", | ||
43 | +/* For multilib case, keep multiple config file for different libs */ | ||
44 | + MLPREFIX "pango.modules", | ||
45 | NULL); | ||
46 | g_critical ("No modules found:\n" | ||
47 | "No builtin or dynamically loaded modules were found.\n" | ||
48 | diff -Nurd pango-1.32.5/pango/modules.c.rej pango-1.32.5/pango/modules.c.rej | ||
49 | --- pango-1.32.5/pango/modules.c.rej 1970-01-01 02:00:00.000000000 +0200 | ||
50 | +++ pango-1.32.5/pango/modules.c.rej 2013-01-09 08:27:40.328516792 +0200 | ||
51 | @@ -0,0 +1,12 @@ | ||
52 | +--- pango/modules.c 2010-09-22 03:37:01.000000000 +0800 | ||
53 | ++++ pango/modules.c 2012-05-08 21:21:02.000000000 +0800 | ||
54 | +@@ -529,7 +529,8 @@ | ||
55 | + | ||
56 | + if (!file_str) | ||
57 | + file_str = g_build_filename (pango_get_sysconf_subdirectory (), | ||
58 | +- "pango.modules", | ||
59 | ++/* For multilib case, keep multiple config file for different libs */ | ||
60 | ++ MLPREFIX "pango.modules", | ||
61 | + NULL); | ||
62 | + | ||
63 | + files = pango_split_file_list (file_str); | ||
64 | diff -Nurd pango-1.32.5/pango/querymodules.c pango-1.32.5/pango/querymodules.c | ||
65 | --- pango-1.32.5/pango/querymodules.c 2012-08-28 15:27:18.000000000 +0300 | ||
66 | +++ pango-1.32.5/pango/querymodules.c 2013-01-09 08:31:47.828511359 +0200 | ||
67 | @@ -304,7 +304,7 @@ | ||
68 | |||
69 | cache_file = g_build_filename (pango_get_lib_subdirectory (), | ||
70 | MODULE_VERSION, | ||
71 | - "modules.cache", | ||
72 | + MLPREFIX "modules.cache", | ||
73 | NULL); | ||
74 | err = NULL; | ||
75 | if (!g_file_set_contents (cache_file, contents->str, -1, &err)) | ||
diff --git a/meta/recipes-graphics/pango/pango/run-ptest b/meta/recipes-graphics/pango/pango/run-ptest new file mode 100644 index 0000000000..fa87a75779 --- /dev/null +++ b/meta/recipes-graphics/pango/pango/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | gnome-desktop-testing-runner pango | ||
diff --git a/meta/recipes-graphics/pango/pango_1.36.6.bb b/meta/recipes-graphics/pango/pango_1.36.6.bb new file mode 100644 index 0000000000..61ae359e93 --- /dev/null +++ b/meta/recipes-graphics/pango/pango_1.36.6.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require pango.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" | ||
4 | |||
5 | GNOME_COMPRESS_TYPE="xz" | ||
6 | |||
7 | SRC_URI += "file://run-ptest \ | ||
8 | file://multilib-fix-clean.patch \ | ||
9 | " | ||
10 | |||
11 | SRC_URI[archive.md5sum] = "1c27523c3f3a4efe4d9d303d0d240320" | ||
12 | SRC_URI[archive.sha256sum] = "4c53c752823723875078b91340f32136aadb99e91c0f6483f024f978a02c8624" \ No newline at end of file | ||