diff options
Diffstat (limited to 'meta/recipes-core/eglibc/cross-localedef-native_2.13.bb')
-rw-r--r-- | meta/recipes-core/eglibc/cross-localedef-native_2.13.bb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/cross-localedef-native_2.13.bb b/meta/recipes-core/eglibc/cross-localedef-native_2.13.bb new file mode 100644 index 0000000000..68ef86439d --- /dev/null +++ b/meta/recipes-core/eglibc/cross-localedef-native_2.13.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | DESCRIPTION = "Cross locale generation tool for eglibc" | ||
2 | HOMEPAGE = "http://www.eglibc.org/home" | ||
3 | SECTION = "libs" | ||
4 | PRIORITY = "required" | ||
5 | LICENSE = "LGPL" | ||
6 | |||
7 | LIC_DIR = "${WORKDIR}/${EGLIBC_BRANCH}/libc" | ||
8 | LIC_FILES_CHKSUM = "file://${LIC_DIR}/LICENSES;md5=07a394b26e0902b9ffdec03765209770 \ | ||
9 | file://${LIC_DIR}/COPYING;md5=393a5ca445f6965873eca0259a17f833 \ | ||
10 | file://${LIC_DIR}/posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \ | ||
11 | file://${LIC_DIR}/COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff " | ||
12 | |||
13 | |||
14 | inherit native | ||
15 | inherit autotools | ||
16 | |||
17 | PR = "r1" | ||
18 | SRCREV="11982" | ||
19 | EGLIBC_BRANCH="eglibc-2_12" | ||
20 | SRC_URI = "svn://www.eglibc.org/svn/branches/;module=${EGLIBC_BRANCH};proto=http " | ||
21 | S = "${WORKDIR}/${EGLIBC_BRANCH}/localedef" | ||
22 | |||
23 | do_unpack_append() { | ||
24 | bb.build.exec_func('do_move_ports', d) | ||
25 | } | ||
26 | |||
27 | do_move_ports() { | ||
28 | if test -d ${WORKDIR}/${EGLIBC_BRANCH}/ports ; then | ||
29 | rm -rf ${WORKDIR}/libc/ports | ||
30 | mv ${WORKDIR}/${EGLIBC_BRANCH}/ports ${WORKDIR}/libc/ | ||
31 | fi | ||
32 | } | ||
33 | |||
34 | EXTRA_OECONF = "--with-glibc=${WORKDIR}/${EGLIBC_BRANCH}/libc" | ||
35 | |||
36 | do_configure () { | ||
37 | ./configure ${EXTRA_OECONF} | ||
38 | } | ||
39 | |||
40 | |||
41 | do_install() { | ||
42 | install -d ${D}${bindir} | ||
43 | install -m 0755 ${S}/localedef ${D}${bindir}/cross-localedef | ||
44 | } | ||