diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0_2.30.1.bb')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0_2.30.1.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.30.1.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.30.1.bb new file mode 100644 index 0000000000..408ab839b4 --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.30.1.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | require glib.inc | ||
2 | |||
3 | PR = "r0" | ||
4 | PE = "1" | ||
5 | |||
6 | DEPENDS += "libffi python-argparse-native" | ||
7 | DEPENDS_virtclass-native += "libffi-native python-argparse-native" | ||
8 | DEPENDS_virtclass-nativesdk += "libffi-nativesdk python-argparse-native zlib-nativesdk" | ||
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.bz2 \ | ||
13 | file://configure-libtool.patch \ | ||
14 | file://60_wait-longer-for-threads-to-die.patch \ | ||
15 | file://g_once_init_enter.patch \ | ||
16 | " | ||
17 | SRC_URI[md5sum] = "921ef2e86e911feb5e21f656f1ac305b" | ||
18 | SRC_URI[sha256sum] = "4e560319450f31d85b6cdb2b530c3324a510ca04817e360943d0774327d21804" | ||
19 | |||
20 | # Only apply this patch for target recipe on uclibc | ||
21 | SRC_URI_append_libc-uclibc = " ${@['', 'file://no-iconv.patch']['${PN}' == '${BPN}']}" | ||
22 | |||
23 | SRC_URI_append_virtclass-native = " file://glib-gettextize-dir.patch" | ||
24 | BBCLASSEXTEND = "native nativesdk" | ||
25 | |||
26 | do_configure_prepend() { | ||
27 | # missing ${topdir}/gtk-doc.make and --disable-gtk-doc* is not enough, because it calls gtkdocize (not provided by gtk-doc-native) | ||
28 | sed -i '/^docs/d' ${S}/configure.ac | ||
29 | 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 | ||
30 | sed -i -e "s:TEST_PROGS += gdbus-serialization::g" ${S}/gio/tests/Makefile.am | ||
31 | } | ||
32 | |||
33 | do_install_append() { | ||
34 | # remove some unpackaged files | ||
35 | rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyc | ||
36 | rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyo | ||
37 | } | ||
38 | |||
39 | PACKAGES += "${PN}-codegen" | ||
40 | FILES_${PN}-codegen = "${libdir}/gdbus-2.0/codegen/*.py" | ||
41 | FILES_${PN} += "${datadir}/glib-2.0/gettext/mkinstalldirs ${datadir}/glib-2.0/gettext/po/Makefile.in.in" | ||