blob: f81ed670c42346b8ee2e300d25c018ddb648b2d0 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Enca is an Extremely Naive Charset Analyser"
2SECTION = "libs"
Andrew Geisslerac970dd2021-02-12 15:32:45 -06003HOMEPAGE = "https://cihar.com/software/enca/"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004
5DEPENDS += "gettext-native"
6
7LICENSE = "GPLv2"
8LIC_FILES_CHKSUM = "file://COPYING;md5=24b9569831c46d4818450b55282476b4"
9
Andrew Geisslerac970dd2021-02-12 15:32:45 -060010SRC_URI = "https://dl.cihar.com/enca/enca-${PV}.tar.gz \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011 file://dont-run-tests.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012 file://makefile-remove-tools.patch \
13 file://libenca-003-iconv.patch "
14
Andrew Geissler97771a32021-03-05 15:23:11 -060015SRC_URI[sha256sum] = "4c305cc59f3e57f2cfc150a6ac511690f43633595760e1cb266bf23362d72f8a"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050016
17inherit autotools
18
Patrick Williams213cb262021-08-07 19:21:33 -050019do_configure:prepend() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020 # 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
Patrick Williams213cb262021-08-07 19:21:33 -050024do_configure:append() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050025 sed -i s:-I/usr/include::g ${B}/Makefile
26 sed -i s:-I/usr/include::g ${B}/*/Makefile
27}
28
29do_compile() {
30 cd ${S}/tools && ${BUILD_CC} -o make_hash make_hash.c
31 cd ${B}
32 oe_runmake
33}
34