diff options
Diffstat (limited to 'meta/recipes-support/icu/icu-3.6.inc')
-rw-r--r-- | meta/recipes-support/icu/icu-3.6.inc | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-support/icu/icu-3.6.inc b/meta/recipes-support/icu/icu-3.6.inc new file mode 100644 index 0000000000..1c611bdf36 --- /dev/null +++ b/meta/recipes-support/icu/icu-3.6.inc | |||
@@ -0,0 +1,55 @@ | |||
1 | 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." | ||
2 | HOMEPAGE = "http://www-01.ibm.com/software/globalization/icu/index.jsp" | ||
3 | |||
4 | BASE_SRC_URI = "ftp://ftp.software.ibm.com/software/globalization/icu/3.6/icu4c-3_6-src.tgz \ | ||
5 | file://gccfix.patch;apply=yes \ | ||
6 | file://use-g++-for-linking.patch;apply=yes" | ||
7 | SRC_URI = "${BASE_SRC_URI} \ | ||
8 | file://noldlibpath.patch;apply=yes" | ||
9 | SRC_URI_virtclass-native = "${BASE_SRC_URI}" | ||
10 | |||
11 | LICENSE = "ICU" | ||
12 | LIC_FILES_CHKSUM = "file://../license.html;md5=5c94767cedb5d6987c902ac850ded2c6" | ||
13 | DEPENDS = "icu-native" | ||
14 | DEPENDS_virtclass-native = "" | ||
15 | |||
16 | S = "${WORKDIR}/icu/source" | ||
17 | |||
18 | PARALLEL_MAKE = "" | ||
19 | FULL_OPTIMIZATION_arm = "-Os" | ||
20 | |||
21 | inherit autotools pkgconfig binconfig | ||
22 | |||
23 | do_configure() { | ||
24 | libtoolize --force | ||
25 | gnu-configize --force | ||
26 | oe_runconf | ||
27 | if [ "${PN}" != "icu-native" ]; then | ||
28 | # In the non-native case we need to make substitutions to use | ||
29 | # the native versions of the tools | ||
30 | for i in */Makefile* */*.inc */*/Makefile* */*/*.inc */*/*.inc.in ; do | ||
31 | sed -i -e 's:$(INVOKE) $(BINDIR)/:$(INVOKE) :g' $i | ||
32 | sed -i -e 's:$(BINDIR)/::g' $i | ||
33 | done | ||
34 | fi | ||
35 | } | ||
36 | |||
37 | do_compile() { | ||
38 | oe_runmake 'CXX=${CXX}' | ||
39 | } | ||
40 | |||
41 | do_install_append() { | ||
42 | chmod +x ${D}${libdir}/lib* | ||
43 | } | ||
44 | |||
45 | PACKAGES =+ "libicudata libicuuc libicui18n libicule libiculx libicutu libicuio" | ||
46 | |||
47 | FILES_libicudata = "${libdir}/libicudata.so.*" | ||
48 | FILES_libicuuc = "${libdir}/libicuuc.so.*" | ||
49 | FILES_libicui18n = "${libdir}/libicui18n.so.*" | ||
50 | FILES_libicule = "${libdir}/libicule.so.*" | ||
51 | FILES_libiculx = "${libdir}/libiculx.so.*" | ||
52 | FILES_libicutu = "${libdir}/libicutu.so.*" | ||
53 | FILES_libicuio = "${libdir}/libicuio.so.*" | ||
54 | |||
55 | BBCLASSEXTEND = "native" | ||