diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb new file mode 100644 index 0000000000..966a851f76 --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | require glib.inc | ||
2 | |||
3 | PR = "r0" | ||
4 | PE = "1" | ||
5 | |||
6 | DEPENDS += "libffi python-argparse-native zlib" | ||
7 | DEPENDS_class-native += "libffi-native python-argparse-native" | ||
8 | DEPENDS_class-nativesdk += "nativesdk-libffi python-argparse-native nativesdk-zlib ${BPN}-native" | ||
9 | |||
10 | SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}" | ||
11 | |||
12 | SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \ | ||
13 | file://configure-libtool.patch \ | ||
14 | file://glib-2.0_fix_for_x32.patch \ | ||
15 | " | ||
16 | SRC_URI[md5sum] = "a4ca31e258273c3761e3de2edd607661" | ||
17 | SRC_URI[sha256sum] = "855fcbf87cb93065b488358e351774d8a39177281023bae58c286f41612658a7" | ||
18 | |||
19 | SRC_URI_append_class-native = " file://glib-gettextize-dir.patch" | ||
20 | BBCLASSEXTEND = "native nativesdk" | ||
21 | |||
22 | do_configure_prepend() { | ||
23 | sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in | ||
24 | } | ||
25 | |||
26 | do_install_append() { | ||
27 | # remove some unpackaged files | ||
28 | rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyc | ||
29 | rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyo | ||
30 | # and empty dirs | ||
31 | rmdir ${D}${libdir}/gio/modules/ | ||
32 | rmdir ${D}${libdir}/gio/ | ||
33 | |||
34 | # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location | ||
35 | # for target as /usr/bin/perl, so fix it to /usr/bin/perl. | ||
36 | if [ -f ${D}${bindir}/glib-mkenums ]; then | ||
37 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/glib-mkenums | ||
38 | fi | ||
39 | } | ||