diff options
Diffstat (limited to 'meta/recipes-core/glibc/cross-localedef-native_2.23.bb')
-rw-r--r-- | meta/recipes-core/glibc/cross-localedef-native_2.23.bb | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.23.bb b/meta/recipes-core/glibc/cross-localedef-native_2.23.bb new file mode 100644 index 0000000000..fa930fd480 --- /dev/null +++ b/meta/recipes-core/glibc/cross-localedef-native_2.23.bb | |||
@@ -0,0 +1,58 @@ | |||
1 | SUMMARY = "Cross locale generation tool for glibc" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/libc/libc.html" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "LGPL-2.1" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://LICENSES;md5=e9a558e243b36d3209f380deb394b213 \ | ||
7 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
8 | file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \ | ||
9 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" | ||
10 | |||
11 | |||
12 | inherit native | ||
13 | inherit autotools | ||
14 | |||
15 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/glibc:" | ||
16 | |||
17 | SRCBRANCH ?= "release/${PV}/master" | ||
18 | GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git" | ||
19 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)" | ||
20 | |||
21 | SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ | ||
22 | git://github.com/kraj/localedef;branch=master;name=localedef;destsuffix=git/localedef \ | ||
23 | file://fix_for_centos_5.8.patch \ | ||
24 | ${EGLIBCPATCHES} \ | ||
25 | " | ||
26 | EGLIBCPATCHES = "\ | ||
27 | file://0016-timezone-re-written-tzselect-as-posix-sh.patch \ | ||
28 | file://0017-Remove-bash-dependency-for-nscd-init-script.patch \ | ||
29 | file://0018-eglibc-Cross-building-and-testing-instructions.patch \ | ||
30 | file://0019-eglibc-Help-bootstrap-cross-toolchain.patch \ | ||
31 | file://0020-eglibc-cherry-picked-from.patch \ | ||
32 | file://0021-eglibc-Clear-cache-lines-on-ppc8xx.patch \ | ||
33 | file://0022-eglibc-Resolve-__fpscr_values-on-SH4.patch \ | ||
34 | file://0023-eglibc-Install-PIC-archives.patch \ | ||
35 | file://0025-eglibc-Forward-port-cross-locale-generation-support.patch \ | ||
36 | " | ||
37 | |||
38 | SRCREV_glibc ?= "e742928c1592b43db6809db4f39e67be151cdd27" | ||
39 | SRCREV_localedef ?= "5a81ff9f06a7a808d4c3d37bbf34077a4c5902ed" | ||
40 | |||
41 | # Makes for a rather long rev (22 characters), but... | ||
42 | # | ||
43 | SRCREV_FORMAT = "glibc_localedef" | ||
44 | |||
45 | S = "${WORKDIR}/git" | ||
46 | |||
47 | EXTRA_OECONF = "--with-glibc=${S}" | ||
48 | CFLAGS += "-fgnu89-inline -std=gnu99 -DIS_IN\(x\)='0'" | ||
49 | |||
50 | do_configure () { | ||
51 | ${S}/localedef/configure ${EXTRA_OECONF} | ||
52 | } | ||
53 | |||
54 | |||
55 | do_install() { | ||
56 | install -d ${D}${bindir} | ||
57 | install -m 0755 ${B}/localedef ${D}${bindir}/cross-localedef | ||
58 | } | ||