2012-12-18 05:58:36 +00:00
SUMMARY = " International Component for Unicode libraries "
DESCRIPTION = " The International Component for Unicode (ICU) is a mature, portable set of C/C++ and Java libraries for Unicode support, software internationalization (I18N) and globalization (G11N), giving applications the same results on all platforms. "
HOMEPAGE = " http://site.icu-project.org/ "
LICENSE = " ICU "
DEPENDS = " icu-native "
DEPENDS_class - native = " "
S = " ${ WORKDIR } /icu/source "
2012-12-19 05:14:05 +00:00
STAGING_ICU_DIR_NATIVE = " ${ STAGING_DATADIR_NATIVE}/${BPN}/${PV } "
2012-12-18 05:58:36 +00:00
PARALLEL_MAKE = " "
FULL_OPTIMIZATION_arm = " -Os "
2013-01-24 05:57:08 +00:00
CPPFLAGS_append_libc - uclibc = " -DU_TIMEZONE=0 "
2012-12-18 05:58:36 +00:00
inherit autotools pkgconfig binconfig
# ICU needs the native build directory as an argument to its --with-cross-build option when
# cross-compiling. Taken the situation that different builds may share a common sstate-cache
# into consideration, the native build directory needs to be staged.
2012-12-19 05:14:05 +00:00
EXTRA_OECONF = " --with-cross-build= ${ STAGING_ICU_DIR_NATIVE } "
2012-12-18 05:58:36 +00:00
EXTRA_OECONF_class - native = " "
# ICU puts custom m4 autoconf functions in aclocal.m4.
# However, this file is deleted in our build system.
# To make it work, we copy aclocal.m4 to acinclude.m4.
# This is a bug of ICU. See bug reference:
# http://bugs.icu-project.org/trac/ticket/9790
do_configure_prepend () {
2013-03-18 02:05:05 +00:00
[ - f $ { S } / acinclude . m4 ] || cp $ { S } / aclocal . m4 $ { S } / acinclude . m4
2012-12-18 05:58:36 +00:00
}
2012-12-19 05:14:05 +00:00
do_install_append_class - native () {
mkdir - p $ { D } / $ { STAGING_ICU_DIR_NATIVE } / config
2013-03-18 02:05:05 +00:00
cp - r $ { B } / config / icucross . mk $ { D } / $ { STAGING_ICU_DIR_NATIVE } / config
cp - r $ { B } / lib $ { D } / $ { STAGING_ICU_DIR_NATIVE }
cp - r $ { B } / bin $ { D } / $ { STAGING_ICU_DIR_NATIVE }
cp - r $ { B } / tools $ { D } / $ { STAGING_ICU_DIR_NATIVE }
2012-12-19 05:14:05 +00:00
2012-12-18 05:58:36 +00:00
}
PACKAGES =+ " libicudata libicuuc libicui18n libicule libiculx libicutu libicuio "
FILES_ $ { PN } - dev += " ${ libdir}/${BPN } / "
FILES_libicudata = " ${ libdir } /libicudata.so.* "
FILES_libicuuc = " ${ libdir } /libicuuc.so.* "
FILES_libicui18n = " ${ libdir } /libicui18n.so.* "
FILES_libicule = " ${ libdir } /libicule.so.* "
FILES_libiculx = " ${ libdir } /libiculx.so.* "
FILES_libicutu = " ${ libdir } /libicutu.so.* "
FILES_libicuio = " ${ libdir } /libicuio.so.* "
BBCLASSEXTEND = " native "