source: clfs-sysroot/BOOK/final-system/common/ncurses.xml@ 48b0b67

Last change on this file since 48b0b67 was ef88672, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Port the ncurses widec build from trunk.

  • Property mode set to 100644
File size: 10.0 KB
Line 
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-system-ncurses" role="wrap">
9 <?dbhtml filename="ncurses.html"?>
10
11 <title>Ncurses-&ncurses-version;</title>
12
13 <indexterm zone="ch-system-ncurses">
14 <primary sortas="a-Ncurses">Ncurses</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Ncurses package contains libraries for terminal-independent
21 handling of character screens.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Ncurses</title>
27
28 <para os="p1">The following patch contains updates from the &ncurses-version; branch
29 by the Ncurses developers:</para>
30
31<screen os="p2"><userinput>patch -Np1 -i ../&ncurses-branch_update-patch;</userinput></screen>
32
33 <para os="p3">This patch fixes an issue with some Bash versions:</para>
34
35<screen os="p4"><userinput>patch -Np1 -i ../&ncurses-bashfix-patch;</userinput></screen>
36
37 <para os="a">Prepare Ncurses for compilation:</para>
38
39<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
40 --prefix=/usr --libdir=/lib --with-shared \
41 --enable-widec --without-debug --without-ada \
42 --with-build-cc=gcc</userinput></screen>
43
44 <para os="c">Compile the package:</para>
45
46<screen os="d"><userinput>make</userinput></screen>
47
48 <para os="e">Install the package:</para>
49
50<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
51
52 <para os="g">Move the Ncurses static libraries to the proper location:</para>
53
54<screen os="h"><userinput>mv -v ${CLFS}/lib/lib{panelw,menuw,formw,ncursesw,ncurses++w}.a \
55 ${CLFS}/usr/lib</userinput></screen>
56
57 <para os="i">Create symlinks in <filename class="directory">/usr/lib:</filename></para>
58
59<screen os="j"><userinput>rm -v ${CLFS}/lib/lib{ncursesw,menuw,panelw,formw}.so
60ln -sfv ../../lib/libncursesw.so.&ncurses-version2; ${CLFS}/usr/lib/libncursesw.so
61ln -sfv ../../lib/libmenuw.so.&ncurses-version2; ${CLFS}/usr/lib/libmenuw.so
62ln -sfv ../../lib/libpanelw.so.&ncurses-version2; ${CLFS}/usr/lib/libpanelw.so
63ln -sfv ../../lib/libformw.so.&ncurses-version2; ${CLFS}/usr/lib/libformw.so</userinput></screen>
64
65 <para os="k">Now we will make our Ncurses compatible for older and non-widec compatible programs
66 can build properly:</para>
67
68<screen os="l"><userinput>for lib in curses ncurses form panel menu ; do
69 echo "INPUT(-l${lib}w)" > ${CLFS}/usr/lib/lib${lib}.so
70 ln -sfv lib${lib}w.a ${CLFS}/usr/lib/lib${lib}.a
71done
72ln -sfv libncursesw.so ${CLFS}/usr/lib/libcursesw.so
73ln -sfv libncursesw.a ${CLFS}/usr/lib/libcursesw.a
74ln -sfv libncurses++w.a ${CLFS}/usr/lib/libncurses++.a
75ln -sfv ncursesw5-config ${CLFS}/usr/bin/ncurses5-config</userinput></screen>
76
77 <para os="m">Now we will create a symlink for /usr/share/terminfo in
78 <filename class="directory">/usr/lib</filename> for compatibility:</para>
79
80<screen os="n"><userinput>ln -sfv ../../usr/share/terminfo ${CLFS}/usr/lib/terminfo</userinput></screen>
81
82 </sect2>
83
84 <sect2 id="contents-ncurses" role="content">
85 <title>Contents of Ncurses</title>
86
87 <segmentedlist>
88 <segtitle>Installed programs</segtitle>
89 <segtitle>Installed libraries</segtitle>
90
91 <seglistitem>
92 <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
93 ncursesw5-config, reset (link to tset), tabs, tic, toe, tput, and tset</seg>
94 <seg>libcursesw.so (link to libncursesw.so), libformw.[a,so],
95 libmenuw.[a,so], libncurses++w.a, libncursesw.[a,so], and
96 libpanelw.[a,so]</seg>
97 </seglistitem>
98 </segmentedlist>
99
100 <variablelist>
101 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
102 <?dbfo list-presentation="list"?>
103 <?dbhtml list-presentation="table"?>
104
105 <varlistentry id="captoinfo">
106 <term><command>captoinfo</command></term>
107 <listitem>
108 <para>Converts a termcap description into a terminfo description</para>
109 <indexterm zone="ch-system-ncurses captoinfo">
110 <primary sortas="b-captoinfo">captoinfo</primary>
111 </indexterm>
112 </listitem>
113 </varlistentry>
114
115 <varlistentry id="clear">
116 <term><command>clear</command></term>
117 <listitem>
118 <para>Clears the screen, if possible</para>
119 <indexterm zone="ch-system-ncurses clear">
120 <primary sortas="b-clear">clear</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry id="infocmp">
126 <term><command>infocmp</command></term>
127 <listitem>
128 <para>Compares or prints out terminfo descriptions</para>
129 <indexterm zone="ch-system-ncurses infocmp">
130 <primary sortas="b-infocmp">infocmp</primary>
131 </indexterm>
132 </listitem>
133 </varlistentry>
134
135 <varlistentry id="infotocap">
136 <term><command>infotocap</command></term>
137 <listitem>
138 <para>Converts a terminfo description into a termcap description</para>
139 <indexterm zone="ch-system-ncurses infotocap">
140 <primary sortas="b-infotocap">infotocap</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 <varlistentry id="ncursesw5-config">
146 <term><command>ncursesw5-config</command></term>
147 <listitem>
148 <para>Provides configuration information for ncurses</para>
149 <indexterm zone="ch-system-ncurses ncursesw5-config">
150 <primary sortas="b-ncursesw5-config">ncursesw5-config</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 <varlistentry id="reset">
156 <term><command>reset</command></term>
157 <listitem>
158 <para>Reinitializes a terminal to its default values</para>
159 <indexterm zone="ch-system-ncurses reset">
160 <primary sortas="b-reset">reset</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164
165 <varlistentry id="tabs">
166 <term><command>tabs</command></term>
167 <listitem>
168 <para>Sets and clears tab stops on a terminal</para>
169 <indexterm zone="ch-system-ncurses tabs">
170 <primary sortas="b-tabs">tabs</primary>
171 </indexterm>
172 </listitem>
173 </varlistentry>
174
175 <varlistentry id="tic">
176 <term><command>tic</command></term>
177 <listitem>
178 <para>The terminfo entry-description compiler that translates a
179 terminfo file from source format into the binary format needed for the
180 ncurses library routines. A terminfo file contains information on the
181 capabilities of a certain terminal</para>
182 <indexterm zone="ch-system-ncurses tic">
183 <primary sortas="b-tic">tic</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="toe">
189 <term><command>toe</command></term>
190 <listitem>
191 <para>Lists all available terminal types, giving the primary name and
192 description for each</para>
193 <indexterm zone="ch-system-ncurses toe">
194 <primary sortas="b-toe">toe</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="tput">
200 <term><command>tput</command></term>
201 <listitem>
202 <para>Makes the values of terminal-dependent capabilities available to
203 the shell; it can also be used to reset or initialize a terminal or
204 report its long name</para>
205 <indexterm zone="ch-system-ncurses tput">
206 <primary sortas="b-tput">tput</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="tset">
212 <term><command>tset</command></term>
213 <listitem>
214 <para>Can be used to initialize terminals</para>
215 <indexterm zone="ch-system-ncurses tset">
216 <primary sortas="b-tset">tset</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="libcursesw">
222 <term><filename class="libraryfile">libcursesw</filename></term>
223 <listitem>
224 <para>A link to <filename>libncursesw</filename></para>
225 <indexterm zone="ch-system-ncurses libcursesw">
226 <primary sortas="c-libcursesw">libcursesw</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="libncursesw">
232 <term><filename class="libraryfile">libncursesw</filename></term>
233 <listitem>
234 <para>Contains functions to display text in many complex ways on a
235 terminal screen; a good example of the use of these functions is the
236 menu displayed during the kernel's
237 <command>make menuconfig</command></para>
238 <indexterm zone="ch-system-ncurses libncursesw">
239 <primary sortas="c-libncursesw">libncursesw</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="libformw">
245 <term><filename class="libraryfile">libformw</filename></term>
246 <listitem>
247 <para>Contains functions to implement forms</para>
248 <indexterm zone="ch-system-ncurses libformw">
249 <primary sortas="c-libform">libformw</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="libmenuw">
255 <term><filename class="libraryfile">libmenuw</filename></term>
256 <listitem>
257 <para>Contains functions to implement menus</para>
258 <indexterm zone="ch-system-ncurses libmenuw">
259 <primary sortas="c-libmenuw">libmenuw</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="libpanelw">
265 <term><filename class="libraryfile">libpanelw</filename></term>
266 <listitem>
267 <para>Contains functions to implement panels</para>
268 <indexterm zone="ch-system-ncurses libpanelw">
269 <primary sortas="c-libpanelw">libpanelw</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 </variablelist>
275
276 </sect2>
277
278</sect1>
Note: See TracBrowser for help on using the repository browser.