Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/ncurses.xml

    rd672ab7 r0ebda11  
    133133      libraries since no package installed by compiling from sources would link
    134134      against them at runtime. However, the only known binary-only
    135       applications that link against non-wide-character Ncurses libraries
     135      applications that link against non-wide-character Ncurses libraries 
    136136      require version 5.  If you must have such libraries because of some binary-only
    137137      application or to be compliant with LSB, build the package again with the
     
    144144            --without-debug  \
    145145            --without-cxx-binding \
    146             --with-abi-version=5
     146            --with-abi-version=5 
    147147make sources libs
    148148cp -av lib/lib*.so.5* /usr/lib</userinput></screen>
     
    150150
    151151  </sect2>
     152
     153  <!-- - - - - - - - - - -->
     154  <!-- Multilib - 32bit  -->
     155  <!-- - - - - - - - - - -->
     156  <sect2 arch="ml_32,ml_all">
     157    <title>Building Ncurses - 32bit</title>
     158
     159    <para>Clean previous build:</para>
     160
     161<screen><userinput remap="pre">make distclean</userinput></screen>
     162
     163    <para>Prepare Ncurses for compilation:</para>
     164
     165<screen><userinput remap="configure">CC="gcc -m32" CXX="g++ -m32" \
     166./configure --prefix=/usr           \
     167            --host=i686-pc-linux-gnu \
     168            --libdir=/usr/lib32     \
     169            --mandir=/usr/share/man \
     170            --with-shared           \
     171            --without-debug         \
     172            --without-normal        \
     173            --enable-pc-files       \
     174            --enable-widec          \
     175            --with-pkg-config-libdir=/usr/lib32/pkgconfig</userinput></screen>
     176
     177    <para>Compile the package:</para>
     178
     179<screen><userinput remap="make">make</userinput></screen>
     180
     181    <para>Install the package:</para>
     182
     183<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
     184mkdir -p DESTDIR/usr/lib32/pkgconfig
     185for lib in ncurses form panel menu ; do
     186    rm -vf                    DESTDIR/usr/lib32/lib${lib}.so
     187    echo "INPUT(-l${lib}w)" > DESTDIR/usr/lib32/lib${lib}.so
     188    ln -svf ${lib}w.pc        DESTDIR/usr/lib32/pkgconfig/$lib.pc
     189done
     190rm -vf                     DESTDIR/usr/lib32/libcursesw.so
     191echo "INPUT(-lncursesw)" > DESTDIR/usr/lib32/libcursesw.so
     192ln -sfv libncurses.so      DESTDIR/usr/lib32/libcurses.so
     193cp -Rv DESTDIR/usr/lib32/* /usr/lib32
     194rm -rf DESTDIR</userinput></screen>
     195
     196  </sect2><!-- m32 -->
     197
     198  <!-- - - - - - - - - - -->
     199  <!-- Multilib - x32bit -->
     200  <!-- - - - - - - - - - -->
     201  <sect2 arch="ml_x32,ml_all">
     202    <title>Building Ncurses - x32bit</title>
     203
     204    <para>Clean previous build:</para>
     205
     206<screen><userinput remap="pre">make distclean</userinput></screen>
     207
     208    <para>Prepare Ncurses for compilation:</para>
     209
     210<screen><userinput remap="configure">CC="gcc -mx32" CXX="g++ -mx32" \
     211./configure --prefix=/usr           \
     212            --host=x86_64-pc-linux-gnux32 \
     213            --libdir=/usr/libx32    \
     214            --mandir=/usr/share/man \
     215            --with-shared           \
     216            --without-debug         \
     217            --without-normal        \
     218            --enable-pc-files       \
     219            --enable-widec          \
     220            --with-pkg-config-libdir=/usr/libx32/pkgconfig</userinput></screen>
     221
     222    <para>Compile the package:</para>
     223
     224<screen><userinput remap="make">make</userinput></screen>
     225
     226    <para>Install the package:</para>
     227
     228<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
     229mkdir -p DESTDIR/usr/libx32/pkgconfig
     230for lib in ncurses form panel menu ; do
     231    rm -vf                    DESTDIR/usr/libx32/lib${lib}.so
     232    echo "INPUT(-l${lib}w)" > DESTDIR/usr/libx32/lib${lib}.so
     233    ln -svf ${lib}w.pc        DESTDIR/usr/libx32/pkgconfig/$lib.pc
     234done
     235rm -vf                     DESTDIR/usr/libx32/libcursesw.so
     236echo "INPUT(-lncursesw)" > DESTDIR/usr/libx32/libcursesw.so
     237ln -sfv libncurses.so      DESTDIR/usr/libx32/libcurses.so
     238cp -Rv DESTDIR/usr/libx32/* /usr/libx32
     239rm -rf DESTDIR</userinput></screen>
     240
     241  </sect2><!-- mx32 -->
    152242
    153243  <sect2 id="contents-ncurses" role="content">
     
    161251      <seglistitem>
    162252        <seg>
    163            captoinfo (link to tic),
    164            clear,
    165            infocmp,
     253           captoinfo (link to tic), 
     254           clear, 
     255           infocmp, 
    166256           infotocap (link to tic),
    167            ncursesw6-config,
    168            reset (link to tset),
    169            tabs,
    170            tic,
    171            toe,
    172            tput, and
     257           ncursesw6-config, 
     258           reset (link to tset), 
     259           tabs, 
     260           tic, 
     261           toe, 
     262           tput, and 
    173263           tset
    174264        </seg>
    175265        <seg>
    176266           libcursesw.so (symlink and linker script to libncursesw.so),
    177            libformw.so,
    178            libmenuw.so,
     267           libformw.so, 
     268           libmenuw.so, 
    179269           libncursesw.so,
    180270           libpanelw.so, and their non-wide-character counterparts without "w"
    181271              in the library names.</seg>
    182272        <seg>
    183            /usr/share/tabset,
     273           /usr/share/tabset, 
    184274           /usr/share/terminfo, and
    185275           /usr/share/doc/ncurses-&ncurses-version;
Note: See TracChangeset for help on using the changeset viewer.