OSDN Git Service

[lfsja-git] r11.1-133 対応。
[lfsbookja/lfsja-git.git] / src / chapter06 / ncurses.ch
1 %
2 % This is part of LFSbookja package.
3 %
4 % This is a CTIE change file for the original XML source of the LFSbook.
5 %
6 @x
7 <?xml version="1.0" encoding="ISO-8859-1"?>
8 @y
9 <?xml version="1.0" encoding="UTF-8"?>
10 @z
11
12 @x
13   <indexterm zone="ch-tools-ncurses">
14     <primary sortas="a-Ncurses">Ncurses</primary>
15     <secondary>tools</secondary>
16   </indexterm>
17 @y
18   <indexterm zone="ch-tools-ncurses">
19     <primary sortas="a-Ncurses">Ncurses</primary>
20     <secondary>&Tools;</secondary>
21   </indexterm>
22 @z
23
24 @x
25     <title>Installation of Ncurses</title>
26 @y
27     <title>&InstallationOf1;Ncurses&InstallationOf2;</title>
28 @z
29
30 @x
31     <para>First, ensure that <command>gawk</command> is found first during configuration:</para>
32 @y
33     <para>
34     ビルドにあたって <command>gawk</command> が必ず最初に見つかるようにします。
35     </para>
36 @z
37
38 @x
39     <para>Then, run the following commands to build the <quote>tic</quote>
40     program on the build host:</para>
41 @y
42     <para>
43     そして以下のコマンドを実行して、ビルドホスト上に<quote>tic</quote>プログラムをビルドします。
44     </para>
45 @z
46
47 @x
48     <para>Prepare Ncurses for compilation:</para>
49 @y
50     <para>&PreparePackage1;Ncurses&PreparePackage2;</para>
51 @z
52
53 @x
54       <title>The meaning of the new configure options:</title>
55 @y
56       <title>&MeaningOfOption1;configure&MeaningOfOption2;</title>
57 @z
58
59 @x --with-manpage-format=normal
60           <para>This prevents Ncurses installing compressed manual
61           pages, which may happen if the host distribution itself
62           has compressed manual pages.</para>
63 @y
64           <para>
65           本パラメーターは Ncurses が圧縮された man ページをインストールしないようにします。
66           ホストディストリビューションそのものが圧縮 man ページを利用していると、同じようになってしまうからです。
67           </para>
68 @z
69
70 @x --without-ada
71           <para>This ensures that Ncurses does not build support for the Ada
72           compiler which may be present on the host but will not be available
73           once we enter the <command>chroot</command> environment.</para>
74 @y
75           <para>
76           このオプションは Ncurses に対して Ada コンパイラーのサポート機能をビルドしないよう指示します。
77           この機能はホストシステムでは提供されているかもしれませんが、<command>chroot</command> 環境に入ってしまうと利用できなくなります。
78           </para>
79 @z
80
81 @x
82           <para>This switch prevents the building system from stripping
83           the programs using <command>strip</command> program from the host.
84           Using host tools on cross-compiled program can cause failure.</para>
85 @y
86           <para>
87           本スイッチは、ホスト上にある <command>strip</command> を使って、ビルドシステム内のプログラムのストリップを行わないようにします。
88           クロスコンパイルされたプログラムに対して、ホスト上のツールを使うと、ビルド失敗の原因になります。
89           </para>
90 @z
91
92 @x --enable-widec
93           <para>This switch causes wide-character libraries (e.g., <filename
94           class="libraryfile">libncursesw.so.&ncurses-version;</filename>)
95           to be built instead of normal ones (e.g., <filename
96           class="libraryfile">libncurses.so.&ncurses-version;</filename>).
97           These wide-character libraries are usable in both multibyte and
98           traditional 8-bit locales, while normal libraries work properly
99           only in 8-bit locales. Wide-character and normal libraries are
100           source-compatible, but not binary-compatible.</para>
101 @y
102           <para>
103           本スイッチは通常のライブラリ (<filename
104           class="libraryfile">libncurses.so.&ncurses-version;</filename>) ではなくワイド文字対応のライブラリ (<filename
105           class="libraryfile">libncursesw.so.&ncurses-version;</filename>) をビルドすることを指示します。
106           ワイド文字対応のライブラリは、マルチバイトロケールと従来の 8ビットロケールの双方に対して利用可能です。
107           通常のライブラリでは 8ビットロケールに対してしか動作しません。
108           ワイド文字対応と通常のものとでは、ソース互換があるもののバイナリ互換がありません。
109           </para>
110 @z
111
112 @x --without-normal
113           <para>This switch disables building and installing most static libraries.
114           </para>
115 @y
116           <para>
117           本スイッチは、ほとんどのスタティックライブラリをビルドせずインストールもしません。
118           </para>
119 @z
120
121 @x
122     <para>Compile the package:</para>
123 @y
124     <para>&CompileThePackage;</para>
125 @z
126
127 @x
128     <para>Install the package:</para>
129 @y
130     <para>&InstallThePackage;</para>
131 @z
132
133 @x
134     <para>Remove an unneeded static library not handled by
135     <command>configure</command>:</para>
136 @y
137     <para>
138     <command>configure</command> が扱っていない不要なスタティックライブラリを削除します。
139     </para>
140 @z
141
142 @x
143       <title>The meaning of the install options:</title>
144 @y
145       <title>&MeaningOfOption1;install&MeaningOfOption2;</title>
146 @z
147
148 @x TIC_PATH=$(pwd)/build/progs/tic
149           <para>We need to pass the path of the just built
150           <command>tic</command> able to run on the building machine, so that
151           the terminal database can be created without errors.</para>
152 @y
153           <para>
154           ビルドマシン上において、作り出したばかりの <command>tic</command> のパスを示すことが必要です。
155           こうすることで terminal データベースがエラーなく生成できることになります。
156           </para>
157 @z
158
159 @x echo "INPUT(-lncursesw)" > $LFS/usr/lib/libncurses.so
160           <para>The <filename>libncurses.so</filename> library is needed by
161           a few packages we will build soon. We create this small linker
162           script, as this is what is done in <xref
163           linkend="chapter-building-system"/>.</para>
164 @y
165           <para>
166           パッケージの中で、わずかですが <filename>libncurses.so</filename> を必要としているものがあります。
167           これはすぐに生成する予定のものです。
168           ここでこの小さなリンカースクリプトを生成します。
169           これは <xref linkend="chapter-building-system"/> においてビルドします。
170           </para>
171 @z
172
173 @x
174     <para>Details on this package are located in
175     <xref linkend="contents-ncurses" role="."/></para>
176 @y
177     <para>
178     &Details1;<xref linkend="contents-ncurses" role=""/>&Details2;
179     </para>
180 @z