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