Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | BRANCH ?= "release/${PV}/master" |
| 18 | GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git" |
| 19 | |
| 20 | SRC_URI = "${GLIBC_GIT_URI};branch=${BRANCH};name=glibc \ |
| 21 | git://github.com/kraj/localedef;branch=master;name=localedef;destsuffix=git/localedef \ |
| 22 | file://fix_for_centos_5.8.patch \ |
| 23 | ${EGLIBCPATCHES} \ |
| 24 | " |
| 25 | EGLIBCPATCHES = "\ |
| 26 | file://0017-timezone-re-written-tzselect-as-posix-sh.patch \ |
| 27 | file://0018-eglibc-Cross-building-and-testing-instructions.patch \ |
| 28 | file://0019-eglibc-Bring-Eglibc-option-group-infrastructure-to-g.patch \ |
| 29 | file://0020-eglibc-Help-bootstrap-cross-toolchain.patch \ |
| 30 | file://0021-eglibc-cherry-picked-from-http-www.eglibc.org-archiv.patch \ |
| 31 | file://0022-eglibc-Clear-cache-lines-on-ppc8xx.patch \ |
| 32 | file://0023-eglibc-Resolve-__fpscr_values-on-SH4.patch \ |
| 33 | file://0024-eglibc-Forward-port-eglibc-options-groups-support.patch \ |
| 34 | file://0025-eglibc-Install-PIC-archives.patch \ |
| 35 | file://0026-eglibc-dl_debug_mask-is-controlled-by-__OPTION_EGLIB.patch \ |
| 36 | file://0027-eglibc-use-option-groups-Conditionally-exclude-c-tes.patch \ |
| 37 | " |
| 38 | |
| 39 | SRCREV_glibc ?= "a34d1c6afc86521d6ad17662a3b5362d8481514c" |
| 40 | SRCREV_localedef ?= "c833367348d39dad7ba018990bfdaffaec8e9ed3" |
| 41 | |
| 42 | # Makes for a rather long rev (22 characters), but... |
| 43 | # |
| 44 | SRCREV_FORMAT = "glibc_localedef" |
| 45 | |
| 46 | S = "${WORKDIR}/git" |
| 47 | |
| 48 | EXTRA_OECONF = "--with-glibc=${S}" |
| 49 | CFLAGS += "-fgnu89-inline -std=gnu99 -DIS_IN\(x\)='0'" |
| 50 | |
| 51 | do_configure () { |
| 52 | ${S}/localedef/configure ${EXTRA_OECONF} |
| 53 | } |
| 54 | |
| 55 | |
| 56 | do_install() { |
| 57 | install -d ${D}${bindir} |
| 58 | install -m 0755 ${B}/localedef ${D}${bindir}/cross-localedef |
| 59 | } |