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

Last change on this file since 0eb57e6 was a268f1f, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Add NCurses Widec build.

  • Property mode set to 100644
File size: 5.4 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">This patch fixes an issue with some bash versions:</para>
29
30<screen os="p2"><userinput>patch -Np1 -i ../&ncurses-bashfix-patch;</userinput></screen>
31
32 <para os="a">Prepare Ncurses for compilation:</para>
33
34<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
35 --prefix=/usr --libdir=/lib --with-shared \
36 --without-debug --without-ada --with-build-cc=gcc</userinput></screen>
37
38 <para os="c">Compile the package:</para>
39
40<screen os="d"><userinput>make</userinput></screen>
41
42 <para os="e">Install the package:</para>
43
44<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
45
46 <para os="g">Move the Ncurses static libraries to the proper location:</para>
47
48<screen os="h"><userinput>mv -v ${CLFS}/lib/lib{panel,menu,form,ncurses,ncurses++,curses}.a \
49 ${CLFS}/usr/lib</userinput></screen>
50
51 <para os="i">Create symlinks in <filename class="directory">/usr/lib:</filename></para>
52
53<screen os="j"><userinput>rm -v ${CLFS}/lib/lib{ncurses,menu,panel,form,curses}.so
54ln -sfv ../../lib/libncurses.so.&ncurses-version2; ${CLFS}/usr/lib/libcurses.so
55ln -sfv ../../lib/libncurses.so.&ncurses-version2; ${CLFS}/usr/lib/libncurses.so
56ln -sfv ../../lib/libmenu.so.&ncurses-version2; ${CLFS}/usr/lib/libmenu.so
57ln -sfv ../../lib/libpanel.so.&ncurses-version2; ${CLFS}/usr/lib/libpanel.so
58ln -sfv ../../lib/libform.so.&ncurses-version2; ${CLFS}/usr/lib/libform.so</userinput></screen>
59
60 <para os="k">Give the Ncurses libraries execute permissions:</para>
61
62<screen os="l"><userinput>chmod -v 755 ${CLFS}/lib/lib{panel,menu,form,ncurses}.so.&ncurses-version;</userinput></screen>
63
64 </sect2>
65
66 <sect2 id="contents-ncurses" role="content">
67 <title>Contents of Ncurses</title>
68
69 <segmentedlist>
70 <segtitle>Installed programs</segtitle>
71 <segtitle>Installed libraries</segtitle>
72
73 <seglistitem>
74 <seg>ncurses5-config</seg>
75 <seg>libcurses.[a,so] (link to libncurses.[a,so]), libform.[a,so],
76 libmenu.[a,so], libncurses++.a, libncurses.[a,so], and
77 libpanel.[a,so]</seg>
78 </seglistitem>
79 </segmentedlist>
80
81 <variablelist>
82 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
83 <?dbfo list-presentation="list"?>
84 <?dbhtml list-presentation="table"?>
85
86 <varlistentry id="ncurses5-config">
87 <term><command>ncurses5-config</command></term>
88 <listitem>
89 <para>Provides configuration information for ncurses</para>
90 <indexterm zone="ch-system-ncurses ncurses5-config">
91 <primary sortas="b-ncurses5-config">ncurses5-config</primary>
92 </indexterm>
93 </listitem>
94 </varlistentry>
95
96 <varlistentry id="libcurses">
97 <term><filename class="libraryfile">libcurses</filename></term>
98 <listitem>
99 <para>A link to <filename>libncurses</filename></para>
100 <indexterm zone="ch-system-ncurses libcurses">
101 <primary sortas="c-libcurses">libcurses</primary>
102 </indexterm>
103 </listitem>
104 </varlistentry>
105
106 <varlistentry id="libncurses">
107 <term><filename class="libraryfile">libncurses</filename></term>
108 <listitem>
109 <para>Contains functions to display text in many complex ways on a
110 terminal screen; a good example of the use of these functions is the
111 menu displayed during the kernel's
112 <command>make menuconfig</command></para>
113 <indexterm zone="ch-system-ncurses libncurses">
114 <primary sortas="c-libncurses">libncurses</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="libform">
120 <term><filename class="libraryfile">libform</filename></term>
121 <listitem>
122 <para>Contains functions to implement forms</para>
123 <indexterm zone="ch-system-ncurses libform">
124 <primary sortas="c-libform">libform</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 <varlistentry id="libmenu">
130 <term><filename class="libraryfile">libmenu</filename></term>
131 <listitem>
132 <para>Contains functions to implement menus</para>
133 <indexterm zone="ch-system-ncurses libmenu">
134 <primary sortas="c-libmenu">libmenu</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry id="libpanel">
140 <term><filename class="libraryfile">libpanel</filename></term>
141 <listitem>
142 <para>Contains functions to implement panels</para>
143 <indexterm zone="ch-system-ncurses libpanel">
144 <primary sortas="c-libpanel">libpanel</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 </variablelist>
150
151 </sect2>
152
153</sect1>
Note: See TracBrowser for help on using the repository browser.