2011-09-30 15:33:03 +00:00
|
|
|
require glib.inc
|
|
|
|
|
|
|
|
PE = "1"
|
|
|
|
|
2013-05-13 15:27:30 +00:00
|
|
|
DEPENDS += "libffi zlib"
|
|
|
|
DEPENDS_class-native += "libffi-native"
|
|
|
|
DEPENDS_class-nativesdk += "nativesdk-libffi 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 \
|
2011-12-02 20:20:04 +00:00
|
|
|
file://glib-2.0_fix_for_x32.patch \
|
2013-02-11 15:02:04 +00:00
|
|
|
file://fix-conflicting-rand.patch \
|
2012-12-19 16:18:29 +00:00
|
|
|
file://Makefile-ptest.patch \
|
2013-07-08 02:45:09 +00:00
|
|
|
file://add-march-i486-into-CFLAGS-automatically.patch \
|
2012-12-19 16:18:29 +00:00
|
|
|
file://run-ptest \
|
2011-09-30 15:33:03 +00:00
|
|
|
"
|
|
|
|
|
2012-10-27 08:48:17 +00:00
|
|
|
SRC_URI_append_class-native = " file://glib-gettextize-dir.patch"
|
2013-04-21 21:37:16 +00:00
|
|
|
|
2013-07-04 15:08:56 +00:00
|
|
|
SRC_URI[md5sum] = "89180c7354b0acd3efb0a36ac05ca39c"
|
|
|
|
SRC_URI[sha256sum] = "5ec433bf6ce02e4c436619c3d0b9cecdd1898469398a636bad27c1f5804c761e"
|
2013-04-21 21:37:16 +00:00
|
|
|
|
2011-10-11 05:09:36 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
2011-09-30 15:33:03 +00:00
|
|
|
|
2012-12-19 16:18:29 +00:00
|
|
|
RDEPENDS_${PN}-ptest += "\
|
2013-02-11 15:02:04 +00:00
|
|
|
tzdata \
|
|
|
|
tzdata-americas \
|
|
|
|
tzdata-asia \
|
|
|
|
tzdata-europe \
|
|
|
|
tzdata-posix \
|
|
|
|
python-pygobject \
|
|
|
|
python-dbus \
|
|
|
|
"
|
|
|
|
|
|
|
|
RDEPENDS_${PN}-ptest_append_libc-glibc = "\
|
2012-12-19 16:18:29 +00:00
|
|
|
eglibc-gconv-utf-16 \
|
|
|
|
eglibc-charmap-utf-8 \
|
|
|
|
eglibc-gconv-cp1255 \
|
|
|
|
eglibc-charmap-cp1255 \
|
|
|
|
eglibc-gconv-utf-32 \
|
|
|
|
eglibc-gconv-utf-7 \
|
|
|
|
eglibc-charmap-invariant \
|
|
|
|
eglibc-localedata-translit-cjk-variants \
|
|
|
|
"
|
|
|
|
|
2011-09-30 15:33:03 +00:00
|
|
|
do_configure_prepend() {
|
2012-07-18 17:38:05 +00:00
|
|
|
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
|
2013-04-21 21:37:16 +00:00
|
|
|
rm -f ${D}${datadir}/glib-2.0/codegen/*.pyc
|
|
|
|
rm -f ${D}${datadir}/glib-2.0/codegen/*.pyo
|
2012-02-23 11:34:37 +00:00
|
|
|
# and empty dirs
|
2012-12-19 16:18:29 +00:00
|
|
|
rm -rf ${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
|
|
|
}
|