summaryrefslogtreecommitdiff
path: root/recipes/enca/enca_1.9.bb
blob: c833d8686a52209d1fb30a6d73a08db5b5837dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
DESCRIPTION = "Enca is an Extremely Naive Charset Analyser"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2"
HOMEPAGE = "http://trific.ath.cx/software/enca/"
PR = "r4"

SRC_URI = "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/enca-${PV}.tar.bz2 \
	file://configure-hack.patch;apply=yes \
	file://dont-run-tests.patch;apply=yes \
	file://configure-remove-dumbness.patch;apply=yes \
	file://makefile-remove-tools.patch;apply=yes "

inherit autotools

EXTRA_OECONF="--with-libiconv-prefix=${STAGING_DIR_HOST}${layout_exec_prefix}"

do_configure_prepend() {
	# remove failing test which checks for something that isn't even used
	sed -i -e '/ye_FUNC_SCANF_MODIF_SIZE_T/d' configure.ac
}

do_configure_append() {
	sed -i s:-I/usr/include::g Makefile
	sed -i s:-I/usr/include::g */Makefile
}

do_compile() {
    cd ${S}/tools && ${BUILD_CC} -o make_hash make_hash.c
    cd ..
    oe_runmake
}

do_stage () {
        autotools_stage_all
}

SRC_URI[md5sum] = "b3581e28d68d452286fb0bfe58bed3b3"
SRC_URI[sha256sum] = "02acfef2b24a9c842612da49338138311f909f1cd33933520c07b8b26c410f4d"