336ddb3109
The icu recipe installs icu-native twice, once in the usual location, and once for cross builds into the path given by --with-cross-build. This latter path is not included in the list of paths recognised by chrpath.bbclass, hence the binaries in there retain the rpath as used during compilation. This causes the package to not be relocateable from sstate [YOCTO #6851] We use the infrastructure that is in place already, and simply set PREPROCESS_RELOCATE_DIRS as necessary, and things start to work. (From OE-Core rev: e7fcaa534511e3f65b630b01cf0c824ee5a5fd4d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
52 lines
1.9 KiB
PHP
52 lines
1.9 KiB
PHP
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"
|
|
SPDX_S = "${WORKDIR}/icu"
|
|
STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}"
|
|
|
|
CPPFLAGS_append_libc-uclibc = " -DU_TIMEZONE=0"
|
|
|
|
BINCONFIG = "${bindir}/icu-config"
|
|
|
|
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_ICU_DIR_NATIVE}"
|
|
EXTRA_OECONF_class-native = ""
|
|
EXTRA_OECONF_class-nativesdk = "--with-cross-build=${STAGING_ICU_DIR_NATIVE}"
|
|
|
|
PREPROCESS_RELOCATE_DIRS = "${datadir}/${BPN}/${PV}"
|
|
do_install_append_class-native() {
|
|
mkdir -p ${D}/${STAGING_ICU_DIR_NATIVE}/config
|
|
cp -r ${B}/config/icucross.mk ${D}/${STAGING_ICU_DIR_NATIVE}/config
|
|
cp -r ${B}/config/icucross.inc ${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}
|
|
}
|
|
|
|
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 nativesdk"
|