2010-06-07 09:24:41 +00:00
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://www-01.ibm.com/software/globalization/icu/index.jsp "
2007-12-06 10:23:27 +00:00
2010-06-11 03:57:22 +00:00
BASE_SRC_URI = " ftp://ftp.software.ibm.com/software/globalization/icu/3.6/icu4c-3_6-src.tgz \
2010-06-07 09:24:41 +00:00
file :// gccfix . patch ; apply = yes \
file :// use - g ++- for - linking . patch ; apply = yes "
2010-06-11 03:57:22 +00:00
SRC_URI = " ${ BASE_SRC_URI } \
2010-06-07 09:24:41 +00:00
file :// noldlibpath . patch ; apply = yes "
2010-06-11 03:57:22 +00:00
SRC_URI_virtclass - native = " ${ BASE_SRC_URI } "
2009-11-05 11:09:43 +00:00
LICENSE = " ICU "
2010-06-07 09:24:41 +00:00
LIC_FILES_CHKSUM = " file://../license.html;md5=5c94767cedb5d6987c902ac850ded2c6 "
2009-11-05 11:09:43 +00:00
DEPENDS = " icu-native "
DEPENDS_virtclass - native = " "
2007-12-06 10:23:27 +00:00
S = " ${ WORKDIR } /icu/source "
2008-02-11 22:17:02 +00:00
PARALLEL_MAKE = " "
2009-11-05 11:09:43 +00:00
FULL_OPTIMIZATION_arm = " -Os "
2008-02-11 22:17:02 +00:00
2010-04-26 16:41:05 +00:00
inherit autotools pkgconfig binconfig
2007-12-06 10:23:27 +00:00
do_configure () {
libtoolize -- force
2008-05-05 22:11:33 +00:00
gnu - configize -- force
2007-12-06 10:23:27 +00:00
oe_runconf
2010-08-04 09:13:25 +00:00
if [ " ${ PN } " != " icu-native " ]; then
2009-11-08 19:33:23 +00:00
# In the non-native case we need to make substitutions to use
# the native versions of the tools
2010-08-04 09:13:25 +00:00
for i in */ Makefile * */*. inc */*/ Makefile * */*/*. inc */*/*. inc . in ; do
2009-11-08 19:33:23 +00:00
sed - i - e 's:$(INVOKE) $(BINDIR)/:$(INVOKE) :g' $i
sed - i - e 's:$(BINDIR)/::g' $i
done
fi
2009-11-05 11:09:43 +00:00
}
do_compile () {
oe_runmake 'CXX=${CXX}'
}
do_install_append () {
chmod + x $ { D } $ { libdir } / lib *
}
PACKAGES =+ " libicudata libicuuc libicui18n libicule libiculx libicutu libicuio "
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 "