2013-12-22 11:40:50 +00:00
SUMMARY = " Utilities and libraries for producing multi-lingual messages "
DESCRIPTION = " GNU gettext is a set of tools that provides a framework to help other programs produce multi-lingual messages. These tools include a set of conventions about how programs should be written to support message catalogs, a directory and file naming organization for the message catalogs themselves, a runtime library supporting the retrieval of translated messages, and a few stand-alone programs to massage in various ways the sets of translatable and already translated strings. "
2010-08-12 19:47:17 +00:00
HOMEPAGE = " http://www.gnu.org/software/gettext/gettext.html "
SECTION = " libs "
LICENSE = " GPLv2 "
2011-03-17 08:12:56 +00:00
LIC_FILES_CHKSUM = " file://COPYING;md5=9ea3144f04c41cd2eada5d3f472e6ea5 "
2010-12-20 18:03:37 +00:00
2012-06-19 22:39:59 +00:00
PR = " r6 "
2010-08-12 19:47:17 +00:00
DEPENDS = " virtual/libiconv "
2012-10-27 08:48:17 +00:00
DEPENDS_class - native = " "
2011-05-19 21:24:53 +00:00
PROVIDES = " virtual/libintl virtual/gettext "
2016-07-04 06:41:15 +00:00
PROVIDES_class - native = " virtual/gettext-native "
2010-08-12 19:47:17 +00:00
SRC_URI = " ${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
2010-12-20 18:03:37 +00:00
file : / / gettext - vpath . patch \
file : / / linklib_from_0 .1 7. patch \
2011-03-17 08:12:56 +00:00
file : / / gettext - autoconf - lib - link - no - L . patch \
file : / / disable_java . patch \
file : / / fix_aclocal_version . patch \
file : / / fix_gnu_source_circular . patch \
file : / / hardcode_macro_version . patch \
"
2010-08-12 19:47:17 +00:00
2011-03-17 08:12:56 +00:00
SRC_URI [ md5sum ] = " 3d9ad24301c6d6b17ec30704a13fe127 "
SRC_URI [ sha256sum ] = " 0bf850d1a079fb5a61f0a47b1a9efd35eb44032255375e1cedb0253bc27b376d "
2010-12-20 18:03:37 +00:00
2010-08-12 19:47:17 +00:00
PARALLEL_MAKE = " "
2016-08-18 16:15:03 +00:00
LDFLAGS_prepend_libc - uclibc = " -lrt -lpthread "
2014-05-01 20:00:28 +00:00
inherit autotools texinfo
2010-08-12 19:47:17 +00:00
2016-08-18 16:15:01 +00:00
EXTRA_OECONF + = " --without-lispdir \
- - disable - csharp \
2016-08-18 16:15:02 +00:00
- - disable - libasprintf \
- - disable - java \
- - disable - native - java \
2016-08-18 16:15:01 +00:00
- - disable - openmp \
- - without - emacs \
"
2016-08-18 16:15:00 +00:00
EXTRA_OECONF_append_libc - musl = " \
gt_cv_func_gnugettext1_libc = yes \
gt_cv_func_gnugettext2_libc = yes \
"
2010-08-12 19:47:17 +00:00
acpaths = ' - I $ { S } / autoconf - lib - link / m4 / \
2010-12-20 18:03:37 +00:00
- I $ { S } / gettext - runtime / m4 \
- I $ { S } / gettext - tools / m4 '
2010-08-12 19:47:17 +00:00
do_configure_prepend ( ) {
rm - f $ { S } / config / m4 / libtool . m4
}
2015-11-19 00:26:26 +00:00
do_install_append_libc - musl ( ) {
rm - f $ { D } $ { libdir } / charset . alias
}
2010-08-12 19:47:17 +00:00
# these lack the . x behind the . so , but shouldn ' t be in the - dev package
# Otherwise you get the following results :
# 7.4 M glibc / images / ep93xx / Angstrom - console - image - glibc - ipk - 2008.1 - test - 20080104 - ep93xx . rootfs .tar .gz
# 25 M 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 .1 4.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* "
2012-03-21 16:30:37 +00:00
2012-06-19 22:39:59 +00:00
PACKAGES = + " gettext-runtime gettext-runtime-dev gettext-runtime-staticdev gettext-runtime-doc "
FILES_ $ { PN } + = " ${libdir}/${BPN}/* "
FILES_gettext - runtime = " ${bindir}/gettext \
$ { bindir } / ngettext \
$ { bindir } / envsubst \
$ { bindir } / gettext . sh \
$ { libdir } / libasprintf $ { SODEV } \
$ { libdir } / GNU . Gettext .dll \
"
FILES_gettext - runtime_append_libc - uclibc = " ${libdir}/libintl.so.* \
$ { libdir } / charset . alias \
"
FILES_gettext - runtime - staticdev + = " ${libdir}/libasprintf.a "
FILES_gettext - runtime - dev + = " ${includedir}/autosprintf.h \
$ { libdir } / libasprintf $ { SOLIBDEV } "
FILES_gettext - runtime - dev_append_libc - uclibc = " ${libdir}/libintl.so \
$ { includedir } / libintl . h \
"
FILES_gettext - runtime - doc = " ${mandir}/man1/gettext.* \
$ { mandir } / man1 / ngettext . * \
$ { mandir } / man1 / envsubst . * \
$ { mandir } / man1 / . * \
$ { mandir } / man3 / * \
$ { docdir } / gettext / gettext . * \
$ { docdir } / gettext / ngettext . * \
$ { docdir } / gettext / envsubst . * \
$ { docdir } / gettext / * . 3. html \
$ { datadir } / gettext / ABOUT - NLS \
$ { docdir } / gettext / csharpdoc / * \
$ { docdir } / libasprintf / autosprintf . html \
$ { infodir } / autosprintf . info \
"
2012-03-21 16:30:37 +00:00
do_install_append ( ) {
2016-08-18 16:15:03 +00:00
rm - f $ { D } $ { libdir } / preloadable_libintl . so
2012-03-21 16:30:37 +00:00
}
2012-09-11 08:30:18 +00:00
2016-07-07 09:45:35 +00:00
do_install_append_class - native ( ) {
rm $ { D } $ { datadir } / aclocal / *
rm $ { D } $ { datadir } / gettext / config . rpath
rm $ { D } $ { datadir } / gettext / po / Makefile . in .in
rm $ { D } $ { datadir } / gettext / po / remove - potcdate . sin
}
2014-03-17 18:10:54 +00:00
# Anyone inheriting gettext will have both gettext - native and gettext
# available , and we don ' t want to use older macros from the target gettext in
# a non - gplv3 build , so kill them and let dependent recipes rely on
# gettext - native .
2016-05-12 08:38:00 +00:00
SYSROOT_DIRS_BLACKLIST + = " ${datadir}/aclocal "
2014-03-17 18:10:54 +00:00
2012-09-11 08:30:18 +00:00
BBCLASSEXTEND = " native nativesdk "