diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-oe/recipes-support/enca | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-support/enca')
6 files changed, 129 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/enca/enca/configure-hack.patch b/meta-oe/recipes-support/enca/enca/configure-hack.patch new file mode 100644 index 000000000..85abcdcf0 --- /dev/null +++ b/meta-oe/recipes-support/enca/enca/configure-hack.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | --- enca-1.9/configure.ac.orig 2006-02-15 00:57:39.000000000 -0800 | ||
2 | +++ enca-1.9/configure.ac 2006-02-15 00:57:46.000000000 -0800 | ||
3 | @@ -92,9 +92,6 @@ | ||
4 | dnl And for gtk-doc | ||
5 | gtk_CHECK_GTK_DOC | ||
6 | |||
7 | -dnl Check for good random number sources | ||
8 | -AC_CHECK_FILES(/dev/random /dev/urandom /dev/srandom /dev/arandom) | ||
9 | - | ||
10 | dnl Dirty path hack. Helps some people with badly set up search paths. | ||
11 | if test "$prefix" = "NONE"; then | ||
12 | LDFLAGS="$LDFLAGS -L$ac_default_prefix/lib" | ||
diff --git a/meta-oe/recipes-support/enca/enca/configure-remove-dumbness.patch b/meta-oe/recipes-support/enca/enca/configure-remove-dumbness.patch new file mode 100644 index 000000000..6f6f3e320 --- /dev/null +++ b/meta-oe/recipes-support/enca/enca/configure-remove-dumbness.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | --- enca-1.9/configure.ac.orig 2006-06-29 15:30:44.000000000 +0100 | ||
2 | +++ enca-1.9/configure.ac 2006-06-29 15:31:41.000000000 +0100 | ||
3 | @@ -92,14 +92,15 @@ | ||
4 | dnl And for gtk-doc | ||
5 | gtk_CHECK_GTK_DOC | ||
6 | |||
7 | -dnl Dirty path hack. Helps some people with badly set up search paths. | ||
8 | -if test "$prefix" = "NONE"; then | ||
9 | - LDFLAGS="$LDFLAGS -L$ac_default_prefix/lib" | ||
10 | - CPPFLAGS="$CPPFLAGS -I$ac_default_prefix/include" | ||
11 | -else | ||
12 | - LDFLAGS="$LDFLAGS -L$prefix/lib" | ||
13 | - CPPFLAGS="$CPPFLAGS -I$prefix/include" | ||
14 | -fi | ||
15 | +# This is really dumb code | ||
16 | +#dnl Dirty path hack. Helps some people with badly set up search paths. | ||
17 | +#if test "$prefix" = "NONE"; then | ||
18 | +# LDFLAGS="$LDFLAGS -L$ac_default_prefix/lib" | ||
19 | +# CPPFLAGS="$CPPFLAGS -I$ac_default_prefix/include" | ||
20 | +#else | ||
21 | +# LDFLAGS="$LDFLAGS -L$prefix/lib" | ||
22 | +# CPPFLAGS="$CPPFLAGS -I$prefix/include" | ||
23 | +#fi | ||
24 | |||
25 | dnl Checks for libraries. | ||
26 | ye_CHECK_LIBM | ||
diff --git a/meta-oe/recipes-support/enca/enca/dont-run-tests.patch b/meta-oe/recipes-support/enca/enca/dont-run-tests.patch new file mode 100644 index 000000000..321d1e620 --- /dev/null +++ b/meta-oe/recipes-support/enca/enca/dont-run-tests.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: enca-1.9/Makefile.am | ||
2 | =================================================================== | ||
3 | --- enca-1.9.orig/Makefile.am 2005-11-24 11:21:32.000000000 +0100 | ||
4 | +++ enca-1.9/Makefile.am 2006-04-11 11:14:21.832502904 +0200 | ||
5 | @@ -2,7 +2,7 @@ | ||
6 | if MAINTAINER_MODE | ||
7 | SUBDIRS = tools data script lib src devel-docs test | ||
8 | else | ||
9 | -SUBDIRS = tools script lib src devel-docs test | ||
10 | +SUBDIRS = tools script lib src devel-docs | ||
11 | endif | ||
12 | man_MANS = man/enca.1 | ||
13 | |||
diff --git a/meta-oe/recipes-support/enca/enca/libenca-003-iconv.patch b/meta-oe/recipes-support/enca/enca/libenca-003-iconv.patch new file mode 100644 index 000000000..dbf0fb8ea --- /dev/null +++ b/meta-oe/recipes-support/enca/enca/libenca-003-iconv.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 7e144495093187143a3d1589f74c2eac37e4d790 Mon Sep 17 00:00:00 2001 | ||
2 | From: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> | ||
3 | Date: Sun, 4 May 2014 15:49:28 +0200 | ||
4 | Subject: [PATCH] libiconv.m4: Fix AM_ICONV macro usage | ||
5 | |||
6 | This patch come straight from the Buildroot source tree. | ||
7 | |||
8 | Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com> | ||
9 | Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> | ||
10 | --- | ||
11 | m4/libiconv.m4 | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/m4/libiconv.m4 b/m4/libiconv.m4 | ||
15 | index fc8c6f8..3a59549 100644 | ||
16 | --- a/m4/libiconv.m4 | ||
17 | +++ b/m4/libiconv.m4 | ||
18 | @@ -17,7 +17,7 @@ AC_REQUIRE([AC_C_CONST])dnl | ||
19 | dnl | ||
20 | |||
21 | dnl Use standard iconv test | ||
22 | -AM_ICONV | ||
23 | +m4_pattern_allow([AM_ICONV]) | ||
24 | CONVERTOR_LIBS="$CONVERTOR_LIBS $LIBICONV" | ||
25 | |||
26 | dnl Compile iconvcap.c and run it to determine what encodings iconv actually | ||
27 | -- | ||
28 | 1.9.3 | ||
diff --git a/meta-oe/recipes-support/enca/enca/makefile-remove-tools.patch b/meta-oe/recipes-support/enca/enca/makefile-remove-tools.patch new file mode 100644 index 000000000..accfbccd6 --- /dev/null +++ b/meta-oe/recipes-support/enca/enca/makefile-remove-tools.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | --- enca-1.9/Makefile.am.orig 2006-06-29 15:34:55.000000000 +0100 | ||
2 | +++ enca-1.9/Makefile.am 2006-06-29 15:35:20.000000000 +0100 | ||
3 | @@ -1,8 +1,8 @@ | ||
4 | # @(#) $Id: Makefile.am,v 1.35 2005/11/24 10:21:32 yeti Exp $ | ||
5 | if MAINTAINER_MODE | ||
6 | -SUBDIRS = tools data script lib src devel-docs test | ||
7 | +SUBDIRS = data script lib src devel-docs test | ||
8 | else | ||
9 | -SUBDIRS = tools script lib src devel-docs | ||
10 | +SUBDIRS = script lib src devel-docs | ||
11 | endif | ||
12 | man_MANS = man/enca.1 | ||
13 | |||
diff --git a/meta-oe/recipes-support/enca/enca_1.9.bb b/meta-oe/recipes-support/enca/enca_1.9.bb new file mode 100644 index 000000000..bf19843b2 --- /dev/null +++ b/meta-oe/recipes-support/enca/enca_1.9.bb | |||
@@ -0,0 +1,37 @@ | |||
1 | SUMMARY = "Enca is an Extremely Naive Charset Analyser" | ||
2 | SECTION = "libs" | ||
3 | HOMEPAGE = "http://trific.ath.cx/software/enca/" | ||
4 | |||
5 | DEPENDS += "gettext-native" | ||
6 | |||
7 | LICENSE = "GPLv2" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=24b9569831c46d4818450b55282476b4" | ||
9 | |||
10 | SRC_URI = "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/enca-${PV}.tar.bz2 \ | ||
11 | file://configure-hack.patch \ | ||
12 | file://dont-run-tests.patch \ | ||
13 | file://configure-remove-dumbness.patch \ | ||
14 | file://makefile-remove-tools.patch \ | ||
15 | file://libenca-003-iconv.patch " | ||
16 | |||
17 | SRC_URI[md5sum] = "b3581e28d68d452286fb0bfe58bed3b3" | ||
18 | SRC_URI[sha256sum] = "02acfef2b24a9c842612da49338138311f909f1cd33933520c07b8b26c410f4d" | ||
19 | |||
20 | inherit autotools | ||
21 | |||
22 | do_configure_prepend() { | ||
23 | # remove failing test which checks for something that isn't even used | ||
24 | sed -i -e '/ye_FUNC_SCANF_MODIF_SIZE_T/d' ${S}/configure.ac | ||
25 | } | ||
26 | |||
27 | do_configure_append() { | ||
28 | sed -i s:-I/usr/include::g ${B}/Makefile | ||
29 | sed -i s:-I/usr/include::g ${B}/*/Makefile | ||
30 | } | ||
31 | |||
32 | do_compile() { | ||
33 | cd ${S}/tools && ${BUILD_CC} -o make_hash make_hash.c | ||
34 | cd ${B} | ||
35 | oe_runmake | ||
36 | } | ||
37 | |||