Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "International Component for Unicode libraries" |
| 2 | DESCRIPTION = "The International Component for Unicode (ICU) is a mature, \ |
| 3 | portable set of C/C++ and Java libraries for Unicode support, software \ |
| 4 | internationalization (I18N) and globalization (G11N), giving applications the \ |
| 5 | same results on all platforms." |
| 6 | HOMEPAGE = "http://site.icu-project.org/" |
| 7 | |
| 8 | LICENSE = "ICU" |
| 9 | DEPENDS = "icu-native" |
| 10 | DEPENDS_class-native = "" |
| 11 | |
| 12 | S = "${WORKDIR}/icu/source" |
| 13 | SPDX_S = "${WORKDIR}/icu" |
| 14 | STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}" |
| 15 | |
| 16 | CPPFLAGS_append_libc-uclibc = " -DU_TIMEZONE=0" |
| 17 | |
| 18 | BINCONFIG = "${bindir}/icu-config" |
| 19 | |
| 20 | inherit autotools pkgconfig binconfig |
| 21 | |
| 22 | # ICU needs the native build directory as an argument to its --with-cross-build option when |
| 23 | # cross-compiling. Taken the situation that different builds may share a common sstate-cache |
| 24 | # into consideration, the native build directory needs to be staged. |
| 25 | EXTRA_OECONF = "--with-cross-build=${STAGING_ICU_DIR_NATIVE}" |
| 26 | EXTRA_OECONF_class-native = "" |
| 27 | EXTRA_OECONF_class-nativesdk = "--with-cross-build=${STAGING_ICU_DIR_NATIVE}" |
| 28 | |
| 29 | PREPROCESS_RELOCATE_DIRS = "${datadir}/${BPN}/${PV}" |
| 30 | do_install_append_class-native() { |
| 31 | mkdir -p ${D}/${STAGING_ICU_DIR_NATIVE}/config |
| 32 | cp -r ${B}/config/icucross.mk ${D}/${STAGING_ICU_DIR_NATIVE}/config |
| 33 | cp -r ${B}/config/icucross.inc ${D}/${STAGING_ICU_DIR_NATIVE}/config |
| 34 | cp -r ${B}/lib ${D}/${STAGING_ICU_DIR_NATIVE} |
| 35 | cp -r ${B}/bin ${D}/${STAGING_ICU_DIR_NATIVE} |
| 36 | cp -r ${B}/tools ${D}/${STAGING_ICU_DIR_NATIVE} |
| 37 | } |
| 38 | |
| 39 | PACKAGES =+ "libicudata libicuuc libicui18n libicule libiculx libicutu libicuio" |
| 40 | |
| 41 | FILES_${PN}-dev += "${libdir}/${BPN}/" |
| 42 | |
| 43 | FILES_libicudata = "${libdir}/libicudata.so.*" |
| 44 | FILES_libicuuc = "${libdir}/libicuuc.so.*" |
| 45 | FILES_libicui18n = "${libdir}/libicui18n.so.*" |
| 46 | FILES_libicule = "${libdir}/libicule.so.*" |
| 47 | FILES_libiculx = "${libdir}/libiculx.so.*" |
| 48 | FILES_libicutu = "${libdir}/libicutu.so.*" |
| 49 | FILES_libicuio = "${libdir}/libicuio.so.*" |
| 50 | |
| 51 | BBCLASSEXTEND = "native nativesdk" |