[43f755b] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-temp-system-gettext" role="wrap">
|
---|
| 9 | <?dbhtml filename="gettext.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Gettext-&gettext-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-temp-system-gettext">
|
---|
| 14 | <primary sortas="a-Gettext">Gettext</primary>
|
---|
| 15 | <secondary>temporary system</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 19 | href="../../final-system/common/gettext.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
| 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of Gettext</title>
|
---|
| 24 |
|
---|
| 25 | <para os="a">Only the programs in the
|
---|
| 26 | <filename class="directory">gettext-tools</filename> directory need to be
|
---|
| 27 | installed for the temp-system:</para>
|
---|
| 28 |
|
---|
| 29 | <screen os="b"><userinput>cd gettext-tools</userinput></screen>
|
---|
| 30 |
|
---|
| 31 | <para os="t1">When cross-compiling the Gettext configure script assumes we
|
---|
| 32 | don't have a working wcwidth when we do. The following will fix possible
|
---|
| 33 | compilation errors because of this assumption:</para>
|
---|
| 34 |
|
---|
| 35 | <screen os="t2"><userinput>echo "gl_cv_func_wcwidth_works=yes" > config.cache</userinput></screen>
|
---|
| 36 |
|
---|
| 37 | <para os="c">Prepare Gettext for compilation:</para>
|
---|
| 38 |
|
---|
| 39 | <screen os="d"><userinput>./configure --prefix=/tools \
|
---|
| 40 | --disable-shared --cache-file=config.cache</userinput></screen>
|
---|
| 41 |
|
---|
| 42 | <variablelist os="e">
|
---|
| 43 | <title>The meaning of the configure options:</title>
|
---|
| 44 |
|
---|
| 45 | <varlistentry os="e1">
|
---|
| 46 | <term><parameter>--disable-shared</parameter></term>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>This tells Gettext not to create a shared library.</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | </varlistentry>
|
---|
| 51 |
|
---|
| 52 | </variablelist>
|
---|
| 53 |
|
---|
| 54 | <para os="f">Compile the package:</para>
|
---|
| 55 |
|
---|
| 56 | <screen os="g"><userinput>make -C gnulib-lib
|
---|
| 57 | make -C src msgfmt</userinput></screen>
|
---|
| 58 |
|
---|
| 59 | <para os="h">Install the <command>msgfmt</command> binary:</para>
|
---|
| 60 |
|
---|
| 61 | <screen os="i"><userinput>cp -v src/msgfmt /tools/bin</userinput></screen>
|
---|
| 62 |
|
---|
| 63 | </sect2>
|
---|
| 64 |
|
---|
| 65 | <sect2 role="content">
|
---|
| 66 | <title/>
|
---|
| 67 |
|
---|
| 68 | <para>Details on this package are located in <xref
|
---|
| 69 | linkend="contents-gettext" role="."/></para>
|
---|
| 70 |
|
---|
| 71 | </sect2>
|
---|
| 72 |
|
---|
| 73 | </sect1>
|
---|