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

Last change on this file since f3125bf was c8063d1, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Remove some redundancy in the terminfo symlink command for ncurses.

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