[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 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 |
|
---|
[dabbced] | 18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[d0c5f50] | 19 | href="../../final-system/common/gettext.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[3f8be484] | 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of Gettext</title>
|
---|
| 24 |
|
---|
[23d7b98] | 25 | <para os="a">Many packages' installation procedures use the
|
---|
[227ae5a] | 26 | <command>msgfmt</command> program for i18n support, so we will compile
|
---|
[23d7b98] | 27 | and install it into <filename class="directory">/tools</filename>.
|
---|
| 28 | Attr also needs <command>msgmerge</command> and <command>xgettext</command>,
|
---|
| 29 | so we will install those as well.</para>
|
---|
[227ae5a] | 30 |
|
---|
[23d7b98] | 31 | <para os="b">Only the programs in the
|
---|
[3fc19cd] | 32 | <filename class="directory">gettext-tools</filename> directory need to be
|
---|
| 33 | installed for the temp-system:</para>
|
---|
[3f8be484] | 34 |
|
---|
[23d7b98] | 35 | <screen os="c"><userinput>cd gettext-tools</userinput></screen>
|
---|
[3f8be484] | 36 |
|
---|
[23d7b98] | 37 | <para os="d">Prepare Gettext for compilation:</para>
|
---|
[3f8be484] | 38 |
|
---|
[b27081c4] | 39 | <screen os="e"><userinput>EMACS="no" \
|
---|
| 40 | ./configure \
|
---|
| 41 | --prefix=/tools \
|
---|
| 42 | --build=${CLFS_HOST} \
|
---|
| 43 | --host=${CLFS_TARGET} \
|
---|
| 44 | --disable-shared</userinput></screen>
|
---|
[3f8be484] | 45 |
|
---|
[23d7b98] | 46 | <variablelist os="f">
|
---|
[924206c] | 47 | <title>The meaning of the configure option:</title>
|
---|
| 48 |
|
---|
| 49 | <varlistentry>
|
---|
| 50 | <term><parameter>EMACS="no"</parameter></term>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>This prevents the installation of the Emacs Lisp files
|
---|
| 53 | as the test is known to hang on some hosts.</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | </varlistentry>
|
---|
| 56 |
|
---|
| 57 | </variablelist>
|
---|
| 58 |
|
---|
[23d7b98] | 59 | <para os="g">Compile the required programs and support library:</para>
|
---|
[924206c] | 60 |
|
---|
[23d7b98] | 61 | <screen os="h"><userinput>make -C gnulib-lib
|
---|
[924206c] | 62 | make -C intl pluralx.c
|
---|
[52b1b25] | 63 | make -C src msgfmt msgmerge xgettext</userinput></screen>
|
---|
[924206c] | 64 |
|
---|
[a89d3ee] | 65 | <para os="i">Install the <command>msgfmt</command> binary:</para>
|
---|
[924206c] | 66 |
|
---|
[52b1b25] | 67 | <screen os="j"><userinput>cp -v src/{msgfmt,msgmerge,xgettext} /tools/bin</userinput></screen>
|
---|
[924206c] | 68 |
|
---|
[3f8be484] | 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2 role="content">
|
---|
| 72 | <title/>
|
---|
| 73 |
|
---|
| 74 | <para>Details on this package are located in <xref
|
---|
| 75 | linkend="contents-gettext" role="."/></para>
|
---|
| 76 |
|
---|
| 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | </sect1>
|
---|