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