aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/ncurses.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/ncurses.xml')
-rw-r--r--chapter06/ncurses.xml61
1 files changed, 38 insertions, 23 deletions
diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml
index 6761124d4..70aca29fe 100644
--- a/chapter06/ncurses.xml
+++ b/chapter06/ncurses.xml
@@ -41,15 +41,9 @@
<sect2 role="installation">
<title>Installation of Ncurses</title>
- <!-- FIXME: Uncomment if using a dated ncurses release instead of a numbered
- one.
+ <para>Don't install a static library that is not handled by configure:</para>
- <para>Since the release of Ncurses-&ncurses-version;, some bugs have been fixed
- and features added. The most important news are .......
- To get these fixes and features, apply the rollup patch:</para>
-
-<screen><userinput>bzcat ../&ncurses-rollup-patch; | patch -Np1</userinput></screen>
- -->
+<screen><userinput remap="pre">sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in</userinput></screen>
<para>Prepare Ncurses for compilation:</para>
@@ -57,6 +51,7 @@
--mandir=/usr/share/man \
--with-shared \
--without-debug \
+ --without-normal \
--enable-pc-files \
--enable-widec</userinput></screen>
@@ -85,6 +80,14 @@
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><parameter>--without-normal</parameter></term>
+ <listitem>
+ <para>This switch disables building and installing most static libraries.
+ </para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
<para>Compile the package:</para>
@@ -119,11 +122,8 @@
<screen><userinput remap="install">for lib in ncurses form panel menu ; do
rm -vf /usr/lib/lib${lib}.so
echo "INPUT(-l${lib}w)" &gt; /usr/lib/lib${lib}.so
- ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a
ln -sfv ${lib}w.pc /usr/lib/pkgconfig/${lib}.pc
-done
-
-ln -sfv libncurses++w.a /usr/lib/libncurses++.a</userinput></screen>
+done</userinput></screen>
<para>Finally, make sure that old applications that look for
<filename class="libraryfile">-lcurses</filename> at build time are still
@@ -131,9 +131,7 @@ ln -sfv libncurses++w.a /usr/lib/libncurses++.a</userinput></screen>
<screen><userinput remap="install">rm -vf /usr/lib/libcursesw.so
echo "INPUT(-lncursesw)" &gt; /usr/lib/libcursesw.so
-ln -sfv libncurses.so /usr/lib/libcurses.so
-ln -sfv libncursesw.a /usr/lib/libcursesw.a
-ln -sfv libncurses.a /usr/lib/libcurses.a</userinput></screen>
+ln -sfv libncurses.so /usr/lib/libcurses.so</userinput></screen>
<para>If desired, install the Ncurses documentation:</para>
@@ -168,14 +166,31 @@ cp -av lib/lib*.so.5* /usr/lib</userinput></screen>
<segtitle>Installed directories</segtitle>
<seglistitem>
- <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
- ncursesw5-config, reset (link to tset), tabs, tic, toe, tput, and tset</seg>
- <seg>libcursesw.{a,so} (symlink and linker script to libncursesw.{a,so}),
- libformw.{a,so}, libmenuw.{a,so}, libncurses++w.a, libncursesw.{a,so},
- libpanelw.{a,so}, and their non-wide-character counterparts without "w"
- in the library names.</seg>
- <seg>/usr/share/tabset, /usr/share/terminfo, and
- /usr/share/doc/ncurses-&ncurses-version;</seg>
+ <seg>
+ captoinfo (link to tic),
+ clear,
+ infocmp,
+ infotocap (link to tic),
+ ncursesw5-config,
+ reset (link to tset),
+ tabs,
+ tic,
+ toe,
+ tput, and
+ tset
+ </seg>
+ <seg>
+ libcursesw.so (symlink and linker script to libncursesw.so),
+ libformw.so,
+ libmenuw.so,
+ libncursesw.so,
+ libpanelw.so, and their non-wide-character counterparts without "w"
+ in the library names.</seg>
+ <seg>
+ /usr/share/tabset,
+ /usr/share/terminfo, and
+ /usr/share/doc/ncurses-&ncurses-version;
+ </seg>
</seglistitem>
</segmentedlist>