mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
gettext: Add GPLv2 version 0.14.1
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
45e05c1316
commit
c47132ae66
@@ -0,0 +1,12 @@
|
||||
--- gettext-0.17/autoconf-lib-link/m4/lib-link.m4~ 2009-04-17 15:12:30.000000000 -0700
|
||||
+++ gettext-0.17/autoconf-lib-link/m4/lib-link.m4 2009-04-17 15:37:39.000000000 -0700
|
||||
@@ -267,6 +267,9 @@
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
+ dnl Just let the compiler find the library, the compiler and user are smarter then this script
|
||||
+ dnl when cross compiling and working with a relocated install.
|
||||
+ found_dir=""
|
||||
if test "X$found_dir" = "X"; then
|
||||
for x in $LDFLAGS $LTLIB[]NAME; do
|
||||
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
||||
37
meta/packages/gettext/gettext-0.14.1/disable_java.patch
vendored
Normal file
37
meta/packages/gettext/gettext-0.14.1/disable_java.patch
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# Pulled from OpenEmbedded
|
||||
#
|
||||
# Commented by: Saul Wold <saul.wold@intel.com>
|
||||
|
||||
Index: gettext-0.14.1/gettext-tools/configure.ac
|
||||
===================================================================
|
||||
--- gettext-0.14.1.orig/gettext-tools/configure.ac 2004-01-16 10:49:06.000000000 +0000
|
||||
+++ gettext-0.14.1/gettext-tools/configure.ac 2007-11-14 21:43:39.000000000 +0000
|
||||
@@ -37,28 +37,16 @@
|
||||
AC_PROG_YACC
|
||||
|
||||
gt_GCJ
|
||||
-if test -n "$HAVE_GCJ"; then
|
||||
- BUILDJAVAEXE=yes
|
||||
-else
|
||||
BUILDJAVAEXE=no
|
||||
-fi
|
||||
AC_SUBST(BUILDJAVAEXE)
|
||||
|
||||
gt_JAVACOMP
|
||||
AC_CHECK_PROG(JAR, jar, jar)
|
||||
-if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
|
||||
- BUILDJAVA=yes
|
||||
-else
|
||||
BUILDJAVA=no
|
||||
-fi
|
||||
AC_SUBST(BUILDJAVA)
|
||||
|
||||
gt_JAVAEXEC
|
||||
-if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
|
||||
- TESTJAVA=yes
|
||||
-else
|
||||
TESTJAVA=no
|
||||
-fi
|
||||
AC_SUBST(TESTJAVA)
|
||||
|
||||
gt_CSHARPCOMP
|
||||
30
meta/packages/gettext/gettext-0.14.1/fixchicken.patch
vendored
Normal file
30
meta/packages/gettext/gettext-0.14.1/fixchicken.patch
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
# Pulled from OpenEmbedded
|
||||
#
|
||||
# Commented by: Saul Wold <saul.wold@intel.com>
|
||||
|
||||
Index: gettext-tools/m4/csharpcomp.m4
|
||||
===================================================================
|
||||
RCS file: /cvs/gettext/gettext/gettext-tools/m4/csharpcomp.m4,v
|
||||
retrieving revision 1.4
|
||||
retrieving revision 1.6
|
||||
diff -u -r1.4 -r1.6
|
||||
--- a/gettext-tools/m4/csharpcomp.m4 30 Jan 2004 11:01:18 -0000 1.4
|
||||
+++ a/gettext-tools/m4/csharpcomp.m4 26 May 2004 12:15:23 -0000 1.6
|
||||
@@ -1,4 +1,4 @@
|
||||
-# csharpcomp.m4 serial 2 (gettext-0.14.1)
|
||||
+# csharpcomp.m4 serial 4 (gettext-0.15)
|
||||
dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.
|
||||
dnl This file is free software, distributed under the terms of the GNU
|
||||
dnl General Public License. As a special exception to the GNU General
|
||||
@@ -43,7 +43,8 @@
|
||||
;;
|
||||
sscli)
|
||||
if test -n "$HAVE_CSC_IN_PATH" \
|
||||
- && csc -help >/dev/null 2>/dev/null; then
|
||||
+ && csc -help >/dev/null 2>/dev/null \
|
||||
+ && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
|
||||
HAVE_CSC=1
|
||||
ac_result="csc"
|
||||
break
|
||||
|
||||
|
||||
36
meta/packages/gettext/gettext-0.14.1/getline.m4.patch
vendored
Normal file
36
meta/packages/gettext/gettext-0.14.1/getline.m4.patch
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
# Pulled from OpenEmbedded
|
||||
#
|
||||
# Commented by: Saul Wold <saul.wold@intel.com>
|
||||
|
||||
--- /gettext-tools/m4/orig-getline.m4 2003-07-18 18:11:37.000000000 +0300
|
||||
+++ /gettext-tools/m4/getline.m4 2007-02-03 13:33:41.000000000 +0200
|
||||
@@ -42,12 +42,23 @@
|
||||
return 1;
|
||||
len = getline (&line, &siz, in);
|
||||
exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
|
||||
- }
|
||||
- ], am_cv_func_working_getline=yes dnl The library version works.
|
||||
- , am_cv_func_working_getline=no dnl The library version does NOT work.
|
||||
- , am_cv_func_working_getline=no dnl We're cross compiling.
|
||||
- )])
|
||||
- fi
|
||||
+ }
|
||||
+ ], am_cv_func_working_getline=yes dnl The library version works.
|
||||
+ , am_cv_func_working_getline=no dnl The library version does NOT work.
|
||||
+! , dnl We're cross compiling. Assume ir works on glibc2 systems.
|
||||
+! [AC_EGREP_CPP([Lucky GNU user],
|
||||
+! [
|
||||
+! #include <features.h>
|
||||
+! #ifdef __GNU_LIBRARY__
|
||||
+! #if (__GLIBC__ >= 2)
|
||||
+! Lucky GNU user
|
||||
+! #endif
|
||||
+! #endif
|
||||
+! ],
|
||||
+! [am_cv_func_working_getline=yes],
|
||||
+! [am_cv_func_working_getline=no])]
|
||||
+ )])
|
||||
+ fi
|
||||
|
||||
if test $am_cv_func_working_getline = no; then
|
||||
dnl We must choose a different name for our function, since on ELF systems
|
||||
16
meta/packages/gettext/gettext-0.14.1/gettext-error_print_progname.patch
vendored
Normal file
16
meta/packages/gettext/gettext-0.14.1/gettext-error_print_progname.patch
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# Pulled from OpenEmbedded
|
||||
#
|
||||
# Commented by: Saul Wold <saul.wold@intel.com>
|
||||
|
||||
diff -ur gettext-0.14.6/gettext-tools/lib/error.h gettext-0.14.6-patched/gettext-tools/lib/error.h
|
||||
--- gettext-0.14.6/gettext-tools/lib/error.h 2005-05-20 16:03:42.000000000 -0500
|
||||
+++ gettext-0.14.6-patched/gettext-tools/lib/error.h 2007-01-13 20:57:24.422168053 -0600
|
||||
@@ -50,7 +50,7 @@
|
||||
/* If NULL, error will flush stdout, then print on stderr the program
|
||||
name, a colon and a space. Otherwise, error will call this
|
||||
function without parameters instead. */
|
||||
-extern DLL_VARIABLE void (*error_print_progname) (void);
|
||||
+void (*error_print_progname) (void);
|
||||
|
||||
/* This variable is incremented each time `error' is called. */
|
||||
extern DLL_VARIABLE unsigned int error_message_count;
|
||||
15
meta/packages/gettext/gettext-0.14.1/gettext-vpath.patch
vendored
Normal file
15
meta/packages/gettext/gettext-0.14.1/gettext-vpath.patch
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Pulled from OpenEmbedded
|
||||
#
|
||||
# Commented by: Saul Wold <saul.wold@intel.com>
|
||||
|
||||
--- gettext-0.14.1/gettext-runtime/intl/Makefile.in~ 2004-04-09 13:23:40.000000000 +0100
|
||||
+++ gettext-0.14.1/gettext-runtime/intl/Makefile.in 2004-04-09 13:22:05.000000000 +0100
|
||||
@@ -24,7 +24,7 @@
|
||||
srcdir = $(top_srcdir)/../gettext-runtime/intl
|
||||
top_srcdir = /var/tmp/oe-tmp.pb/base/gettext-0.14.1-r0/gettext-0.14.1/gettext-tools
|
||||
top_builddir = ..
|
||||
-VPATH = $(srcdir)
|
||||
+#VPATH = $(srcdir)
|
||||
|
||||
prefix = /usr
|
||||
exec_prefix = /usr
|
||||
1135
meta/packages/gettext/gettext-0.14.1/linklib_from_0.17.patch
vendored
Normal file
1135
meta/packages/gettext/gettext-0.14.1/linklib_from_0.17.patch
vendored
Normal file
File diff suppressed because it is too large
Load Diff
52
meta/packages/gettext/gettext_0.14.1.bb
Normal file
52
meta/packages/gettext/gettext_0.14.1.bb
Normal file
@@ -0,0 +1,52 @@
|
||||
DESCRIPTION = "The GNU internationalization library."
|
||||
HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html"
|
||||
SECTION = "libs"
|
||||
LICENSE = "GPLv2"
|
||||
PR = "r11"
|
||||
DEPENDS = "virtual/libiconv"
|
||||
DEPENDS_virtclass-native = ""
|
||||
PROVIDES = "virtual/libintl"
|
||||
PROVIDES_virtclass-native = ""
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
|
||||
file://gettext-vpath.patch \
|
||||
file://fixchicken.patch \
|
||||
file://linklib_from_0.17.patch \
|
||||
file://getline.m4.patch \
|
||||
file://disable_java.patch"
|
||||
|
||||
# file://gettext-autoconf-lib-link-no-L.patch \
|
||||
|
||||
SRC_URI_append_linux-uclibc = " file://gettext-error_print_progname.patch"
|
||||
SRC_URI_append_linux-uclibceabi = " file://gettext-error_print_progname.patch"
|
||||
|
||||
PARALLEL_MAKE = ""
|
||||
|
||||
inherit autotools
|
||||
|
||||
EXTRA_OECONF += "--without-lisp --disable-csharp"
|
||||
acpaths = '-I ${S}/autoconf-lib-link/m4/ \
|
||||
-I ${S}/gettext-runtime/m4 \
|
||||
-I ${S}/gettext-tools/m4'
|
||||
|
||||
do_configure_prepend() {
|
||||
rm -f ${S}/config/m4/libtool.m4
|
||||
}
|
||||
|
||||
# these lack the .x behind the .so, but shouldn't be in the -dev package
|
||||
# Otherwise you get the following results:
|
||||
# 7.4M glibc/images/ep93xx/Angstrom-console-image-glibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz
|
||||
# 25M uclibc/images/ep93xx/Angstrom-console-image-uclibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz
|
||||
# because gettext depends on gettext-dev, which pulls in more -dev packages:
|
||||
# 15228 KiB /ep93xx/libstdc++-dev_4.2.2-r2_ep93xx.ipk
|
||||
# 1300 KiB /ep93xx/uclibc-dev_0.9.29-r8_ep93xx.ipk
|
||||
# 140 KiB /armv4t/gettext-dev_0.14.1-r6_armv4t.ipk
|
||||
# 4 KiB /ep93xx/libgcc-s-dev_4.2.2-r2_ep93xx.ipk
|
||||
|
||||
PACKAGES =+ "libgettextlib libgettextsrc"
|
||||
FILES_libgettextlib = "${libdir}/libgettextlib-*.so*"
|
||||
FILES_libgettextsrc = "${libdir}/libgettextsrc-*.so*"
|
||||
|
||||
|
||||
SRC_URI[md5sum] = "78f4b862510beb2e5d43223dd610e77d"
|
||||
SRC_URI[sha256sum] = "41f20c469c7759acb34cfa7e0b3cac9096d59a58ad800e471f07424a8e7adbb7"
|
||||
Reference in New Issue
Block a user