2011-09-30 15:33:03 +00:00
|
|
|
require glib.inc
|
|
|
|
|
2012-09-16 18:47:26 +00:00
|
|
|
PR = "r6"
|
2011-09-30 15:33:03 +00:00
|
|
|
PE = "1"
|
|
|
|
|
2011-12-29 00:08:42 +00:00
|
|
|
DEPENDS += "libffi python-argparse-native zlib"
|
2011-09-30 15:33:03 +00:00
|
|
|
DEPENDS_virtclass-native += "libffi-native python-argparse-native"
|
2011-12-22 17:43:33 +00:00
|
|
|
DEPENDS_virtclass-nativesdk += "nativesdk-libffi python-argparse-native nativesdk-zlib ${BPN}-native"
|
2011-09-30 15:33:03 +00:00
|
|
|
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}"
|
2011-09-30 15:33:03 +00:00
|
|
|
|
2012-03-15 02:47:24 +00:00
|
|
|
SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
|
2011-09-30 15:33:03 +00:00
|
|
|
file://configure-libtool.patch \
|
|
|
|
file://60_wait-longer-for-threads-to-die.patch \
|
2011-12-02 20:20:04 +00:00
|
|
|
file://glib-2.0_fix_for_x32.patch \
|
2012-02-25 14:55:51 +00:00
|
|
|
file://nodbus.patch \
|
2012-05-07 09:49:43 +00:00
|
|
|
file://nolibelf.patch \
|
2011-09-30 15:33:03 +00:00
|
|
|
"
|
2012-07-16 16:07:17 +00:00
|
|
|
SRC_URI[md5sum] = "bf84fefd9c1a5b5a7a38736f4ddd674a"
|
|
|
|
SRC_URI[sha256sum] = "a5d742a4fda22fb6975a8c0cfcd2499dd1c809b8afd4ef709bda4d11b167fae2"
|
2011-09-30 15:33:03 +00:00
|
|
|
|
|
|
|
SRC_URI_append_virtclass-native = " file://glib-gettextize-dir.patch"
|
2011-10-11 05:09:36 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
2011-09-30 15:33:03 +00:00
|
|
|
|
|
|
|
do_configure_prepend() {
|
2012-07-18 17:38:05 +00:00
|
|
|
sed -i -e "s:TEST_PROGS += gdbus-serialization::g" ${S}/gio/tests/Makefile.am
|
|
|
|
sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
|
2011-09-30 15:33:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
# remove some unpackaged files
|
|
|
|
rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyc
|
|
|
|
rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyo
|
2012-02-23 11:34:37 +00:00
|
|
|
# and empty dirs
|
|
|
|
rmdir ${D}${libdir}/gio/modules/
|
|
|
|
rmdir ${D}${libdir}/gio/
|
2012-04-16 08:36:45 +00:00
|
|
|
|
|
|
|
# Some distros have both /bin/perl and /usr/bin/perl, but we set perl location
|
|
|
|
# for target as /usr/bin/perl, so fix it to /usr/bin/perl.
|
|
|
|
if [ -f ${D}${bindir}/glib-mkenums ]; then
|
2012-07-18 17:38:05 +00:00
|
|
|
sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/glib-mkenums
|
2012-04-16 08:36:45 +00:00
|
|
|
fi
|
2011-09-30 15:33:03 +00:00
|
|
|
}
|