diff options
Diffstat (limited to 'meta/recipes-core/gettext/gettext_0.19.8.1.bb')
-rw-r--r-- | meta/recipes-core/gettext/gettext_0.19.8.1.bb | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb b/meta/recipes-core/gettext/gettext_0.19.8.1.bb new file mode 100644 index 0000000000..7b8c1e8eb4 --- /dev/null +++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb | |||
@@ -0,0 +1,120 @@ | |||
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 | file://add-with-bisonlocaledir.patch \ | ||
16 | " | ||
17 | |||
18 | SRC_URI[md5sum] = "97e034cf8ce5ba73a28ff6c3c0638092" | ||
19 | SRC_URI[sha256sum] = "ff942af0e438ced4a8b0ea4b0b6e0d6d657157c5e2364de57baa279c1c125c43" | ||
20 | |||
21 | PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${STAGING_LIBDIR}/..,--disable-curses,ncurses," | ||
22 | |||
23 | LDFLAGS_prepend_libc-uclibc = " -lrt -lpthread " | ||
24 | |||
25 | inherit autotools texinfo | ||
26 | |||
27 | EXTRA_OECONF += "--without-lispdir \ | ||
28 | --disable-csharp \ | ||
29 | --disable-libasprintf \ | ||
30 | --disable-java \ | ||
31 | --disable-native-java \ | ||
32 | --disable-openmp \ | ||
33 | --disable-acl \ | ||
34 | --with-included-glib \ | ||
35 | --without-emacs \ | ||
36 | --without-cvs \ | ||
37 | --without-git \ | ||
38 | --with-included-libxml \ | ||
39 | --with-included-libcroco \ | ||
40 | --with-included-libunistring \ | ||
41 | " | ||
42 | EXTRA_OECONF_append_class-target = " \ | ||
43 | --with-bisonlocaledir=${datadir}/locale \ | ||
44 | " | ||
45 | |||
46 | acpaths = '-I ${S}/gettext-runtime/m4 \ | ||
47 | -I ${S}/gettext-tools/m4' | ||
48 | |||
49 | do_install_append_libc-musl () { | ||
50 | rm -f ${D}${libdir}/charset.alias | ||
51 | rm -f ${D}${includedir}/libintl.h | ||
52 | rm -f ${D}${libdir}/libintl.la | ||
53 | } | ||
54 | |||
55 | # these lack the .x behind the .so, but shouldn't be in the -dev package | ||
56 | # Otherwise you get the following results: | ||
57 | # 7.4M glibc/images/ep93xx/Angstrom-console-image-glibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
58 | # 25M uclibc/images/ep93xx/Angstrom-console-image-uclibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
59 | # because gettext depends on gettext-dev, which pulls in more -dev packages: | ||
60 | # 15228 KiB /ep93xx/libstdc++-dev_4.2.2-r2_ep93xx.ipk | ||
61 | # 1300 KiB /ep93xx/uclibc-dev_0.9.29-r8_ep93xx.ipk | ||
62 | # 140 KiB /armv4t/gettext-dev_0.14.1-r6_armv4t.ipk | ||
63 | # 4 KiB /ep93xx/libgcc-s-dev_4.2.2-r2_ep93xx.ipk | ||
64 | |||
65 | PACKAGES =+ "libgettextlib libgettextsrc" | ||
66 | FILES_libgettextlib = "${libdir}/libgettextlib-*.so*" | ||
67 | FILES_libgettextsrc = "${libdir}/libgettextsrc-*.so*" | ||
68 | |||
69 | PACKAGES =+ "gettext-runtime gettext-runtime-dev gettext-runtime-doc" | ||
70 | |||
71 | FILES_${PN} += "${libdir}/${BPN}/*" | ||
72 | |||
73 | # The its/Makefile.am has defined: | ||
74 | # itsdir = $(pkgdatadir)$(PACKAGE_SUFFIX)/its | ||
75 | # not itsdir = $(pkgdatadir), so use wildcard to match the version. | ||
76 | FILES_${PN} += "${datadir}/${BPN}-*/*" | ||
77 | |||
78 | FILES_gettext-runtime = "${bindir}/gettext \ | ||
79 | ${bindir}/ngettext \ | ||
80 | ${bindir}/envsubst \ | ||
81 | ${bindir}/gettext.sh \ | ||
82 | ${libdir}/libasprintf.so* \ | ||
83 | ${libdir}/GNU.Gettext.dll \ | ||
84 | " | ||
85 | FILES_gettext-runtime_append_libc-uclibc = " ${libdir}/libintl.so.* \ | ||
86 | ${libdir}/charset.alias \ | ||
87 | " | ||
88 | FILES_gettext-runtime-dev += "${libdir}/libasprintf.a \ | ||
89 | ${includedir}/autosprintf.h \ | ||
90 | " | ||
91 | FILES_gettext-runtime-dev_append_libc-uclibc = " ${libdir}/libintl.so \ | ||
92 | ${includedir}/libintl.h \ | ||
93 | " | ||
94 | FILES_gettext-runtime-doc = "${mandir}/man1/gettext.* \ | ||
95 | ${mandir}/man1/ngettext.* \ | ||
96 | ${mandir}/man1/envsubst.* \ | ||
97 | ${mandir}/man1/.* \ | ||
98 | ${mandir}/man3/* \ | ||
99 | ${docdir}/gettext/gettext.* \ | ||
100 | ${docdir}/gettext/ngettext.* \ | ||
101 | ${docdir}/gettext/envsubst.* \ | ||
102 | ${docdir}/gettext/*.3.html \ | ||
103 | ${datadir}/gettext/ABOUT-NLS \ | ||
104 | ${docdir}/gettext/csharpdoc/* \ | ||
105 | ${docdir}/libasprintf/autosprintf.html \ | ||
106 | ${infodir}/autosprintf.info \ | ||
107 | " | ||
108 | |||
109 | do_install_append() { | ||
110 | rm -f ${D}${libdir}/preloadable_libintl.so | ||
111 | } | ||
112 | |||
113 | do_install_append_class-native () { | ||
114 | rm ${D}${datadir}/aclocal/* | ||
115 | rm ${D}${datadir}/gettext/config.rpath | ||
116 | rm ${D}${datadir}/gettext/po/Makefile.in.in | ||
117 | rm ${D}${datadir}/gettext/po/remove-potcdate.sin | ||
118 | } | ||
119 | |||
120 | BBCLASSEXTEND = "native nativesdk" | ||