blob: cc6f222a50a35efba1d4fcb7b3ea38f4c7faa033 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "International Component for Unicode libraries"
2DESCRIPTION = "The International Component for Unicode (ICU) is a mature, \
3portable set of C/C++ and Java libraries for Unicode support, software \
4internationalization (I18N) and globalization (G11N), giving applications the \
5same results on all platforms."
6HOMEPAGE = "http://site.icu-project.org/"
7
8LICENSE = "ICU"
9DEPENDS = "icu-native"
10DEPENDS_class-native = ""
11
12S = "${WORKDIR}/icu/source"
13SPDX_S = "${WORKDIR}/icu"
14STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}"
15
16CPPFLAGS_append_libc-uclibc = " -DU_TIMEZONE=0"
17
18BINCONFIG = "${bindir}/icu-config"
19
20inherit 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.
25EXTRA_OECONF = "--with-cross-build=${STAGING_ICU_DIR_NATIVE}"
26EXTRA_OECONF_class-native = ""
27EXTRA_OECONF_class-nativesdk = "--with-cross-build=${STAGING_ICU_DIR_NATIVE}"
28
29PREPROCESS_RELOCATE_DIRS = "${datadir}/${BPN}/${PV}"
30do_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
39PACKAGES =+ "libicudata libicuuc libicui18n libicule libiculx libicutu libicuio"
40
41FILES_${PN}-dev += "${libdir}/${BPN}/"
42
43FILES_libicudata = "${libdir}/libicudata.so.*"
44FILES_libicuuc = "${libdir}/libicuuc.so.*"
45FILES_libicui18n = "${libdir}/libicui18n.so.*"
46FILES_libicule = "${libdir}/libicule.so.*"
47FILES_libiculx = "${libdir}/libiculx.so.*"
48FILES_libicutu = "${libdir}/libicutu.so.*"
49FILES_libicuio = "${libdir}/libicuio.so.*"
50
51BBCLASSEXTEND = "native nativesdk"