Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/ncurses.xml

    rd7a9421 r0ebda11  
    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">
Note: See TracChangeset for help on using the changeset viewer.