Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Utilities and libraries for producing multi-lingual messages" |
| 2 | 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." |
| 3 | HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html" |
| 4 | SECTION = "libs" |
| 5 | LICENSE = "GPLv3+ & LGPL-2.1+" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
| 7 | |
| 8 | DEPENDS = "gettext-native virtual/libiconv expat" |
| 9 | DEPENDS_class-native = "gettext-minimal-native" |
| 10 | PROVIDES = "virtual/libintl virtual/gettext" |
| 11 | PROVIDES_class-native = "virtual/gettext-native" |
| 12 | RCONFLICTS_${PN} = "proxy-libintl" |
| 13 | SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ |
| 14 | file://parallel.patch \ |
| 15 | " |
| 16 | |
| 17 | PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${STAGING_LIBDIR}/..,--disable-curses,ncurses," |
| 18 | |
| 19 | LDFLAGS_prepend_libc-uclibc = " -lrt -lpthread " |
| 20 | |
| 21 | SRC_URI[md5sum] = "d3511af1e604a3478900d2c2b4a4a48e" |
| 22 | SRC_URI[sha256sum] = "8ac9f1ed1a5f8c4e656a2f37f5ba6b9ee04c4df79a575e876b0b6946aa417f3f" |
| 23 | |
| 24 | inherit autotools texinfo |
| 25 | |
| 26 | EXTRA_OECONF += "--without-lispdir \ |
| 27 | --disable-csharp \ |
| 28 | --disable-libasprintf \ |
| 29 | --disable-java \ |
| 30 | --disable-native-java \ |
| 31 | --disable-openmp \ |
| 32 | --disable-acl \ |
| 33 | --with-included-glib \ |
| 34 | --without-emacs \ |
| 35 | --without-cvs \ |
| 36 | --without-git \ |
| 37 | --with-included-libxml \ |
| 38 | --with-included-libcroco \ |
| 39 | --with-included-libunistring \ |
| 40 | " |
| 41 | |
| 42 | acpaths = '-I ${S}/gettext-runtime/m4 \ |
| 43 | -I ${S}/gettext-tools/m4' |
| 44 | |
| 45 | |
| 46 | # these lack the .x behind the .so, but shouldn't be in the -dev package |
| 47 | # Otherwise you get the following results: |
| 48 | # 7.4M glibc/images/ep93xx/Angstrom-console-image-glibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz |
| 49 | # 25M uclibc/images/ep93xx/Angstrom-console-image-uclibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz |
| 50 | # because gettext depends on gettext-dev, which pulls in more -dev packages: |
| 51 | # 15228 KiB /ep93xx/libstdc++-dev_4.2.2-r2_ep93xx.ipk |
| 52 | # 1300 KiB /ep93xx/uclibc-dev_0.9.29-r8_ep93xx.ipk |
| 53 | # 140 KiB /armv4t/gettext-dev_0.14.1-r6_armv4t.ipk |
| 54 | # 4 KiB /ep93xx/libgcc-s-dev_4.2.2-r2_ep93xx.ipk |
| 55 | |
| 56 | PACKAGES =+ "libgettextlib libgettextsrc" |
| 57 | FILES_libgettextlib = "${libdir}/libgettextlib-*.so*" |
| 58 | FILES_libgettextsrc = "${libdir}/libgettextsrc-*.so*" |
| 59 | |
| 60 | PACKAGES =+ "gettext-runtime gettext-runtime-dev gettext-runtime-doc" |
| 61 | |
| 62 | FILES_${PN} += "${libdir}/${BPN}/*" |
| 63 | |
| 64 | FILES_gettext-runtime = "${bindir}/gettext \ |
| 65 | ${bindir}/ngettext \ |
| 66 | ${bindir}/envsubst \ |
| 67 | ${bindir}/gettext.sh \ |
| 68 | ${libdir}/libasprintf.so* \ |
| 69 | ${libdir}/GNU.Gettext.dll \ |
| 70 | " |
| 71 | FILES_gettext-runtime_append_libc-uclibc = " ${libdir}/libintl.so.* \ |
| 72 | ${libdir}/charset.alias \ |
| 73 | " |
| 74 | FILES_gettext-runtime-dev += "${libdir}/libasprintf.a \ |
| 75 | ${includedir}/autosprintf.h \ |
| 76 | " |
| 77 | FILES_gettext-runtime-dev_append_libc-uclibc = " ${libdir}/libintl.so \ |
| 78 | ${includedir}/libintl.h \ |
| 79 | " |
| 80 | FILES_gettext-runtime-doc = "${mandir}/man1/gettext.* \ |
| 81 | ${mandir}/man1/ngettext.* \ |
| 82 | ${mandir}/man1/envsubst.* \ |
| 83 | ${mandir}/man1/.* \ |
| 84 | ${mandir}/man3/* \ |
| 85 | ${docdir}/gettext/gettext.* \ |
| 86 | ${docdir}/gettext/ngettext.* \ |
| 87 | ${docdir}/gettext/envsubst.* \ |
| 88 | ${docdir}/gettext/*.3.html \ |
| 89 | ${datadir}/gettext/ABOUT-NLS \ |
| 90 | ${docdir}/gettext/csharpdoc/* \ |
| 91 | ${docdir}/libasprintf/autosprintf.html \ |
| 92 | ${infodir}/autosprintf.info \ |
| 93 | " |
| 94 | |
| 95 | do_install_append() { |
| 96 | rm -f ${D}${libdir}/preloadable_libintl.so |
| 97 | } |
| 98 | |
| 99 | do_install_append_class-native () { |
| 100 | rm ${D}${datadir}/aclocal/* |
| 101 | rm ${D}${datadir}/gettext/config.rpath |
| 102 | rm ${D}${datadir}/gettext/po/Makefile.in.in |
| 103 | rm ${D}${datadir}/gettext/po/remove-potcdate.sin |
| 104 | } |
| 105 | |
| 106 | BBCLASSEXTEND = "native nativesdk" |