diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2012-12-03 18:21:08 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-06 12:31:12 +0000 |
commit | bd368cf0e6478edd98cbb7a29f00195a0b789bf3 (patch) | |
tree | 7eeb3bb5a6c9bdd2517c46edd8ed8a354842de7c /meta/recipes-support/icu/icu-3.6.inc | |
parent | 60fc9a9ef98814f7d9e848f3c4656ab719541610 (diff) | |
download | poky-bd368cf0e6478edd98cbb7a29f00195a0b789bf3.tar.gz |
ICU: add pkgconfig support
Add pkgconfig support to ICU.
[YOCTO #2453]
(From OE-Core rev: a0b553bf00f819c3f0d6744461189179f578a75e)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/icu/icu-3.6.inc')
-rw-r--r-- | meta/recipes-support/icu/icu-3.6.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-support/icu/icu-3.6.inc b/meta/recipes-support/icu/icu-3.6.inc index 272f6d15ba..8caf71c645 100644 --- a/meta/recipes-support/icu/icu-3.6.inc +++ b/meta/recipes-support/icu/icu-3.6.inc | |||
@@ -7,6 +7,7 @@ BASE_SRC_URI = "ftp://ftp.software.ibm.com/software/globalization/icu/3.6/icu4c- | |||
7 | file://fix-parallel-build.patch \ | 7 | file://fix-parallel-build.patch \ |
8 | file://use-g++-for-linking.patch \ | 8 | file://use-g++-for-linking.patch \ |
9 | file://larger-cmd-size.patch \ | 9 | file://larger-cmd-size.patch \ |
10 | file://icu-add-pkgconfig-support.patch \ | ||
10 | " | 11 | " |
11 | SRC_URI = "${BASE_SRC_URI} \ | 12 | SRC_URI = "${BASE_SRC_URI} \ |
12 | file://noldlibpath.patch \ | 13 | file://noldlibpath.patch \ |
@@ -28,6 +29,12 @@ inherit autotools pkgconfig binconfig | |||
28 | do_configure() { | 29 | do_configure() { |
29 | libtoolize --force | 30 | libtoolize --force |
30 | gnu-configize --force | 31 | gnu-configize --force |
32 | if [ "${PN}" != "icu-native" ]; then | ||
33 | OLD=`pwd` | ||
34 | cd ${S} | ||
35 | autoconf | ||
36 | cd ${OLD} | ||
37 | fi | ||
31 | oe_runconf | 38 | oe_runconf |
32 | if [ "${PN}" != "icu-native" ]; then | 39 | if [ "${PN}" != "icu-native" ]; then |
33 | # In the non-native case we need to make substitutions to use | 40 | # In the non-native case we need to make substitutions to use |
@@ -45,6 +52,10 @@ do_compile() { | |||
45 | 52 | ||
46 | do_install_append() { | 53 | do_install_append() { |
47 | chmod +x ${D}${libdir}/lib* | 54 | chmod +x ${D}${libdir}/lib* |
55 | if [ "${PN}" != "icu-native" ]; then | ||
56 | install -d ${D}/${libdir}/pkgconfig | ||
57 | install -m 0644 ${S}/icu.pc ${D}/${libdir}/pkgconfig | ||
58 | fi | ||
48 | } | 59 | } |
49 | 60 | ||
50 | PACKAGES =+ "libicudata libicuuc libicui18n libicule libiculx libicutu libicuio" | 61 | PACKAGES =+ "libicudata libicuuc libicui18n libicule libiculx libicutu libicuio" |