diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-03-15 14:17:04 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-03-15 23:05:32 -0700 |
| commit | 32eb26264323888e77154c2aeadc9994a4a54d5d (patch) | |
| tree | 60b1e10ef5a39355afd0739f4cb4abb6994a16fc /meta-oe/recipes-support/enca/enca_1.19.bb | |
| parent | 6be4067178126f7bcba46988d2df1da55193bbbe (diff) | |
| download | meta-openembedded-32eb26264323888e77154c2aeadc9994a4a54d5d.tar.gz | |
enca: Fix cross builds
Some portions are built using host CC, which
is important when doing cross compile to pass correct flags
otherwise it fails when using newer host compiler e.g. gcc-14
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/enca/enca_1.19.bb')
| -rw-r--r-- | meta-oe/recipes-support/enca/enca_1.19.bb | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/meta-oe/recipes-support/enca/enca_1.19.bb b/meta-oe/recipes-support/enca/enca_1.19.bb index 774f05f7c4..61da50ba52 100644 --- a/meta-oe/recipes-support/enca/enca_1.19.bb +++ b/meta-oe/recipes-support/enca/enca_1.19.bb | |||
| @@ -2,33 +2,19 @@ SUMMARY = "Enca is an Extremely Naive Charset Analyser" | |||
| 2 | SECTION = "libs" | 2 | SECTION = "libs" |
| 3 | HOMEPAGE = "https://cihar.com/software/enca/" | 3 | HOMEPAGE = "https://cihar.com/software/enca/" |
| 4 | 4 | ||
| 5 | DEPENDS += "gettext-native" | 5 | DEPENDS += "gettext-native autoconf-archive-native" |
| 6 | 6 | ||
| 7 | LICENSE = "GPL-2.0-only" | 7 | LICENSE = "GPL-2.0-only" |
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=24b9569831c46d4818450b55282476b4" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=24b9569831c46d4818450b55282476b4" |
| 9 | 9 | ||
| 10 | SRC_URI = "https://dl.cihar.com/enca/enca-${PV}.tar.gz \ | 10 | SRC_URI = "https://dl.cihar.com/enca/enca-${PV}.tar.gz \ |
| 11 | file://cross.patch \ | ||
| 11 | file://dont-run-tests.patch \ | 12 | file://dont-run-tests.patch \ |
| 12 | file://makefile-remove-tools.patch \ | ||
| 13 | file://libenca-003-iconv.patch \ | 13 | file://libenca-003-iconv.patch \ |
| 14 | file://0001-Do-not-use-MKTEMP_PROG-in-cross-build.patch" | 14 | file://0001-Do-not-use-MKTEMP_PROG-in-cross-build.patch \ |
| 15 | " | ||
| 15 | SRC_URI[sha256sum] = "4c305cc59f3e57f2cfc150a6ac511690f43633595760e1cb266bf23362d72f8a" | 16 | SRC_URI[sha256sum] = "4c305cc59f3e57f2cfc150a6ac511690f43633595760e1cb266bf23362d72f8a" |
| 16 | 17 | ||
| 17 | inherit autotools | 18 | inherit autotools |
| 18 | 19 | ||
| 19 | do_configure:prepend() { | 20 | EXTRA_OECONF += "MKTEMP_PROG=mktemp" |
| 20 | # remove failing test which checks for something that isn't even used | ||
| 21 | sed -i -e '/ye_FUNC_SCANF_MODIF_SIZE_T/d' ${S}/configure.ac | ||
| 22 | } | ||
| 23 | |||
| 24 | do_configure:append() { | ||
| 25 | sed -i s:-I/usr/include::g ${B}/Makefile | ||
| 26 | sed -i s:-I/usr/include::g ${B}/*/Makefile | ||
| 27 | } | ||
| 28 | |||
| 29 | do_compile() { | ||
| 30 | cd ${S}/tools && ${BUILD_CC} -o make_hash make_hash.c | ||
| 31 | cd ${B} | ||
| 32 | oe_runmake | ||
| 33 | } | ||
| 34 | |||
