diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2012-12-18 13:58:36 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-19 17:50:01 +0000 |
commit | d9e6b45a0abd15b24941d8d04142cd79399424ef (patch) | |
tree | 690914e243df74b173e9c45c60a24a45ce1509ed /meta/recipes-support/icu/icu.inc | |
parent | 871a15ba5d8eecae37f0152e50073c90c7fea16c (diff) | |
download | openembedded-core-contrib-d9e6b45a0abd15b24941d8d04142cd79399424ef.tar.gz |
ICU: upgrade to 50.1.
Upgrade ICU to 50.1.
All unnecessary patches of the previous version are dropped.
[YOCTO #3557]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-support/icu/icu.inc')
-rw-r--r-- | meta/recipes-support/icu/icu.inc | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-support/icu/icu.inc b/meta/recipes-support/icu/icu.inc new file mode 100644 index 0000000000..f7257d13e8 --- /dev/null +++ b/meta/recipes-support/icu/icu.inc @@ -0,0 +1,52 @@ +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" +STAGING_ICU_SOURCE_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/icu" + +PARALLEL_MAKE = "" +FULL_OPTIMIZATION_arm = "-Os" + +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. +EXTRA_OECONF = "--with-cross-build=${STAGING_DATADIR_NATIVE}/icu/source" +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() { + [ -f acinclude.m4 ] || cp aclocal.m4 acinclude.m4 +} + +do_install_append() { + if [ ${PN} == 'icu-native' ]; then + mkdir -p ${D}/${STAGING_ICU_SOURCE_DIR_NATIVE} + cp -r ${S} ${D}/${STAGING_ICU_SOURCE_DIR_NATIVE} + fi +} + +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" + |