Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [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 | # Tell autotools that we're working in the localedef directory |
| 12 | # |
| 13 | AUTOTOOLS_SCRIPT_PATH = "${S}/localedef" |
| 14 | |
| 15 | inherit native |
| 16 | inherit autotools |
| 17 | |
| 18 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/glibc:" |
| 19 | |
| 20 | SRCBRANCH ?= "release/${PV}/master" |
| 21 | GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git" |
| 22 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.(?!90)\d+)*)" |
| 23 | |
| 24 | SRCREV_glibc ?= "df3ff4e49d4ee3cbbdaeb0b1cb5dc2344c08be98" |
| 25 | SRCREV_localedef ?= "de5bdbd5e76b5403a4151b9b9f958b6cca36b3e7" |
| 26 | |
| 27 | SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ |
| 28 | git://github.com/kraj/localedef;branch=master;name=localedef;destsuffix=git/localedef \ |
| 29 | file://0015-timezone-re-written-tzselect-as-posix-sh.patch \ |
| 30 | file://0016-Remove-bash-dependency-for-nscd-init-script.patch \ |
| 31 | file://0017-eglibc-Cross-building-and-testing-instructions.patch \ |
| 32 | file://0018-eglibc-Help-bootstrap-cross-toolchain.patch \ |
| 33 | file://0019-eglibc-Clear-cache-lines-on-ppc8xx.patch \ |
| 34 | file://0020-eglibc-Resolve-__fpscr_values-on-SH4.patch \ |
| 35 | file://0021-eglibc-Install-PIC-archives.patch \ |
| 36 | file://0022-eglibc-Forward-port-cross-locale-generation-support.patch \ |
| 37 | file://0023-Define-DUMMY_LOCALE_T-if-not-defined.patch \ |
| 38 | file://archive-path.patch \ |
| 39 | " |
| 40 | # Makes for a rather long rev (22 characters), but... |
| 41 | # |
| 42 | SRCREV_FORMAT = "glibc_localedef" |
| 43 | |
| 44 | S = "${WORKDIR}/git" |
| 45 | |
| 46 | EXTRA_OECONF = "--with-glibc=${S}" |
| 47 | CFLAGS += "-fgnu89-inline -std=gnu99 -DIS_IN\(x\)='0'" |
| 48 | |
| 49 | do_install() { |
| 50 | install -d ${D}${bindir} |
| 51 | install -m 0755 ${B}/localedef ${D}${bindir}/cross-localedef |
| 52 | } |