diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0_2.32.3.bb')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0_2.32.3.bb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.32.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.32.3.bb new file mode 100644 index 0000000000..c453941f4d --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.32.3.bb | |||
@@ -0,0 +1,54 @@ | |||
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 | file://nolibelf.patch \ | ||
17 | " | ||
18 | SRC_URI[md5sum] = "9bd3ac535c24b6c162be13b2c43c5adc" | ||
19 | SRC_URI[sha256sum] = "b65ceb462807e4a2f91c95e4293ce6bbefca308cb44a1407bcfdd9e40363ff4d" | ||
20 | |||
21 | SRC_URI_append_virtclass-native = " file://glib-gettextize-dir.patch" | ||
22 | BBCLASSEXTEND = "native nativesdk" | ||
23 | |||
24 | EXTRA_OECONF = "--disable-libelf" | ||
25 | |||
26 | PERLPATH = "${bindir}/env perl" | ||
27 | PERLPATH_virtclass-native = "/usr/bin/env perl" | ||
28 | PERLPATH_virtclass-nativesdk = "/usr/bin/env perl" | ||
29 | |||
30 | do_configure_prepend() { | ||
31 | # missing ${topdir}/gtk-doc.make and --disable-gtk-doc* is not enough, because it calls gtkdocize (not provided by gtk-doc-native) | ||
32 | sed -i '/^docs/d' ${S}/configure.ac | ||
33 | 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 | ||
34 | sed -i -e "s:TEST_PROGS += gdbus-serialization::g" ${S}/gio/tests/Makefile.am | ||
35 | } | ||
36 | |||
37 | do_install_append() { | ||
38 | # remove some unpackaged files | ||
39 | rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyc | ||
40 | rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyo | ||
41 | # and empty dirs | ||
42 | rmdir ${D}${libdir}/gio/modules/ | ||
43 | rmdir ${D}${libdir}/gio/ | ||
44 | |||
45 | # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location | ||
46 | # for target as /usr/bin/perl, so fix it to /usr/bin/perl. | ||
47 | if [ -f ${D}${bindir}/glib-mkenums ]; then | ||
48 | sed -i -e '1s,#!.*perl,#! ${PERLPATH},' ${D}${bindir}/glib-mkenums | ||
49 | fi | ||
50 | } | ||
51 | |||
52 | PACKAGES += "${PN}-codegen" | ||
53 | FILES_${PN}-codegen = "${libdir}/gdbus-2.0/codegen/*.py" | ||
54 | FILES_${PN} += "${datadir}/glib-2.0/gettext/mkinstalldirs ${datadir}/glib-2.0/gettext/po/Makefile.in.in" | ||