diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0_2.32.2.bb')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0_2.32.2.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.32.2.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.32.2.bb new file mode 100644 index 0000000000..f303cb4c6a --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.32.2.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | require glib.inc | ||
2 | |||
3 | PE = "1" | ||
4 | |||
5 | DEPENDS += "libffi python-argparse-native zlib" | ||
6 | DEPENDS_virtclass-native += "libffi-native python-argparse-native" | ||
7 | DEPENDS_virtclass-nativesdk += "libffi-nativesdk python-argparse-native zlib-nativesdk" | ||
8 | |||
9 | SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}" | ||
10 | |||
11 | SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \ | ||
12 | file://configure-libtool.patch \ | ||
13 | file://60_wait-longer-for-threads-to-die.patch \ | ||
14 | file://glib-2.0_fix_for_x32.patch \ | ||
15 | file://nodbus.patch \ | ||
16 | " | ||
17 | SRC_URI[md5sum] = "5bfdb6197afb90e4dbc7b1bb98f0eae0" | ||
18 | SRC_URI[sha256sum] = "b1764abf00bac96e0e93e29fb9715ce75f3583579acac40648e18771d43d6136" | ||
19 | |||
20 | SRC_URI_append_virtclass-native = " file://glib-gettextize-dir.patch" | ||
21 | BBCLASSEXTEND = "native nativesdk" | ||
22 | |||
23 | PERLPATH = "${bindir}/env perl" | ||
24 | PERLPATH_virtclass-native = "/usr/bin/env perl" | ||
25 | PERLPATH_virtclass-nativesdk = "/usr/bin/env perl" | ||
26 | |||
27 | do_configure_prepend() { | ||
28 | # missing ${topdir}/gtk-doc.make and --disable-gtk-doc* is not enough, because it calls gtkdocize (not provided by gtk-doc-native) | ||
29 | sed -i '/^docs/d' ${S}/configure.ac | ||
30 | sed -i 's/SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po docs/SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po/g' ${S}/Makefile.am | ||
31 | sed -i -e "s:TEST_PROGS += gdbus-serialization::g" ${S}/gio/tests/Makefile.am | ||
32 | } | ||
33 | |||
34 | do_install_append() { | ||
35 | # remove some unpackaged files | ||
36 | rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyc | ||
37 | rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyo | ||
38 | # and empty dirs | ||
39 | rmdir ${D}${libdir}/gio/modules/ | ||
40 | rmdir ${D}${libdir}/gio/ | ||
41 | |||
42 | # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location | ||
43 | # for target as /usr/bin/perl, so fix it to /usr/bin/perl. | ||
44 | if [ -f ${D}${bindir}/glib-mkenums ]; then | ||
45 | sed -i -e '1s,#!.*perl,#! ${PERLPATH},' ${D}${bindir}/glib-mkenums | ||
46 | fi | ||
47 | } | ||
48 | |||
49 | PACKAGES += "${PN}-codegen" | ||
50 | FILES_${PN}-codegen = "${libdir}/gdbus-2.0/codegen/*.py" | ||
51 | FILES_${PN} += "${datadir}/glib-2.0/gettext/mkinstalldirs ${datadir}/glib-2.0/gettext/po/Makefile.in.in" | ||