blob: 8caf71c645419a89e97b4751e29970cf03e418e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
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://www-01.ibm.com/software/globalization/icu/index.jsp"
BASE_SRC_URI = "ftp://ftp.software.ibm.com/software/globalization/icu/3.6/icu4c-3_6-src.tgz \
file://gccfix.patch \
file://fix-parallel-build.patch \
file://use-g++-for-linking.patch \
file://larger-cmd-size.patch \
file://icu-add-pkgconfig-support.patch \
"
SRC_URI = "${BASE_SRC_URI} \
file://noldlibpath.patch \
"
SRC_URI_class-native = "${BASE_SRC_URI}"
LICENSE = "ICU"
LIC_FILES_CHKSUM = "file://../license.html;md5=5c94767cedb5d6987c902ac850ded2c6"
DEPENDS = "icu-native"
DEPENDS_class-native = ""
S = "${WORKDIR}/icu/source"
PARALLEL_MAKE = ""
FULL_OPTIMIZATION_arm = "-Os"
inherit autotools pkgconfig binconfig
do_configure() {
libtoolize --force
gnu-configize --force
if [ "${PN}" != "icu-native" ]; then
OLD=`pwd`
cd ${S}
autoconf
cd ${OLD}
fi
oe_runconf
if [ "${PN}" != "icu-native" ]; then
# In the non-native case we need to make substitutions to use
# the native versions of the tools
for i in */Makefile* */*.inc */*/Makefile* */*/*.inc */*/*.inc.in ; do
sed -i -e 's:$(INVOKE) $(BINDIR)/:$(INVOKE) :g' $i
sed -i -e 's:$(BINDIR)/::g' $i
done
fi
}
do_compile() {
oe_runmake 'CXX=${CXX}'
}
do_install_append() {
chmod +x ${D}${libdir}/lib*
if [ "${PN}" != "icu-native" ]; then
install -d ${D}/${libdir}/pkgconfig
install -m 0644 ${S}/icu.pc ${D}/${libdir}/pkgconfig
fi
}
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"
SSTATE_SCAN_FILES += "Makefile.inc"
|