diff options
Diffstat (limited to 'recipes-core/gettext/gettext_0.16.1.bb')
-rw-r--r-- | recipes-core/gettext/gettext_0.16.1.bb | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/recipes-core/gettext/gettext_0.16.1.bb b/recipes-core/gettext/gettext_0.16.1.bb new file mode 100644 index 0000000..e79f4da --- /dev/null +++ b/recipes-core/gettext/gettext_0.16.1.bb | |||
@@ -0,0 +1,124 @@ | |||
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 = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=9ea3144f04c41cd2eada5d3f472e6ea5" | ||
7 | |||
8 | PR = "r6" | ||
9 | DEPENDS = "virtual/libiconv" | ||
10 | DEPENDS_class-native = "" | ||
11 | PROVIDES = "virtual/libintl virtual/gettext" | ||
12 | PROVIDES_class-native = "virtual/gettext-native" | ||
13 | |||
14 | SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ | ||
15 | file://gettext-vpath.patch \ | ||
16 | file://linklib_from_0.17.patch \ | ||
17 | file://gettext-autoconf-lib-link-no-L.patch \ | ||
18 | file://disable_java.patch \ | ||
19 | file://fix_aclocal_version.patch \ | ||
20 | file://fix_gnu_source_circular.patch \ | ||
21 | file://hardcode_macro_version.patch \ | ||
22 | " | ||
23 | |||
24 | SRC_URI[md5sum] = "3d9ad24301c6d6b17ec30704a13fe127" | ||
25 | SRC_URI[sha256sum] = "0bf850d1a079fb5a61f0a47b1a9efd35eb44032255375e1cedb0253bc27b376d" | ||
26 | |||
27 | PARALLEL_MAKE = "" | ||
28 | |||
29 | LDFLAGS_prepend_libc-uclibc = " -lrt -lpthread " | ||
30 | |||
31 | inherit autotools texinfo | ||
32 | |||
33 | EXTRA_OECONF += "--without-lispdir \ | ||
34 | --disable-csharp \ | ||
35 | --disable-libasprintf \ | ||
36 | --disable-java \ | ||
37 | --disable-native-java \ | ||
38 | --disable-openmp \ | ||
39 | --without-emacs \ | ||
40 | " | ||
41 | EXTRA_OECONF_append_libc-musl = "\ | ||
42 | gt_cv_func_gnugettext1_libc=yes \ | ||
43 | gt_cv_func_gnugettext2_libc=yes \ | ||
44 | " | ||
45 | |||
46 | acpaths = '-I ${S}/autoconf-lib-link/m4/ \ | ||
47 | -I ${S}/gettext-runtime/m4 \ | ||
48 | -I ${S}/gettext-tools/m4' | ||
49 | |||
50 | do_configure_prepend() { | ||
51 | rm -f ${S}/config/m4/libtool.m4 | ||
52 | } | ||
53 | |||
54 | do_install_append_libc-musl () { | ||
55 | rm -f ${D}${libdir}/charset.alias | ||
56 | } | ||
57 | |||
58 | # these lack the .x behind the .so, but shouldn't be in the -dev package | ||
59 | # Otherwise you get the following results: | ||
60 | # 7.4M glibc/images/ep93xx/Angstrom-console-image-glibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
61 | # 25M uclibc/images/ep93xx/Angstrom-console-image-uclibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
62 | # because gettext depends on gettext-dev, which pulls in more -dev packages: | ||
63 | # 15228 KiB /ep93xx/libstdc++-dev_4.2.2-r2_ep93xx.ipk | ||
64 | # 1300 KiB /ep93xx/uclibc-dev_0.9.29-r8_ep93xx.ipk | ||
65 | # 140 KiB /armv4t/gettext-dev_0.14.1-r6_armv4t.ipk | ||
66 | # 4 KiB /ep93xx/libgcc-s-dev_4.2.2-r2_ep93xx.ipk | ||
67 | |||
68 | PACKAGES =+ "libgettextlib libgettextsrc" | ||
69 | FILES_libgettextlib = "${libdir}/libgettextlib-*.so*" | ||
70 | FILES_libgettextsrc = "${libdir}/libgettextsrc-*.so*" | ||
71 | |||
72 | PACKAGES =+ "gettext-runtime gettext-runtime-dev gettext-runtime-staticdev gettext-runtime-doc" | ||
73 | |||
74 | FILES_${PN} += "${libdir}/${BPN}/*" | ||
75 | |||
76 | FILES_gettext-runtime = "${bindir}/gettext \ | ||
77 | ${bindir}/ngettext \ | ||
78 | ${bindir}/envsubst \ | ||
79 | ${bindir}/gettext.sh \ | ||
80 | ${libdir}/libasprintf${SODEV} \ | ||
81 | ${libdir}/GNU.Gettext.dll \ | ||
82 | " | ||
83 | FILES_gettext-runtime_append_libc-uclibc = " ${libdir}/libintl.so.* \ | ||
84 | ${libdir}/charset.alias \ | ||
85 | " | ||
86 | FILES_gettext-runtime-staticdev += "${libdir}/libasprintf.a" | ||
87 | FILES_gettext-runtime-dev += "${includedir}/autosprintf.h \ | ||
88 | ${libdir}/libasprintf${SOLIBDEV}" | ||
89 | FILES_gettext-runtime-dev_append_libc-uclibc = " ${libdir}/libintl.so \ | ||
90 | ${includedir}/libintl.h \ | ||
91 | " | ||
92 | FILES_gettext-runtime-doc = "${mandir}/man1/gettext.* \ | ||
93 | ${mandir}/man1/ngettext.* \ | ||
94 | ${mandir}/man1/envsubst.* \ | ||
95 | ${mandir}/man1/.* \ | ||
96 | ${mandir}/man3/* \ | ||
97 | ${docdir}/gettext/gettext.* \ | ||
98 | ${docdir}/gettext/ngettext.* \ | ||
99 | ${docdir}/gettext/envsubst.* \ | ||
100 | ${docdir}/gettext/*.3.html \ | ||
101 | ${datadir}/gettext/ABOUT-NLS \ | ||
102 | ${docdir}/gettext/csharpdoc/* \ | ||
103 | ${docdir}/libasprintf/autosprintf.html \ | ||
104 | ${infodir}/autosprintf.info \ | ||
105 | " | ||
106 | |||
107 | do_install_append() { | ||
108 | rm -f ${D}${libdir}/preloadable_libintl.so | ||
109 | } | ||
110 | |||
111 | do_install_append_class-native () { | ||
112 | rm ${D}${datadir}/aclocal/* | ||
113 | rm ${D}${datadir}/gettext/config.rpath | ||
114 | rm ${D}${datadir}/gettext/po/Makefile.in.in | ||
115 | rm ${D}${datadir}/gettext/po/remove-potcdate.sin | ||
116 | } | ||
117 | |||
118 | # Anyone inheriting gettext will have both gettext-native and gettext | ||
119 | # available, and we don't want to use older macros from the target gettext in | ||
120 | # a non-gplv3 build, so kill them and let dependent recipes rely on | ||
121 | # gettext-native. | ||
122 | SYSROOT_DIRS_BLACKLIST += "${datadir}/aclocal" | ||
123 | |||
124 | BBCLASSEXTEND = "native nativesdk" | ||